lkml.org 
[lkml]   [1999]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch] releasing kernel lock during copy_from/to_user
Andrea Arcangeli wrote:
> You can show me your bug-triggering patch if you want.
I'm not sure if there is a bug:
just one deadlock under unknown conditions.--- 2.2.9/include/asm-i386/uaccess.h Thu May 20 20:24:23 1999
+++ current/include/asm-i386/uaccess.h Sat May 22 01:26:46 1999
@@ -572,12 +572,12 @@
}

#define copy_to_user(to,from,n) \
- (__builtin_constant_p(n) ? \
+ (( (segment_eq(get_fs(),KERNEL_DS) ? 1:(schedule_timeout(2))), __builtin_constant_p(n)) ? \
__constant_copy_to_user((to),(from),(n)) : \
__generic_copy_to_user((to),(from),(n)))

#define copy_from_user(to,from,n) \
- (__builtin_constant_p(n) ? \
+ (( (segment_eq(get_fs(),KERNEL_DS) ? 1:(schedule_timeout(2))),__builtin_constant_p(n)) ? \
__constant_copy_from_user((to),(from),(n)) : \
__generic_copy_from_user((to),(from),(n)))
\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2011 Jasper Spaans