Re: [patch] releasing kernel lock during copy_from/to_user

Manfred Spraul (manfreds@colorfullife.com)
Mon, 24 May 1999 19:22:45 +0200


This is a multi-part message in MIME format.
--------------269F01D18287CB1BA782E2B6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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.
--------------269F01D18287CB1BA782E2B6
Content-Type: text/plain; charset=us-ascii;
name="patch-schedule-2.2.9"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-schedule-2.2.9"

--- 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)))

--------------269F01D18287CB1BA782E2B6--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/