Re: PTRACE_{READ,WRITE}{TEXT,DATA}

From: Benjamin Herrenschmidt
Date: Tue Apr 29 2008 - 01:07:35 EST



> Strange, changing access_process_vm on Fedora 9 made gdb able to
> see video memory that the X server had mmapped.
>
> Are you sure gdb behaves as you suggest?
>
> On x86 my patch seems to work as I expected...

Because /proc/<pid>/mem also uses access_process_vm(). See
fs/proc/base.c

Cheers,
Ben.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/