]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/kexec: Mark relocate_kernel page as ROX instead of RWX
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 22 Nov 2024 13:34:04 +0000 (13:34 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 5 Dec 2024 15:05:07 +0000 (15:05 +0000)
commit72ea5cd1dd87434a24ca4a622b5b2ba3bf99dafa
tree728bc35a59d755dd4a8240b71781155bbcb005ca
parent9e0c1253e08a88516b5839b408cf877afa453906
x86/kexec: Mark relocate_kernel page as ROX instead of RWX

All writes to the page now happen before it gets marked as executable
(or after it's already switched to the identmap page tables where it's
OK to be RWX).

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kernel/machine_kexec_64.c