summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorAdrian Barnaś <abarnas@google.com>2025-09-22 13:04:27 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-12 18:40:20 +0100
commit9081b6695bea0124d5a09240b1a41f838c32ce7f (patch)
treec357d8075b06580d8438fe9f2bb8fdac6564bfe2 /include/net/aligned_data.h
parent48ebc12bd4f7d4d8e5e435baa1f96f27bdf43bd2 (diff)
arm64: Reject modules with internal alternative callbacks
[ Upstream commit 8e8ae788964aa2573b4335026db4068540fa6a86 ] During module loading, check if a callback function used by the alternatives specified in the '.altinstruction' ELF section (if present) is located in core kernel .text. If not fail module loading before callback is called. Reported-by: Fanqin Cui <cuifq1@chinatelecom.cn> Closes: https://lore.kernel.org/all/20250807072700.348514-1-fanqincui@163.com/ Signed-off-by: Adrian Barnaś <abarnas@google.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> [will: Folded in 'noinstr' tweak from Mark] Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions