foss-for-synopsys-dwc-arc-processors / linux

Helpful resources for users & developers of Linux kernel for ARC
22 stars 13 forks source link

ARCv3: use "stop_pc_val" of correct size in ptrace #57

Closed shahab-vahedi closed 2 years ago

shahab-vahedi commented 2 years ago

"stop_pc_val" variable defined in "gen_regsget()" is a 4-byte variable. This goes awry when it is used for transferring the PC value for ARCv3 which is 8 bytes long.

Signed-off-by: Shahab Vahedi shahab@synopsys.com

vineetgarc commented 2 years ago

LGTM ! Are there any other places in ptrace code where we need similar fixes.

shahab-vahedi commented 2 years ago

LGTM ! Are there any other places in ptrace code where we need similar fixes.

I've looked but haven't found any.

vineetgarc commented 2 years ago

Merged.