Re: [PATCH 3/3] linux-nat: Exploit /proc//mem for writing

Andreas Arnez
2017-03-14T09:54:20Z

On Mon, Mar 13 2017, Pedro Alves wrote:

> On 03/06/2017 04:00 PM, Andreas Arnez wrote:
>> So far linux_proc_xfer_partial refused to handle write requests. This is
>> still based on the assumption that the Linux kernel does not support
>> writes to /proc/<pid>/mem. That used to be true, but has changed with
>> Linux 2.6.39 released in May 2011.
>
> Hey, I had not noticed that. Awesome.
>
> (There's also process_vm_readv / process_vm_writev.)

Right. This reminds me that I've started a patch for exploiting
process_vm_readv/writev two years ago, but then abandoned it. There was
some problem with it, but I don't recall the details. Maybe I can dig
it out and try again...

--
Andreas