lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNATYYSQe5O0eWP0DZ_NJOd6Z+qUS99-QYEWnQhVJdBmyhA@mail.gmail.com>
Date: Sat, 1 Feb 2025 04:27:06 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Ard Biesheuvel <ardb@...nel.org>
Cc: Ard Biesheuvel <ardb+git@...gle.com>, linux-kbuild@...r.kernel.org, 
	linux-kernel@...r.kernel.org, Linus Torvalds <torvalds@...ux-foundation.org>, 
	linux-riscv@...ts.infradead.org, linux-s390@...r.kernel.org, 
	Ron Economos <re@...z.net>
Subject: Re: [PATCH v3] kbuild: Strip runtime const RELA sections correctly

On Sat, Feb 1, 2025 at 4:02 AM Ard Biesheuvel <ardb@...nel.org> wrote:
>
> On Fri, 31 Jan 2025 at 19:58, Masahiro Yamada <masahiroy@...nel.org> wrote:
> >
> > On Sat, Feb 1, 2025 at 3:40 AM Ard Biesheuvel <ardb@...nel.org> wrote:
> > >
> > > On Fri, 31 Jan 2025 at 19:35, Masahiro Yamada <masahiroy@...nel.org> wrote:
> > > >
> > > > On Tue, Jan 14, 2025 at 12:53 AM Ard Biesheuvel <ardb+git@...gle.com> wrote:
> > > > >
> > > > > From: Ard Biesheuvel <ardb@...nel.org>
> > > > >
> > > > > Due to the fact that runtime const ELF sections are named without a
> > > > > leading period or double underscore, the RSTRIP logic that removes the
> > > > > static RELA sections from vmlinux fails to identify them.
> > > >
> > > >
> > > > Dumb question - why can't you rename the section 'runtime*' to '.runtime*' ?
> > > >
> > > > .rel* matches to sections that just happen to start with '.rel',
> > > > which may not be REL or RELA.
> > > >
> > >
> > > That is what I proposed originally [0] but it was shot down by Linus.
> > >
> > > [0] https://lore.kernel.org/all/20241014125703.2287936-4-ardb+git@google.com/T/#u
> >
> >
> > Does this work ?
> >
> > $(OBJCOPY) --remove-relocations='*' $@
> >
>
> Only with binutils, not with llvm-objcopy


Applied to linux-kbuild.
Thanks.


-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ