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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <29d07648-29a9-432a-a666-f9c9e55c32f6@app.fastmail.com>
Date:   Tue, 01 Nov 2022 18:57:41 +0100
From:   "Arnd Bergmann" <arnd@...db.de>
To:     "Linus Torvalds" <torvalds@...ux-foundation.org>,
        "Guenter Roeck" <linux@...ck-us.net>,
        "Russell King" <rmk+kernel@...linux.org.uk>,
        "Masahiro Yamada" <masahiroy@...nel.org>
Cc:     "Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>,
        "Miguel Ojeda" <ojeda@...nel.org>
Subject: Re: Linux 6.1-rc3

On Tue, Nov 1, 2022, at 18:29, Linus Torvalds wrote:

> IOW, I expect it is - once again - some random linker-generated stub
> that ends up causing problems, where the re-link stage ends up being
> unstable because of some subtle alignment issue or other. I think
> zero-sized symbols have often been involved.

Linker-generated symbols are usually the cause, but those tend to
be fixed with the extra pass, and Guenter said that doing an extra
pass does not avoid the issue here.

I have not tried to understand what the 73bbb94466fd patch actually does,
but as the description explains that it uses either 1-byte or
2-byte encodings for some symbols, I suspect this is related to
the new problem here, possibly it gets into an oscillating state
where making the symbol table shorter causes a symbol to use the
longer representation in the next round, which in turn makes the
table longer again.

What I've done in the past to debug this was to change
scripts/link-vmlinux.sh to use a larger number of steps,
mainly to see if it eventually converges, grows indefinitely
or oscillates. After that I would compare the temporary files
from the last two different steps to see which symbols are
actually different. Unfortunately, there is no built-in
debugging mode in kallsyms, so this is a rather manual process.

       Arnd

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ