From: Greg Kroah-Hartman Date: Wed, 5 Jun 2019 19:30:13 +0000 (+0200) Subject: 4.9-stable patches X-Git-Tag: v5.1.8~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbb4ef4d0e4a383065cca6ad46ba694de5995e0e;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: revert-x86-build-move-_etext-to-actual-end-of-.text.patch --- diff --git a/queue-4.9/revert-x86-build-move-_etext-to-actual-end-of-.text.patch b/queue-4.9/revert-x86-build-move-_etext-to-actual-end-of-.text.patch new file mode 100644 index 00000000000..c7e5d27fd77 --- /dev/null +++ b/queue-4.9/revert-x86-build-move-_etext-to-actual-end-of-.text.patch @@ -0,0 +1,42 @@ +From b645105465ba5d050e62ded1ac487694fb683079 Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman +Date: Wed, 5 Jun 2019 20:40:30 +0200 +Subject: Revert "x86/build: Move _etext to actual end of .text" + +From: Greg Kroah-Hartman + +This reverts commit 392bef709659abea614abfe53cf228e7a59876a4. + +It seems to cause lots of problems when using the gold linker, and no +one really needs this at the moment, so just revert it from the stable +trees. + +Cc: Sami Tolvanen +Reported-by: Kees Cook +Cc: Borislav Petkov +Cc: Linus Torvalds +Cc: Peter Zijlstra +Cc: Thomas Gleixner +Reported-by: Alec Ari +Cc: Ingo Molnar +Signed-off-by: Greg Kroah-Hartman +--- + arch/x86/kernel/vmlinux.lds.S | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +--- a/arch/x86/kernel/vmlinux.lds.S ++++ b/arch/x86/kernel/vmlinux.lds.S +@@ -111,10 +111,10 @@ SECTIONS + *(.text.__x86.indirect_thunk) + __indirect_thunk_end = .; + #endif +- } :text = 0x9090 + +- /* End of text section */ +- _etext = .; ++ /* End of text section */ ++ _etext = .; ++ } :text = 0x9090 + + NOTES :text :note + diff --git a/queue-4.9/series b/queue-4.9/series index 151f715b326..667cf88459d 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -58,3 +58,4 @@ mm-gup-ensure-real-head-page-is-ref-counted-when-using-hugepages.patch mm-prevent-get_user_pages-from-overflowing-page-refcount.patch mm-make-page-ref-count-overflow-check-tighter-and-more-explicit.patch coredump-fix-race-condition-between-mmget_not_zero-get_task_mm-and-core-dumping.patch +revert-x86-build-move-_etext-to-actual-end-of-.text.patch