[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c2ed3020-f0c7-4077-aa63-648f7cd6bc75@collabora.com>
Date: Mon, 19 Aug 2024 08:55:17 +0500
From: Muhammad Usama Anjum <Usama.Anjum@...labora.com>
To: Kees Cook <keescook@...omium.org>
Cc: Usama.Anjum@...labora.com, "H . J . Lu" <hjl.tools@...il.com>,
Chris Kennelly <ckennelly@...gle.com>, Eric Biederman
<ebiederm@...ssion.com>, Shuah Khan <shuah@...nel.org>,
Fangrui Song <maskray@...gle.com>, Andrew Morton
<akpm@...ux-foundation.org>, Yang Yingliang <yangyingliang@...wei.com>,
linux-mm@...ck.org, linux-kselftest@...r.kernel.org,
Mike Rapoport <rppt@...nel.org>, Rui Salvaterra <rsalvaterra@...il.com>,
Victor Stinner <vstinner@...hat.com>, Jan Palus <jpalus@...tmail.com>,
Al Viro <viro@...iv.linux.org.uk>, Christian Brauner <brauner@...nel.org>,
Jan Kara <jack@...e.cz>, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-hardening@...r.kernel.org,
John Hubbard <jhubbard@...dia.com>
Subject: Re: [PATCH 1/3] selftests/exec: Build both static and non-static
load_address tests
On 8/7/24 3:22 PM, Muhammad Usama Anjum wrote:
> On 5/9/24 11:16 AM, Kees Cook wrote:
>> On Wed, May 08, 2024 at 07:54:13PM -0700, John Hubbard wrote:
>>> Didn't we learn recently, though, that -static-pie is gcc 8.1+, while the
>>> kernel's minimum gcc version is 5?
>>
>> Yes, that's true. If we encounter anyone trying to build the selftests
>> with <8.1 I think we'll have to add a compiler version test in the
>> Makefile to exclude the static pie tests.
>>
>> There's also the potential issue with arm64 builds that caused the
>> original attempt at -static. We'll likely need an exclusion there too.
>>
> I'm not getting failures for arm64 instead for arm. I'm trying to find
> this "rcrt1.o" file. Does anybody have any idea if this error can be
> resolved by missing file or is it something arm-linux-gnueabihf
> toolchain doesn't support?
Do you have any idea?
>
> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
> arm-linux-gnueabihf-gcc -Wall -Wno-nonnull -D_GNU_SOURCE=
> -Wl,-z,max-page-size=0x1000 \
> -fPIE -static-pie load_address.c -o
> /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/exec/load_address.static.0x1000
> /usr/lib/gcc-cross/arm-linux-gnueabihf/12/../../../../arm-linux-gnueabihf/bin/ld:
> cannot find rcrt1.o: No such file or directory
> collect2: error: ld returned 1 exit status
> make: *** [Makefile:39:
> /home/usama/repos/kernel/linux_mainline/tools/testing/selftests/exec/load_address.static.0x1000]
> Error 1
--
BR,
Muhammad Usama Anjum
Powered by blists - more mailing lists