[PATCH] Pass correct task to get_user_pages in ptrace
From: Andi Kleen <ak@suse.de> ptrace/access_process_vm was passing current to get_user_pages as task, but it should have been clearly the child task instead. This fixes the fault accounting in ptrace and the vsyscall debugging on x86-64 (it needs the correct task_struct to map the vsyscall pages)
Showing
Please register or sign in to comment