Uprobes uses copy_to_user() to write data/stack and never to write to
instruction addresses.
To write an instruction uprobes either used access_process_vm or the
replace_page() based background page replacement method. This is true
even if the process was probing itself.
Soon to be posted v4 will revert to background page replacement method
on the lines illustrated by Peter in one of his mails.
Do you see these concerns even when uprobes uses background page replacement?
Yes, I will be adding a check to discard probing if the vma has
VM_SHARED flag set. I have already committed to Oleg on this issue.
I didnt include this check in v3 patchset, because uprobes was using
access_process_vm in v3 patchset and I thought access_process_vm would
do the right thing even if VM_SHARED is set.
--
Thanks and Regards
Srikar
--