Thread (42 messages) 42 messages, 4 authors, 2021-03-17

Re: [PATCH 07/17] kallsyms: cfi: strip hashes from static functions

From: Kees Cook <hidden>
Date: 2021-03-12 02:46:05
Also in: bpf, linux-arm-kernel, linux-hardening, linux-kbuild, linux-pci, lkml

On Thu, Mar 11, 2021 at 04:49:09PM -0800, Sami Tolvanen wrote:
With CONFIG_CFI_CLANG and ThinLTO, Clang appends a hash to the names
of all static functions not marked __used. This can break userspace
tools that don't expect the function name to change, so strip out the
hash from the output.

Suggested-by: Jack Pham <redacted>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
(Is it possible we could end up with symbol name collisions? ... though
I guess we would have had collisions before?)

Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help