KDB should use the non-sleeping copy_from_user_atomic,
rather than the sleeping copy_from_user, as it runs from
interrupt level.
Signed-off-by: Joe Korty <[EMAIL PROTECTED]>
Index: 2.6.26-rc9/include/asm-x86/kdb.h
===================================================================
--- 2.6.26-rc9.orig/include/asm-x86/kdb.h 2008-07-10 12:14:26.000000000
-0400
+++ 2.6.26-rc9/include/asm-x86/kdb.h 2008-07-10 12:24:53.000000000 -0400
@@ -81,7 +81,7 @@
}
set_fs(KERNEL_DS);
- r = __copy_to_user((void *)to_xxx, from, size);
+ r = __copy_to_user_inatomic((void *)to_xxx, from, size);
set_fs(oldfs);
return r;
}
@@ -99,7 +99,7 @@
}
set_fs(KERNEL_DS);
- r = __copy_to_user(to, (void *)from_xxx, size);
+ r = __copy_to_user_inatomic(to, (void *)from_xxx, size);
set_fs(oldfs);
return r;
}
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.