From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5468647492963515634==" MIME-Version: 1.0 From: Kees Cook To: kbuild-all@lists.01.org Subject: Re: [PATCH v7 5/5] x86/boot/compressed: Warn on orphan section placement Date: Wed, 02 Sep 2020 11:49:53 -0700 Message-ID: <202009021148.C4FFA08@keescook> In-Reply-To: <202009022220.l1RDh7Cp%lkp@intel.com> List-Id: --===============5468647492963515634== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Sep 02, 2020 at 10:38:12PM +0800, kernel test robot wrote: > Hi Kees, > = > I love your patch! Perhaps something to improve: > = > [auto build test WARNING on tip/auto-latest] > [also build test WARNING on next-20200902] > [cannot apply to arm/for-next tip/x86/core v5.9-rc3] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] Hm, I think this is from having the wrong tree base (this is against tip/build, but I'd kind of expect that to appear in tip/auto-latest, but maybe I sent this series before auto-latest had updated with tip/build's contents....) Because all the warnings below are fixed in tip/build already... I will double-check.... -Kees > = > url: https://github.com/0day-ci/linux/commits/Kees-Cook/Warn-on-orphan= -section-placement/20200902-105541 > base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git d444a= f79439c392efe256742fb801a14f0793a71 > config: x86_64-rhel (attached as .config) > compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 > reproduce (this is a W=3D1 build): > # save the attached .config to linux build tree > make W=3D1 ARCH=3Dx86_64 = > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All warnings (new ones prefixed by >>): > = > ld: warning: orphan section `.gnu.version_d' from `arch/x86/boot/compr= essed/kernel_info.o' being placed in section `.gnu.version_d' > ld: warning: orphan section `.gnu.version' from `arch/x86/boot/compres= sed/kernel_info.o' being placed in section `.gnu.version' > ld: warning: orphan section `.gnu.version_r' from `arch/x86/boot/compr= essed/kernel_info.o' being placed in section `.gnu.version_r' > ld: warning: orphan section `.dynsym' from `arch/x86/boot/compressed/k= ernel_info.o' being placed in section `.dynsym' > ld: warning: orphan section `.dynstr' from `arch/x86/boot/compressed/k= ernel_info.o' being placed in section `.dynstr' > ld: warning: orphan section `.dynamic' from `arch/x86/boot/compressed/= kernel_info.o' being placed in section `.dynamic' > ld: warning: orphan section `.hash' from `arch/x86/boot/compressed/ker= nel_info.o' being placed in section `.hash' > ld: warning: orphan section `.gnu.hash' from `arch/x86/boot/compressed= /kernel_info.o' being placed in section `.gnu.hash' > ld: warning: orphan section `.plt' from `arch/x86/boot/compressed/kern= el_info.o' being placed in section `.plt' > ld: warning: orphan section `.dynbss' from `arch/x86/boot/compressed/k= ernel_info.o' being placed in section `.dynbss' > ld: warning: orphan section `.plt.got' from `arch/x86/boot/compressed/= kernel_info.o' being placed in section `.plt.got' > ld: warning: orphan section `.eh_frame' from `arch/x86/boot/compressed= /kernel_info.o' being placed in section `.eh_frame' > ld: warning: orphan section `.eh_frame' from `arch/x86/boot/compressed= /kernel_info.o' being placed in section `.eh_frame' > ld: warning: orphan section `.comment' from `arch/x86/boot/compressed/= misc.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `arch/x86/boot/comp= ressed/misc.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `arch/x86/boot/compressed/= string.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `arch/x86/boot/comp= ressed/string.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `arch/x86/boot/compressed/= cmdline.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `arch/x86/boot/comp= ressed/cmdline.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `arch/x86/boot/compressed/= error.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `arch/x86/boot/comp= ressed/error.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `arch/x86/boot/compressed/= cpuflags.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `arch/x86/boot/comp= ressed/cpuflags.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `arch/x86/boot/compressed/= early_serial_console.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `arch/x86/boot/comp= ressed/early_serial_console.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `arch/x86/boot/compressed/= pgtable_64.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `arch/x86/boot/comp= ressed/pgtable_64.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `arch/x86/boot/compressed/= acpi.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `arch/x86/boot/comp= ressed/acpi.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/x86-stub.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/x86-stub.stub.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/efi-stub-helper.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/efi-stub-helper.stub.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/file.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/file.stub.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/gop.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/gop.stub.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/lib-cmdline.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/lib-cmdline.stub.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/lib-ctype.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/lib-ctype.stub.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/mem.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/mem.stub.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/pci.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/pci.stub.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/random.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/random.stub.o' being placed in section `.note.GNU-stack' > >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/relocate.stub.o' being placed in section `.comment' > >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/relocate.stub.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/secureboot.stub.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/secureboot.stub.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/skip_spaces.stub.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/skip_spaces.stub.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/tpm.stub.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/tpm.stub.o' being placed in section `.note.GNU-stack' > ld: warning: orphan section `.comment' from `drivers/firmware/efi/libs= tub/vsprintf.stub.o' being placed in section `.comment' > ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/e= fi/libstub/vsprintf.stub.o' being placed in section `.note.GNU-stack' > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org -- = Kees Cook --===============5468647492963515634==--