Skip to content
Commit 33c44f26 authored by Guixiong Wei's avatar Guixiong Wei Committed by liwei
Browse files

x86/boot: Ignore relocations in .notes sections in walk_relocs() too

stable inclusion
from stable-v4.19.316
commit 2487db16d4b9faead07b7825d33294e9e783791d
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9FNFG
CVE: CVE-2024-26816

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2487db16d4b9faead07b7825d33294e9e783791d



--------------------------------

[ 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: 5ead97c8 ("xen: Core Xen implementation")
Fixes: da1a679c ("Add /sys/kernel/notes")
Signed-off-by: default avatarGuixiong Wei <weiguixiong@bytedance.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20240317150547.24910-1-weiguixiong@bytedance.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarliwei <liwei728@huawei.com>
parent a7c99a58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment