Thread (5 messages) 5 messages, 3 authors, 2021-05-21

Re: [PATCH 1/2] powerpc/64s/syscall: Use pt_regs.trap to distinguish syscall ABI difference between sc and scv syscalls

From: Dmitry V. Levin <hidden>
Date: 2021-05-20 11:41:31

On Thu, May 20, 2021 at 09:19:30PM +1000, Nicholas Piggin wrote:
The sc and scv 0 system calls have different ABI conventions, and
ptracers need to know which system call type is being used if it wants
to look at the syscall registers.
typo: s/if it wants/if they want/
Document that pt_regs.trap can be used for this, and fix one in-tree user
to work with scv 0 syscalls.

Fixes: 7fa95f9adaee ("powerpc/64s: system call support for scv/rfscv instructions")
Reported-by: "Dmitry V. Levin" <redacted>
Suggested-by: "Dmitry V. Levin" <redacted>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Also consider adding
Cc: stable@vger.kernel.org # 5.9+

Besides that, looks good, thanks!


-- 
ldv
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help