From: Kees Cook <keescook@chromium.org>
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 [thread overview]
Message-ID: <202009021148.C4FFA08@keescook> (raw)
In-Reply-To: <202009022220.l1RDh7Cp%lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 9195 bytes --]
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 d444af79439c392efe256742fb801a14f0793a71
> config: x86_64-rhel (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
> reproduce (this is a W=1 build):
> # save the attached .config to linux build tree
> make W=1 ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> ld: warning: orphan section `.gnu.version_d' from `arch/x86/boot/compressed/kernel_info.o' being placed in section `.gnu.version_d'
> ld: warning: orphan section `.gnu.version' from `arch/x86/boot/compressed/kernel_info.o' being placed in section `.gnu.version'
> ld: warning: orphan section `.gnu.version_r' from `arch/x86/boot/compressed/kernel_info.o' being placed in section `.gnu.version_r'
> ld: warning: orphan section `.dynsym' from `arch/x86/boot/compressed/kernel_info.o' being placed in section `.dynsym'
> ld: warning: orphan section `.dynstr' from `arch/x86/boot/compressed/kernel_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/kernel_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/kernel_info.o' being placed in section `.plt'
> ld: warning: orphan section `.dynbss' from `arch/x86/boot/compressed/kernel_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/compressed/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/compressed/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/compressed/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/compressed/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/compressed/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/compressed/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/compressed/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/compressed/acpi.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/x86-stub.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/x86-stub.stub.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/efi-stub-helper.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/efi-stub-helper.stub.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/file.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/file.stub.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/gop.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/gop.stub.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/lib-cmdline.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/lib-cmdline.stub.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/lib-ctype.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/lib-ctype.stub.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/mem.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/mem.stub.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/pci.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/pci.stub.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/random.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/random.stub.o' being placed in section `.note.GNU-stack'
> >> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/relocate.stub.o' being placed in section `.comment'
> >> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/relocate.stub.o' being placed in section `.note.GNU-stack'
> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/secureboot.stub.o' being placed in section `.comment'
> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/secureboot.stub.o' being placed in section `.note.GNU-stack'
> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/skip_spaces.stub.o' being placed in section `.comment'
> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/skip_spaces.stub.o' being placed in section `.note.GNU-stack'
> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/tpm.stub.o' being placed in section `.comment'
> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/libstub/tpm.stub.o' being placed in section `.note.GNU-stack'
> ld: warning: orphan section `.comment' from `drivers/firmware/efi/libstub/vsprintf.stub.o' being placed in section `.comment'
> ld: warning: orphan section `.note.GNU-stack' from `drivers/firmware/efi/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
next prev parent reply other threads:[~2020-09-02 18:49 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-02 2:53 [PATCH v7 0/5] Warn on orphan section placement Kees Cook
2020-09-02 2:53 ` Kees Cook
2020-09-02 2:53 ` [PATCH v7 1/5] arm64/build: " Kees Cook
2020-09-02 2:53 ` Kees Cook
2020-09-07 6:05 ` [tip: core/build] " tip-bot2 for Kees Cook
2020-09-02 2:53 ` [PATCH v7 2/5] arm/build: " Kees Cook
2020-09-02 2:53 ` Kees Cook
2020-09-07 6:05 ` [tip: core/build] " tip-bot2 for Kees Cook
2020-09-02 2:53 ` [PATCH v7 3/5] arm/boot: " Kees Cook
2020-09-02 2:53 ` Kees Cook
2020-09-07 6:05 ` [tip: core/build] " tip-bot2 for Kees Cook
2020-09-02 2:53 ` [PATCH v7 4/5] x86/build: " Kees Cook
2020-09-02 2:53 ` Kees Cook
2020-09-05 22:48 ` Arvind Sankar
2020-09-05 22:48 ` Arvind Sankar
2020-09-08 20:17 ` Arvind Sankar
2020-09-08 20:17 ` Arvind Sankar
2020-09-07 6:05 ` [tip: core/build] " tip-bot2 for Kees Cook
2020-09-02 2:53 ` [PATCH v7 5/5] x86/boot/compressed: " Kees Cook
2020-09-02 2:53 ` Kees Cook
2020-09-02 14:38 ` kernel test robot
2020-09-02 18:49 ` Kees Cook [this message]
2020-09-07 6:05 ` [tip: core/build] " tip-bot2 for Kees Cook
2020-09-02 19:04 ` [PATCH v7 0/5] " Nick Desaulniers
2020-09-02 19:04 ` Nick Desaulniers
2020-09-04 5:58 ` Ingo Molnar
2020-09-04 5:58 ` Ingo Molnar
2020-09-04 18:20 ` Kees Cook
2020-09-04 18:20 ` Kees Cook
2020-09-06 7:24 ` Ingo Molnar
2020-09-06 7:24 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202009021148.C4FFA08@keescook \
--to=keescook@chromium.org \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.