]> www.infradead.org Git - users/dwmw2/linux.git/commit
[DO NOT MERGE] x86/kexec: Add CFI type information to relocate_kernel() kexec-debug-7
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 16 Dec 2024 10:26:24 +0000 (10:26 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 12 Mar 2025 14:32:59 +0000 (14:32 +0000)
commit6d691abbf75379a981e41eee850d964d5ebb94c8
tree3300b27f8cf225add79751a36bd43ef411c0e820
parent9caa3e20f4f18c310fac651a38f0592edc0a349a
[DO NOT MERGE] x86/kexec: Add CFI type information to relocate_kernel()

A previous commit added __nocfi to machine_kexec() because it makes an
indirect call to relocate_kernel() which lacked CFI type information,
and caused the system to crash.

Use SYM_TYPED_FUNC_START() to ensure that the type information is
present, and remove the __nocfi tag.

I still can't make objtool happy with this in both GCC and Clang builds
at the same time, so not yet for merging; only included in this series
to nerd-snipe the objtool maintainers.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kernel/machine_kexec_64.c
arch/x86/kernel/relocate_kernel_64.S