lkml.org 
[lkml]   [2008]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: linux-next: Tree for September 18
On Thu, 18 Sep 2008 17:41:08 +1000
Stephen Rothwell <sfr@canb.auug.org.au> wrote:

> I have created today's linux-next tree at
> git://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux-next.git
> (patches at
> http://www.kernel.org/pub/linux/kernel/people/sfr/linux-next/)

Anyone using this kernel shold apply this x86 fix:

--- a/include/linux/uaccess.h~uaccess-fix-parameters-inversion-for-__copy_from_user_inatomic
+++ a/include/linux/uaccess.h
@@ -78,7 +78,7 @@ static inline unsigned long __copy_from_
\
set_fs(KERNEL_DS); \
pagefault_disable(); \
- ret = __copy_from_user_inatomic((__force typeof(retval) __user *)(addr), &(retval), sizeof(retval)); \
+ ret = __copy_from_user_inatomic(&(retval), (__force typeof(retval) __user *)(addr), sizeof(retval)); \
pagefault_enable(); \
set_fs(old_fs); \
ret; \
_
to prevent a storm of warnings like

[ 58.694606] SLAB: cache with size 16384 has lost its name
[ 58.694773] SLAB: cache with size 8192 has lost its name
[ 58.694940] SLAB: cache with size 8192 has lost its name
[ 58.695101] SLAB: cache with size 4096 has lost its name
[ 58.695260] SLAB: cache with size 4096 has lost its name
[ 58.695418] SLAB: cache with size 2048 has lost its name

plus probably other more nasty things.


\
 
 \ /
  Last update: 2008-09-19 00:23    [W:0.214 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site