Re: [RFC PATCH 08/18] aarch64: move boot stack out of .bss so zero_out_bss doesn't clobber it

Sergey Bugaev <[email protected]>
Newsgroups gmane.os.hurd.bugs
Message-ID <CAN9u=HdOfHMPzqA+aQL5yvede-QEX6n7cP+==oHUbHr6bP9T7A@mail.gmail.com>
On Sun, May 24, 2026 at 10:58 PM Paulo Fernando Barbosa Duarte
<[email protected]> wrote:
> the the actual root cause was that my cross-compiling gcc had the
> flag -fno-omit-frame-pointer ON, this was what tripped the bug.
> with the flag OFF the bug doesn’t trigger.

How does that work? Even if you don't use x29 as a frame pointer
(which you normally do on AArch64, so I doubt that my GCC had that
off), surely you still save/restore at least x30?

Maybe that could still happen if zero_out_bss got inlined into
c_boot_entry, and so did not have its x30 saved?

Sergey
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.