Skip to content

Commit aaebbf1

Browse files
ldv-altgregkh
authored andcommitted
sh64: fix __NR_fgetxattr
commit 2d33fa1 upstream. 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 <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e25c03a commit aaebbf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/sh/include/uapi/asm/unistd_64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
#define __NR_fsetxattr 256
279279
#define __NR_getxattr 257
280280
#define __NR_lgetxattr 258
281-
#define __NR_fgetxattr 269
281+
#define __NR_fgetxattr 259
282282
#define __NR_listxattr 260
283283
#define __NR_llistxattr 261
284284
#define __NR_flistxattr 262

0 commit comments

Comments
 (0)