4.10 kernel on thinkpad x220: rodata_test: test data was not read only
Hi!
I'm getting
[ 3.822386] VFS: Mounted root (ext4 filesystem) readonly on device 8:4. [ 3.840420] devtmpfs: mounted [ 3.842346] Freeing unused kernel memory: 536K [ 3.844081] Write protecting the kernel text: 11764k [ 3.845753] Write protecting the kernel read-only data: 4780k [ 3.847326] rodata_test: test data was not read only [ 3.848906] NX-protecting the kernel data: 6668k [ 3.850662] x86/mm: Checked W+X mappings: passed, no W+X pages
found.
I guess that means that kernel hardening does not work as expected... 32bit kernel on thinkpad x220.
Git blame points to
commit edeed30589f5defe63ce6aaae56f2b7c855e4520
Author: Arjan van de Ven <[email protected]> Date: Wed Jan 30 13:34:08 2008 +0100
x86: add testcases for RODATA and NX protections/attributes
Any ideas?
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 1 line · Arjan van de Ven
is NX enabled in the bios?
Yes. (Plus, read-only should work even without NX, right?)
Pavel
Quoted 37 lines · Pavel Machek
Quoted 36 lines
Hi!
I'm getting
[ 3.822386] VFS: Mounted root (ext4 filesystem) readonly on device 8:4. [ 3.840420] devtmpfs: mounted [ 3.842346] Freeing unused kernel memory: 536K [ 3.844081] Write protecting the kernel text: 11764k [ 3.845753] Write protecting the kernel read-only data: 4780k [ 3.847326] rodata_test: test data was not read only [ 3.848906] NX-protecting the kernel data: 6668k [ 3.850662] x86/mm: Checked W+X mappings: passed, no W+X pagesfound.
I guess that means that kernel hardening does not work as expected... 32bit kernel on thinkpad x220.
Git blame points to
commit
edeed30589f5defe63ce6aaae56f2b7c855e4520Author: Arjan van de Ven <[email protected]> Date: Wed Jan 30 13:34:08 2008 +0100x86: add testcases for RODATA and NX protections/attributes
Any ideas?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.
cz/~pavel/picture/horses/blog.html
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html