Messages in this thread Patch in this message | | | Date | Thu, 15 May 2008 13:53:59 -0400 | From | Rik van Riel <> | Subject | [patch 2/5] use generic_access_phys for /dev/mem mappings |
| |
Use generic_access_phys as the access_process_vm access function for /dev/mem mappings. This makes it possible to debug the X server.
Signed-off-by: Rik van Riel <riel@redhat.com>
Index: ptrace-2.6.26-rc2-mm1/drivers/char/mem.c =================================================================== --- ptrace-2.6.26-rc2-mm1.orig/drivers/char/mem.c 2008-05-15 13:28:13.000000000 -0400 +++ ptrace-2.6.26-rc2-mm1/drivers/char/mem.c 2008-05-15 13:28:41.000000000 -0400 @@ -326,7 +326,8 @@ static void mmap_mem_close(struct vm_are static struct vm_operations_struct mmap_mem_ops = { .open = mmap_mem_open, - .close = mmap_mem_close + .close = mmap_mem_close, + .access = generic_access_phys }; static int mmap_mem(struct file * file, struct vm_area_struct * vma) -- All Rights Reversed
| |