STRICT_KERNEL_RWX weakened on ARM by CONFIG_ARM_LPAE=y
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] STRICT_KERNEL_RWX weakened on ARM by CONFIG_ARM_LPAE=y
Quoted 30 lines · Baruch Siach
Hi Russell,
Quoted 20 lines · Russell King - ARM Linux
Quoted 19 lines · Kees Cook
Quoted 17 lines · Philip Derrin
Hi,
This patch series fixes a bug which makes
CONFIG_STRICT_KERNEL_RWXineffective whenCONFIG_ARM_LPAEis enabled. Specifically, the kernel text and rodata are mapped writeable. This has been the case sinceDEBUG_RODATAfor ARM was first merged in 3.19.The cause was an incorrect conflict resolution in
1e3479225acb("ARM: 8275/1:
mm: fixPMD_SECT_RDONLYundeclared compile error") between the commit that implementedDEBUG_RODATA,80d6b0c2eed2("ARM: mm: allow text and rodata sections to be read-only"), and another that moved the LPAE read-only bit into a software bit,ded947798469("ARM: 8109/1: mm: Modifypte_writeandpmd_writelogic for LPAE").The incorrect mappings were not apparent in the debugfs
kernel_page_tablesdump because that was checking only the software RO bit, not the hardware RO bit.Quoted 6 lines
Quoted 3 lines
Thanks for catching this! Please consider both patches:
Reviewed-by Kees Cook <[email protected]>Where are these patches, and why weren't they copied to the arm kernel list?
Quoted 8 lines
I got the patches from the list.
Cover:
http://lists.infradead.org/pipermail/linux-arm-kernel/2017-November/541532.html
1/2:
http://lists.infradead.org/pipermail/linux-arm-kernel/2017-November/541531.html
2/2:
http://lists.infradead.org/pipermail/linux-arm-kernel/2017-November/541533.html
Ah, dspam decided they were spam, so they ended up in one of my junk mailboxes.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up