]> www.infradead.org Git - users/dwmw2/linux.git/commit
[DO NOT MERGE] x86/kexec: Add CFI type information to relocate_kernel() kexec-debug-8
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 16 Dec 2024 10:26:24 +0000 (10:26 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 14 Mar 2025 17:16:23 +0000 (17:16 +0000)
commit5d4016d8acc7f72085ccb71853835177f885e402
tree9c8a49b71046b830a20cea573fc8f4eae2ea1f8b
parent26eed3e5604b394b14433d2011294b450e088918
[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