Announcement

Collapse
No announcement yet.

fglrx 10-9 hotfix

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • fglrx 10-9 hotfix

    There's a hotfix out for fglrx 10-9

    http://support.amd.com/us/kbarticles...nuxHotfix.aspx

  • #2
    Thanks for the heads-up..I got hit by this bug on Mandriva x86_64 with kernel
    2.6.33.7-2
    Those who would give up Essential Liberty to purchase a little Temporary Safety,deserve neither Liberty nor Safety.
    Ben Franklin 1755

    Comment


    • #3
      I do not really like that patch because it only handles some kernels
      Code:
      diff -Nru 10-9/common/lib/modules/fglrx/build_mod/kcl_ioctl.c 8.771.2/common/lib/modules/fglrx/build_mod/kcl_ioctl.c
      --- 10-9/common/lib/modules/fglrx/build_mod/kcl_ioctl.c	2010-09-01 16:05:31.000000000 +0200
      +++ 8.771.2/common/lib/modules/fglrx/build_mod/kcl_ioctl.c	2010-09-27 22:57:27.000000000 +0200
      @@ -193,7 +193,13 @@
        */
       void* ATI_API_CALL KCL_IOCTL_AllocUserSpace32(long size)
       {
      -    return compat_alloc_user_space(size);
      +    void __user *ret = COMPAT_ALLOC_USER_SPACE(size);
      +
      +    /* prevent stack overflow */
      +    if (!access_ok(VERIFY_WRITE, ret, size))
      +        return NULL;
      +
      +    return (void *)ret;
       }
       
       #endif // __x86_64__
      diff -Nru 10-9/common/lib/modules/fglrx/build_mod/make.sh 8.771.2/common/lib/modules/fglrx/build_mod/make.sh
      --- 10-9/common/lib/modules/fglrx/build_mod/make.sh	2010-09-01 16:05:31.000000000 +0200
      +++ 8.771.2/common/lib/modules/fglrx/build_mod/make.sh	2010-09-27 22:57:27.000000000 +0200
      @@ -391,6 +391,29 @@
       fi
       
       # ==============================================================
      +# resolve if we are building for a kernel with a fix for CVE-2010-3081
      +# On kernels with the fix, use arch_compat_alloc_user_space instead
      +# of compat_alloc_user_space since the latter is GPL-only
      +
      +COMPAT_ALLOC_USER_SPACE=compat_alloc_user_space
      +
      +src_file=$linuxincludes/../arch/x86/include/asm/compat.h
      +if [ ! -e $src_file ];
      +then
      +  echo "Warning:"                                                  >> $logfile
      +  echo "kernel includes at $linuxincludes not found or incomplete" >> $logfile
      +  echo "file: $src_file"                                           >> $logfile
      +  echo ""                                                          >> $logfile
      +else
      +  if [ `cat $src_file | grep -c arch_compat_alloc_user_space` -gt 0 ]
      +  then
      +    COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space
      +  fi
      +  echo "file $src_file says: COMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE" >> $logfile
      +fi
      +
      +
      +# ==============================================================
       # break down OsRelease string into its components
       
       major=`echo $OsRelease | sed -n -e s/"^\([[:digit:]]*\)\.\([[:digit:]]*\)\.\([[:digit:]]*\)\(.*\)"/"\\1"/p`
      @@ -426,7 +449,7 @@
       
       make CC=${CC} \
           LIBIP_PREFIX=$(echo "$LIBIP_PREFIX" | sed -e 's|^\([^/]\)|../\1|') \
      -    MODFLAGS="-DMODULE -DATI -DFGL -DPAGE_ATTR_FIX=$PAGE_ATTR_FIX $def_smp $def_modversions" \
      +    MODFLAGS="-DMODULE -DATI -DFGL -DPAGE_ATTR_FIX=$PAGE_ATTR_FIX -DCOMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE $def_smp $def_modversions" \
           KVER=${uname_r} \
           PAGE_ATTR_FIX=$PAGE_ATTR_FIX \
           > tlog 2>&1
      I prefer this one because it works with more kernels - tested with pure ubuntu mainline.

      http://launchpadlibrarian.net/561998...010-3081.patch

      Together with

      http://www.phoronix.com/forums/showp...95&postcount=4

      for .36 support.

      Comment


      • #4
        Originally posted by storma View Post
        There's a hotfix out for fglrx 10-9

        http://support.amd.com/us/kbarticles...nuxHotfix.aspx
        FGLRX is finally working perfectly again in Ubuntu 10.04 using the latest -35 kernel.

        Comment


        • #5
          I'm getting artifacts at the very top of the screen, above the gnome-panel, anyone else getting this? which is making me loose like 3-4 pixals on the bottom of the screen.

          Comment

          Working...
          X