From: Tony Luck Date: Tue, 28 Feb 2006 00:18:58 +0000 (-0800) Subject: [PATCH] die_if_kernel() can return (CVE-2006-0742) X-Git-Tag: v2.6.15.6~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8dc2c9e3c9ca640742630481329abb727f2dc6b;p=thirdparty%2Fkernel%2Fstable.git [PATCH] die_if_kernel() can return (CVE-2006-0742) arch/ia64/kernel/unaligned.c erroneously marked die_if_kernel() with a "noreturn" attribute ... which is silly (it returns whenever the argument regs say that the fault happened in user mode, as one might expect given the "if_kernel" part of its name!). Thanks to Alan and Gareth for pointing this out. Signed-off-by: Tony Luck Signed-off-by: Chris Wright --- diff --git a/arch/ia64/kernel/unaligned.c b/arch/ia64/kernel/unaligned.c index 43b45b65ee5a9..f2bc971c04dc9 100644 --- a/arch/ia64/kernel/unaligned.c +++ b/arch/ia64/kernel/unaligned.c @@ -24,7 +24,7 @@ #include #include -extern void die_if_kernel(char *str, struct pt_regs *regs, long err) __attribute__ ((noreturn)); +extern void die_if_kernel(char *str, struct pt_regs *regs, long err); #undef DEBUG_UNALIGNED_TRAP