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.
Unified · Split
| @@ -278,7 +278,7 @@ · 277 unmodified lines | |||
| 278 | #define __NR_fsetxattr 256 | 278 | #define __NR_fsetxattr 256 |
| 279 | #define __NR_getxattr 257 | 279 | #define __NR_getxattr 257 |
| 280 | #define __NR_lgetxattr 258 | 280 | #define __NR_lgetxattr 258 |
| 281 | #define __NR_fgetxattr 269 | 281 | #define __NR_fgetxattr 259 |
| 282 | #define __NR_listxattr 260 | 282 | #define __NR_listxattr 260 |
| 283 | #define __NR_llistxattr 261 | 283 | #define __NR_llistxattr 261 |
| 284 | #define __NR_flistxattr 262 | 284 | #define __NR_flistxattr 262 |