]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jan 2018 09:57:42 +0000 (10:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jan 2018 09:57:42 +0000 (10:57 +0100)
added patches:
um-link-vmlinux-with-no-pie.patch

queue-4.4/series
queue-4.4/um-link-vmlinux-with-no-pie.patch [new file with mode: 0644]

index bd614e2fe2a5a50d437b06c9491c6b4a7c1c9613..4e23a80260372f38ffea4bf43396d2e3581846b0 100644 (file)
@@ -50,3 +50,4 @@ usb-usbip-fix-possible-deadlocks-reported-by-lockdep.patch
 usbip-fix-stub_rx-get_pipe-to-validate-endpoint-number.patch
 usbip-fix-stub_rx-harden-cmd_submit-path-to-handle-malicious-input.patch
 usbip-prevent-leaking-socket-pointer-address-in-messages.patch
+um-link-vmlinux-with-no-pie.patch
diff --git a/queue-4.4/um-link-vmlinux-with-no-pie.patch b/queue-4.4/um-link-vmlinux-with-no-pie.patch
new file mode 100644 (file)
index 0000000..919afbd
--- /dev/null
@@ -0,0 +1,32 @@
+From 883354afbc109c57f925ccc19840055193da0cc0 Mon Sep 17 00:00:00 2001
+From: Thomas Meyer <thomas@m3y3r.de>
+Date: Sun, 20 Aug 2017 13:26:04 +0200
+Subject: um: link vmlinux with -no-pie
+
+From: Thomas Meyer <thomas@m3y3r.de>
+
+commit 883354afbc109c57f925ccc19840055193da0cc0 upstream.
+
+Debian's gcc defaults to pie. The global Makefile already defines the -fno-pie option.
+Link UML dynamic kernel image also with -no-pie to fix the build.
+
+Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
+Signed-off-by: Richard Weinberger <richard@nod.at>
+Cc: Bernie Innocenti <codewiz@google.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/um/Makefile |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/um/Makefile
++++ b/arch/um/Makefile
+@@ -117,7 +117,7 @@ archheaders:
+ archprepare: include/generated/user_constants.h
+ LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
+-LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib
++LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib $(call cc-option, -no-pie)
+ CFLAGS_NO_HARDENING := $(call cc-option, -fno-PIC,) $(call cc-option, -fno-pic,) \
+       $(call cc-option, -fno-stack-protector,) \