summaryrefslogtreecommitdiff
path: root/kernel/seccomp.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2022-11-06 15:53:54 +0100
committerArd Biesheuvel <ardb@kernel.org>2022-11-10 23:14:15 +0100
commit9b9eaee9828fe98b030cf43ac50065a54a2f5d52 (patch)
tree45b03818381214c9972e49716a664e26eadfddf7 /kernel/seccomp.c
parent550b33cfd445296868a478e8413ffb2e963eed32 (diff)
downloadlwn-9b9eaee9828fe98b030cf43ac50065a54a2f5d52.tar.gz
lwn-9b9eaee9828fe98b030cf43ac50065a54a2f5d52.zip
arm64: efi: Fix handling of misaligned runtime regions and drop warning
Currently, when mapping the EFI runtime regions in the EFI page tables, we complain about misaligned regions in a rather noisy way, using WARN(). Not only does this produce a lot of irrelevant clutter in the log, it is factually incorrect, as misaligned runtime regions are actually allowed by the EFI spec as long as they don't require conflicting memory types within the same 64k page. So let's drop the warning, and tweak the code so that we - take both the start and end of the region into account when checking for misalignment - only revert to RWX mappings for non-code regions if misaligned code regions are also known to exist. Cc: <stable@vger.kernel.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'kernel/seccomp.c')
0 files changed, 0 insertions, 0 deletions