[PATCH] prevent ptrace from altering page permissions
From: Roland McGrath <roland@redhat.com> Under some circumstances, ptrace PEEK/POKE_TEXT can cause page permissions to be permanently changed. Thsi causes changes in application behaviour when run under gdb. Fix that by only marking the pte as writeable if the vma is marked for writing. A write fault thus unshares the page but doesn't necessarily make it writeable.
Showing
Please register or sign in to comment