Skip to content
Commit 605334bb authored by Kristina Martsenko's avatar Kristina Martsenko Committed by Kevin Brodsky
Browse files

ptrace: fix PTRACE_POKEDATA write size



The PTRACE_POKEDATA request writes a word of data to the tracee's
memory. In PCuABI the size of the write remains 8 bytes. Currently the
kernel erroneously writes 16 bytes, thereby overwriting 8 bytes of
unrelated memory. Fix this by restoring the type of the data argument of
generic_ptrace_pokedata() to unsigned long.

Fixes: ("kernel/ptrace: Modify ptrace syscall to accept capability arguments")
Signed-off-by: Kristina Martsenko's avatarKristina Martsenko <kristina.martsenko@arm.com>
parent 32a0c04e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment