Messages in this thread Patch in this message | | | Date | Mon, 24 May 1999 19:22:45 +0200 | From | Manfred Spraul <> | Subject | Re: [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))) | |