2

I would like to scan all executable pages in the linux kernel. The most easiest way is to walk through the page table to identify all PTEs(Page Table Entries) which clear the NX bit. However, identifying all PTEs is costly.

I want to know the relationship of the NX bit among the four-level page tables. For example, if the NX bit for a PMD(Page Middle Directory) entry is set, does it mean that all PTEs referred by this PMD entry are non-executable? If so, I can optimize the scan procedure by pruning.

Can someone help me? Great thanks.

2
  • What documentation have you read? and What architecture (CPU)? Aug 26, 2019 at 8:52
  • I see this question is over a year and a half old. Did you find an answer? Aug 26, 2019 at 9:03

0

You must log in to answer this question.

Browse other questions tagged .