From: Greg Kroah-Hartman Date: Wed, 25 Sep 2019 17:11:36 +0000 (+0200) Subject: 4.19-stable patches X-Git-Tag: v5.3.2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f1a527c3f8d62d130cca87b974aa942bec54628;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: objtool-clobber-user-cflags-variable.patch --- diff --git a/queue-4.19/objtool-clobber-user-cflags-variable.patch b/queue-4.19/objtool-clobber-user-cflags-variable.patch new file mode 100644 index 00000000000..1b0b416cb2f --- /dev/null +++ b/queue-4.19/objtool-clobber-user-cflags-variable.patch @@ -0,0 +1,40 @@ +From f73b3cc39c84220e6dccd463b5c8279b03514646 Mon Sep 17 00:00:00 2001 +From: Josh Poimboeuf +Date: Thu, 29 Aug 2019 18:28:49 -0500 +Subject: objtool: Clobber user CFLAGS variable + +From: Josh Poimboeuf + +commit f73b3cc39c84220e6dccd463b5c8279b03514646 upstream. + +If the build user has the CFLAGS variable set in their environment, +objtool blindly appends to it, which can cause unexpected behavior. + +Clobber CFLAGS to ensure consistent objtool compilation behavior. + +Reported-by: Valdis Kletnieks +Tested-by: Valdis Kletnieks +Signed-off-by: Josh Poimboeuf +Cc: Linus Torvalds +Cc: Peter Zijlstra +Cc: Thomas Gleixner +Link: https://lkml.kernel.org/r/83a276df209962e6058fcb6c615eef9d401c21bc.1567121311.git.jpoimboe@redhat.com +Signed-off-by: Ingo Molnar +CC: Nathan Chancellor +Signed-off-by: Greg Kroah-Hartman + +--- + tools/objtool/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/tools/objtool/Makefile ++++ b/tools/objtool/Makefile +@@ -35,7 +35,7 @@ INCLUDES := -I$(srctree)/tools/include \ + -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ + -I$(srctree)/tools/objtool/arch/$(ARCH)/include + WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed +-CFLAGS += -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS) ++CFLAGS := -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS) + LDFLAGS += $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS) + + # Allow old libelf to be used: diff --git a/queue-4.19/series b/queue-4.19/series index 43116ca39d6..1aaa9a78868 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -29,3 +29,4 @@ alsa-usb-audio-add-dsd-support-for-evga-nu-audio.patch alsa-dice-fix-wrong-packet-parameter-for-alesis-io26.patch alsa-hda-add-laptop-imic-fixup-for-asus-m9v-laptop.patch alsa-hda-apply-amd-controller-workaround-for-raven-platform.patch +objtool-clobber-user-cflags-variable.patch