mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 4/9] kernel/exit.c: export abort() to modules
@ 2018-01-05  0:17 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2018-01-05  0:17 UTC (permalink / raw)
  To: torvalds, mm-commits, akpm, Alexey.Brodkin, arnd, Jose.Abreu,
	rmk+kernel, sudipm.mukherjee, Vineet.Gupta1

From: Andrew Morton <akpm@linux-foundation.org>
Subject: 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>
---

 arch/arm/kernel/traps.c       |    1 -
 arch/m32r/kernel/traps.c      |    1 -
 arch/unicore32/kernel/traps.c |    1 -
 kernel/exit.c                 |    1 +
 4 files changed, 1 insertion(+), 3 deletions(-)

diff -puN arch/arm/kernel/traps.c~kernel-exitc-export-abort-to-modules arch/arm/kernel/traps.c
--- a/arch/arm/kernel/traps.c~kernel-exitc-export-abort-to-modules
+++ a/arch/arm/kernel/traps.c
@@ -793,7 +793,6 @@ void abort(void)
 	/* if that doesn't kill us, halt */
 	panic("Oops failed to kill thread");
 }
-EXPORT_SYMBOL(abort);
 
 void __init trap_init(void)
 {
diff -puN arch/m32r/kernel/traps.c~kernel-exitc-export-abort-to-modules arch/m32r/kernel/traps.c
--- a/arch/m32r/kernel/traps.c~kernel-exitc-export-abort-to-modules
+++ a/arch/m32r/kernel/traps.c
@@ -122,7 +122,6 @@ void abort(void)
 	/* if that doesn't kill us, halt */
 	panic("Oops failed to kill thread");
 }
-EXPORT_SYMBOL(abort);
 
 void __init trap_init(void)
 {
diff -puN arch/unicore32/kernel/traps.c~kernel-exitc-export-abort-to-modules arch/unicore32/kernel/traps.c
--- a/arch/unicore32/kernel/traps.c~kernel-exitc-export-abort-to-modules
+++ a/arch/unicore32/kernel/traps.c
@@ -298,7 +298,6 @@ void abort(void)
 	/* if that doesn't kill us, halt */
 	panic("Oops failed to kill thread");
 }
-EXPORT_SYMBOL(abort);
 
 void __init trap_init(void)
 {
diff -puN kernel/exit.c~kernel-exitc-export-abort-to-modules kernel/exit.c
--- a/kernel/exit.c~kernel-exitc-export-abort-to-modules
+++ a/kernel/exit.c
@@ -1763,3 +1763,4 @@ __weak void abort(void)
 	/* if that doesn't kill us, halt */
 	panic("Oops failed to kill thread");
 }
+EXPORT_SYMBOL(abort);
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-05  0:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-05  0:17 [patch 4/9] kernel/exit.c: export abort() to modules akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).