diff options
author | Dave Hansen <[email protected]> | 2022-10-03 13:23:46 -0700 |
---|---|---|
committer | Dave Hansen <[email protected]> | 2022-10-04 12:53:52 -0700 |
commit | c5129ecc12a3101555d8922b1e0aa90f91247ab6 (patch) | |
tree | e34c856f6309202ccb083abd7c24bdd7d147dc58 /drivers/fpga/fpga-mgr.c | |
parent | 8c4934f4754057e3577bb1536c6ecc0efa2c966e (diff) |
x86/mm: Ease W^X enforcement back to just a warning
Currently, the "change_page_attr" (CPA) code refuses to create
W+X mappings on 64-bit kernels. There have been reports both
from 32-bit[1] and from BPF[2] users where this change kept the
system from booting.
These reports are showing up even after about a month of soak
time in -next.
To avoid breaking anything, never enforce W^X. Always warn
and return the requested permissions even if a problem is
detected.
1. https://lore.kernel.org/all/CAMj1kXHcF_iK_g0OZSkSv56Wmr=eQGQwNstcNjLEfS=mm7a06w@mail.gmail.com/
2. https://lore.kernel.org/bpf/[email protected]/T/#u
Signed-off-by: Dave Hansen <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: [email protected]
Cc: "H. Peter Anvin" <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions