]> git.hungrycats.org Git - linux/commit
x86/boot: Ignore relocations in .notes sections in walk_relocs() too
authorGuixiong Wei <weiguixiong@bytedance.com>
Sun, 17 Mar 2024 15:05:47 +0000 (23:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:04 +0000 (09:49 +0200)
commit9e010dd91b80c93dbac4f3717db83b95760c1af9
tree556376ee0345ef8b58ad963642e7e7645cd99901
parent86c8b29d3f3020817a7d71bc22a5ab995411e57d
x86/boot: Ignore relocations in .notes sections in walk_relocs() too

[ Upstream commit 76e9762d66373354b45c33b60e9a53ef2a3c5ff2 ]

Commit:

  aaa8736370db ("x86, relocs: Ignore relocations in .notes section")

... only started ignoring the .notes sections in print_absolute_relocs(),
but the same logic should also by applied in walk_relocs() to avoid
such relocations.

[ mingo: Fixed various typos in the changelog, removed extra curly braces from the code. ]

Fixes: aaa8736370db ("x86, relocs: Ignore relocations in .notes section")
Fixes: 5ead97c84fa7 ("xen: Core Xen implementation")
Fixes: da1a679cde9b ("Add /sys/kernel/notes")
Signed-off-by: Guixiong Wei <weiguixiong@bytedance.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20240317150547.24910-1-weiguixiong@bytedance.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/tools/relocs.c