• Andrew Morton's avatar
    [PATCH] Pass correct task to get_user_pages in ptrace · 0cfc4052
    Andrew Morton authored
    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)
    0cfc4052
ptrace.c 7.27 KB