Messages in this thread | | | Date | Thu, 5 Dec 2013 18:49:23 +0100 | From | Borislav Petkov <> | Subject | Re: [PATCH?] uprobes: change uprobe_write_opcode() to modify the page directly |
| |
On Thu, Dec 05, 2013 at 06:23:55PM +0100, Oleg Nesterov wrote: > This is almost off-topic, but I am wondering if (in the long term) we > can avoid this "insert the bp into every mm" altogether. > > Instead, uprobe_write_opcode() should only unmap this page and set
Ok, sorry if I'm completely off base here but have you guys tried unmapping the page from all other VMs, patching it and causing all the VMs to refault it thereby getting the updated content? During the patching you'd probably need to cause the #PF handler to "loop" until patching is complete though.
I don't know whether that is even doable/makes sense - just a dumb idea...
-- Regards/Gruss, Boris.
Sent from a fat crate under my desk. Formatting is fine. --
| |