Extending the use of RO and NX
Posted Jan 13, 2011 17:47 UTC (Thu) by nevets (subscriber, #11875)
1) (slower) method is to allocate a new page table entry that points to the same page but with write permission and make the modification via this new page table entrty.
2) (ftrace function tracer use) just before calling stop machine, all pages are converted back to RW, then stop machine is called and all changes are made, when stop machine finishes, the pages are put back to RO.
Posted Jan 13, 2011 22:46 UTC (Thu) by PaXTeam (guest, #24616)
they're also performed whenever all but one CPUs are offlined (SMP->UP) or when the second CPU comes online later (UP->SMP). this can be achieved by explicit action for a CPU (via /sys/devices/system/cpu/cpu*/online) or when suspend/reboot/halt occurs.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds