mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
aaa8736370
When building with CONFIG_XEN_PV=y, .text symbols are emitted into the .notes section so that Xen can find the "startup_xen" entry point. This information is used prior to booting the kernel, so relocations are not useful. In fact, performing relocations against the .notes section means that the KASLR base is exposed since /sys/kernel/notes is world-readable. To avoid leaking the KASLR base without breaking unprivileged tools that are expecting to read /sys/kernel/notes, skip performing relocations in the .notes section. The values readable in .notes are then identical to those found in System.map. Reported-by: Guixiong Wei <guixiongwei@gmail.com> Closes: https://lore.kernel.org/all/20240218073501.54555-1-guixiongwei@gmail.com/ Fixes: |
||
---|---|---|
.. | ||
.gitignore | ||
gen-insn-attr-x86.awk | ||
insn_decoder_test.c | ||
insn_sanity.c | ||
Makefile | ||
objdump_reformat.awk | ||
relocs_32.c | ||
relocs_64.c | ||
relocs_common.c | ||
relocs.c | ||
relocs.h |