• Michael Ellerman's avatar
    powerpc/ptrace: Don't use sizeof(struct pt_regs) in ptrace code · 3eeacd9f
    Michael Ellerman authored
    Now that we've split the user & kernel versions of pt_regs we need to
    be more careful in the ptrace code.
    
    For now we've ensured the location of the fields in both structs is
    the same, so most of the ptrace code doesn't need updating.
    
    But there are a few places where we use sizeof(pt_regs), and these
    will be wrong as soon as we increase the size of the kernel structure.
    
    So flip them all to use sizeof(user_pt_regs).
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    3eeacd9f
ptrace.c 88.4 KB