mchesser opened PR #2890 from prot-fix
to main
:
Fixes: #2807
mchesser updated PR #2890 from prot-fix
to main
.
mchesser updated PR #2890 from prot-fix
to main
.
mchesser updated PR #2890 from prot-fix
to main
.
mchesser updated PR #2890 from prot-fix
to main
.
mchesser updated PR #2890 from prot-fix
to main
.
mchesser updated PR #2890 from prot-fix
to main
.
mchesser updated PR #2890 from prot-fix
to main
.
akirilov-arm submitted PR review.
akirilov-arm created PR review comment:
Shouldn't this set
self.executable
to 0 instead?
bjorn3 submitted PR review.
bjorn3 created PR review comment:
I think
executable
should be renamed toalready_protected
.
akirilov-arm submitted PR review.
akirilov-arm created PR review comment:
"Protected" in this context may mean either read-only or readable and executable (but not writable), so
already_protected
is a bit ambiguous. How aboutalready_executable
?
bjorn3 submitted PR review.
bjorn3 created PR review comment:
How about already_executable?
That would suggested that it is only for readable+executable, while this field is also for readonly. I suggested
already_protected
as the function that changes the memory permissions is calledprotect
.
akirilov-arm submitted PR review.
akirilov-arm created PR review comment:
My bad, I thought that making the read-only parts of the memory readable and executable was also a valid use case, but apparently the idea is only to make transitions from readable and writable to either readable and executable or read-only.
akirilov-arm edited PR review comment.
mchesser submitted PR review.
mchesser created PR review comment:
Yeah I had the same difficulty understanding it when I came across this -- and I wasn't entirely sure whether I was missing something.
mchesser updated PR #2890 from prot-fix
to main
.
bjorn3 submitted PR review.
akirilov-arm merged PR #2890.
Last updated: Dec 23 2024 at 12:05 UTC