Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh64: fix __NR_fgetxattr

According to arch/sh/kernel/syscalls_64.S and common sense, __NR_fgetxattr
has to be defined to 259, but it doesn't. Instead, it's defined to 269,
which is of course used by another syscall, __NR_sched_setaffinity in this
case.

This bug was found by strace test suite.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Dmitry V. Levin and committed by
Linus Torvalds
2d33fa10 854ee2e9

+1 -1
+1 -1
arch/sh/include/uapi/asm/unistd_64.h
··· 278 278 #define __NR_fsetxattr 256 279 279 #define __NR_getxattr 257 280 280 #define __NR_lgetxattr 258 281 - #define __NR_fgetxattr 269 281 + #define __NR_fgetxattr 259 282 282 #define __NR_listxattr 260 283 283 #define __NR_llistxattr 261 284 284 #define __NR_flistxattr 262