Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kernel/exit.c: export abort() to modules

gcc -fisolate-erroneous-paths-dereference can generate calls to abort()
from modular code too.

[arnd@arndb.de: drop duplicate exports of abort()]
Link: http://lkml.kernel.org/r/20180102103311.706364-1-arnd@arndb.de
Reported-by: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Cc: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
dc8635b7 4991c09c

+1 -3
-1
arch/arm/kernel/traps.c
··· 793 793 /* if that doesn't kill us, halt */ 794 794 panic("Oops failed to kill thread"); 795 795 } 796 - EXPORT_SYMBOL(abort); 797 796 798 797 void __init trap_init(void) 799 798 {
-1
arch/m32r/kernel/traps.c
··· 122 122 /* if that doesn't kill us, halt */ 123 123 panic("Oops failed to kill thread"); 124 124 } 125 - EXPORT_SYMBOL(abort); 126 125 127 126 void __init trap_init(void) 128 127 {
-1
arch/unicore32/kernel/traps.c
··· 298 298 /* if that doesn't kill us, halt */ 299 299 panic("Oops failed to kill thread"); 300 300 } 301 - EXPORT_SYMBOL(abort); 302 301 303 302 void __init trap_init(void) 304 303 {
+1
kernel/exit.c
··· 1763 1763 /* if that doesn't kill us, halt */ 1764 1764 panic("Oops failed to kill thread"); 1765 1765 } 1766 + EXPORT_SYMBOL(abort);