문제

enter image description here

this is a figure from Intel architecture manual. in x86 32bit page table entry, where is the bit which indicates if the page is executable or not?

if it's not here, how can a OS set memory permission for exec? with something like mmap function?

도움이 되었습니까?

해결책

AFAIK, a page is executable if it's readable, so they all executable. But, what you might thinking here is that, there are pages which has nonexec bit set. Well, that's a software hack, done from kernel. This technique was introduced to avoid stackoverflow based attack, by making a particular page (vm area) non-executable.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top