All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amit Kachhap <amit.kachhap@arm.com>
To: Catalin Marinas <catalin.marinas@arm.com>
Cc: kbuild-all@lists.01.org, kbuild test robot <lkp@intel.com>,
	Szabolcs Nagy <szabolcs.nagy@arm.com>,
	daniel.kiss@arm.com,
	Kristina Martsenko <kristina.martsenko@arm.com>,
	Vincenzo Frascino <Vincenzo.Frascino@arm.com>,
	linux-arm-kernel@lists.infradead.org,
	Kees Cook <keescook@chromium.org>
Subject: Re: [arm64:for-next/kernel-ptrauth 16/18] aarch64-linux-objdump: warning: fs/squashfs/decompressor_multi.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000
Date: Tue, 24 Mar 2020 22:02:16 +0530	[thread overview]
Message-ID: <bf23b903-28f4-226c-49ce-3f761ae848a7@arm.com> (raw)
In-Reply-To: <20200324161507.GA3901@mbp>



On 3/24/20 9:45 PM, Catalin Marinas wrote:
> On Mon, Mar 23, 2020 at 10:36:15PM +0530, Amit Kachhap wrote:
>> On 3/23/20 5:18 PM, Catalin Marinas wrote:
>>> On Sat, Mar 21, 2020 at 12:28:06PM +0800, kbuild test robot wrote:
>>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/kernel-ptrauth
>>>> head:   3b446c7d27ddd06342901bb35211363f6944291a
>>>> commit: 74afda4016a7437e6e425c3370e4b93b47be8ddf [16/18] arm64: compile the kernel with ptrauth return address signing
>>>> config: arm64-randconfig-a001-20200321 (attached as .config)
>>>> compiler: aarch64-linux-gcc (GCC) 9.2.0
>>>> reproduce:
>>>>           wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>>>>           chmod +x ~/bin/make.cross
>>>>           git checkout 74afda4016a7437e6e425c3370e4b93b47be8ddf
>>>>           # save the attached .config to linux build tree
>>>>           GCC_VERSION=9.2.0 make.cross ARCH=arm64
>>>>
>>>> If you fix the issue, kindly add following tag
>>>> Reported-by: kbuild test robot <lkp@intel.com>
>>>>
>>>> All warnings (new ones prefixed by >>):
>>>>
>>>>>> aarch64-linux-objdump: warning: fs/squashfs/decompressor_multi.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000
>>>> --
>>>>>> aarch64-linux-objdump: warning: drivers/gpio/gpio-bt8xx.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000
>>>
>>> Just to make sure I understand the cause of this warning: gcc generates
>>> a .note.gnu.property when PAC is enabled for the kernel but binutils
>>> doesn't understand it. Is there a way to check for this via the Kconfig
>>> options?
>>
>> Yes you are right. In this case the binutils version lesser than 2.33 do not
>> recognize the GNU_PROPERTY_AARCH64_FEATURE_1_PAC property.
> 
> Are there gcc versions supporting PAC but not generating the
> .note.gnu.property?

Yes GCC older than GCC9 supports PAC without the note (I will find out 
the exact GCC version).

> 
>> However we can disable pauth in this case by checking linker version
>> and GNU_PROPERTY feature as,
>> (readelf -S --wide tmp.o | grep .note.gnu.property) && (ld-ifversion -ge
>> 233000000).
>>
>> But I feel disabling pauth in this case seems too aggressive as the current
>> way do not break any functionality even though it generates confusing
>> warning messages.
> 
> If there isn't a way to silence the linker or objdump, could we align
> the compiler version we know that generates this note with a minimum
> binutils? Something like:
> 
> 	depends on (GCC_VERSION < X) || (LD_VERSION >= 233...)

Yes this is possible.

> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Amit Kachhap <amit.kachhap@arm.com>
To: kbuild-all@lists.01.org
Subject: Re: [arm64:for-next/kernel-ptrauth 16/18] aarch64-linux-objdump: warning: fs/squashfs/decompressor_multi.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000
Date: Tue, 24 Mar 2020 22:02:16 +0530	[thread overview]
Message-ID: <bf23b903-28f4-226c-49ce-3f761ae848a7@arm.com> (raw)
In-Reply-To: <20200324161507.GA3901@mbp>

[-- Attachment #1: Type: text/plain, Size: 2653 bytes --]



On 3/24/20 9:45 PM, Catalin Marinas wrote:
> On Mon, Mar 23, 2020 at 10:36:15PM +0530, Amit Kachhap wrote:
>> On 3/23/20 5:18 PM, Catalin Marinas wrote:
>>> On Sat, Mar 21, 2020 at 12:28:06PM +0800, kbuild test robot wrote:
>>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/kernel-ptrauth
>>>> head:   3b446c7d27ddd06342901bb35211363f6944291a
>>>> commit: 74afda4016a7437e6e425c3370e4b93b47be8ddf [16/18] arm64: compile the kernel with ptrauth return address signing
>>>> config: arm64-randconfig-a001-20200321 (attached as .config)
>>>> compiler: aarch64-linux-gcc (GCC) 9.2.0
>>>> reproduce:
>>>>           wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>>>>           chmod +x ~/bin/make.cross
>>>>           git checkout 74afda4016a7437e6e425c3370e4b93b47be8ddf
>>>>           # save the attached .config to linux build tree
>>>>           GCC_VERSION=9.2.0 make.cross ARCH=arm64
>>>>
>>>> If you fix the issue, kindly add following tag
>>>> Reported-by: kbuild test robot <lkp@intel.com>
>>>>
>>>> All warnings (new ones prefixed by >>):
>>>>
>>>>>> aarch64-linux-objdump: warning: fs/squashfs/decompressor_multi.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000
>>>> --
>>>>>> aarch64-linux-objdump: warning: drivers/gpio/gpio-bt8xx.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000
>>>
>>> Just to make sure I understand the cause of this warning: gcc generates
>>> a .note.gnu.property when PAC is enabled for the kernel but binutils
>>> doesn't understand it. Is there a way to check for this via the Kconfig
>>> options?
>>
>> Yes you are right. In this case the binutils version lesser than 2.33 do not
>> recognize the GNU_PROPERTY_AARCH64_FEATURE_1_PAC property.
> 
> Are there gcc versions supporting PAC but not generating the
> .note.gnu.property?

Yes GCC older than GCC9 supports PAC without the note (I will find out 
the exact GCC version).

> 
>> However we can disable pauth in this case by checking linker version
>> and GNU_PROPERTY feature as,
>> (readelf -S --wide tmp.o | grep .note.gnu.property) && (ld-ifversion -ge
>> 233000000).
>>
>> But I feel disabling pauth in this case seems too aggressive as the current
>> way do not break any functionality even though it generates confusing
>> warning messages.
> 
> If there isn't a way to silence the linker or objdump, could we align
> the compiler version we know that generates this note with a minimum
> binutils? Something like:
> 
> 	depends on (GCC_VERSION < X) || (LD_VERSION >= 233...)

Yes this is possible.

> 

  reply	other threads:[~2020-03-24 16:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-21  4:28 [arm64:for-next/kernel-ptrauth 16/18] aarch64-linux-objdump: warning: fs/squashfs/decompressor_multi.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 kbuild test robot
2020-03-21  4:28 ` kbuild test robot
2020-03-23 11:48 ` Catalin Marinas
2020-03-23 11:48   ` Catalin Marinas
2020-03-23 17:04   ` Daniel Kiss
2020-03-23 17:04     ` Daniel Kiss
2020-03-23 17:06   ` Amit Kachhap
2020-03-23 17:06     ` Amit Kachhap
2020-03-24 16:15     ` Catalin Marinas
2020-03-24 16:15       ` Catalin Marinas
2020-03-24 16:32       ` Amit Kachhap [this message]
2020-03-24 16:32         ` Amit Kachhap
2020-03-24 17:00         ` Catalin Marinas
2020-03-24 17:00           ` Catalin Marinas

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=bf23b903-28f4-226c-49ce-3f761ae848a7@arm.com \
    --to=amit.kachhap@arm.com \
    --cc=Vincenzo.Frascino@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=daniel.kiss@arm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=keescook@chromium.org \
    --cc=kristina.martsenko@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lkp@intel.com \
    --cc=szabolcs.nagy@arm.com \
    /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.