Skip to content

Commit f0b22d1

Browse files
ldv-althdeller
authored andcommitted
parisc: fix a bug when syscall number of tracee is __NR_Linux_syscalls
Do not load one entry beyond the end of the syscall table when the syscall number of a traced process equals to __NR_Linux_syscalls. Similar bug with regular processes was fixed by commit 3bb457a ("[PARISC] Fix bug when syscall nr is __NR_Linux_syscalls"). This bug was found by strace test suite. Cc: stable@vger.kernel.org Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Acked-by: Helge Deller <deller@gmx.de> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 9caa7e7 commit f0b22d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/kernel/syscall.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ tracesys_next:
344344
#endif
345345

346346
cmpib,COND(=),n -1,%r20,tracesys_exit /* seccomp may have returned -1 */
347-
comiclr,>>= __NR_Linux_syscalls, %r20, %r0
347+
comiclr,>> __NR_Linux_syscalls, %r20, %r0
348348
b,n .Ltracesys_nosys
349349

350350
LDREGX %r20(%r19), %r19

0 commit comments

Comments
 (0)