sh: system call wire up
Yoshinori Sato
maintainerPATCH 1/1 sh: system call wire up
--- arch/sh/include/uapi/asm/unistd_32.h | 16 +++++++++++++++- arch/sh/include/uapi/asm/unistd_64.h | 16 +++++++++++++++- arch/sh/kernel/syscalls_32.S | 14 ++++++++++++++ arch/sh/kernel/syscalls_64.S | 14 ++++++++++++++ 4 files changed, 58 insertions(+), 2 deletions(-)
arch/sh/include/uapi/asm/unistd_32.h +15 -1
@@ -380,7 +380,21 @@#define __NR_process_vm_writev 366#define __NR_kcmp 367#define __NR_finit_module 368 +#define __NR_sched_getattr 369 +#define __NR_sched_setattr 370 +#define __NR_renameat2 371 +#define __NR_seccomp 372 +#define __NR_getrandom 373 +#define __NR_memfd_create 374 +#define __NR_bpf 375 +#define __NR_execveat 376 +#define __NR_userfaultfd 377 +#define __NR_membarrier 378 +#define __NR_mlock2 379 +#define __NR_copy_file_range 380 +#define __NR_preadv2 381 +#define __NR_pwritev2 382 -#define NR_syscalls 369 +#define NR_syscalls 383#endif /* __ASM_SH_UNISTD_32_H */
arch/sh/include/uapi/asm/unistd_64.h +15 -1
@@ -400,7 +400,21 @@#define __NR_process_vm_writev 377#define __NR_kcmp 378#define __NR_finit_module 379 +#define __NR_sched_getattr 380 +#define __NR_sched_setattr 381 +#define __NR_renameat2 382 +#define __NR_seccomp 383 +#define __NR_getrandom 384 +#define __NR_memfd_create 385 +#define __NR_bpf 386 +#define __NR_execveat 387 +#define __NR_userfaultfd 388 +#define __NR_membarrier 389 +#define __NR_mlock2 390 +#define __NR_copy_file_range 391 +#define __NR_preadv2 392 +#define __NR_pwritev2 393 -#define NR_syscalls 380 +#define NR_syscalls 394#endif /* __ASM_SH_UNISTD_64_H */
arch/sh/kernel/syscalls_32.S +14 -0
@@ -386,3 +386,17 @@ ENTRY(sys_call_table) .long sys_process_vm_writev .long sys_kcmp .long sys_finit_module + .long sys_sched_getattr + .long sys_sched_getattr /* 370 */ + .long sys_renameat2 + .long sys_seccomp + .long sys_getrandom + .long sys_memfd_create + .long sys_bpf /* 375 */ + .long sys_execveat + .long sys_userfaultfd + .long sys_membarrier + .long sys_mlock2 + .long sys_copy_file_range /* 380 */ + .long sys_preadv2 + .long sys_pwritev2
arch/sh/kernel/syscalls_64.S +14 -0
@@ -406,3 +406,17 @@ sys_call_table: .long sys_process_vm_writev .long sys_kcmp .long sys_finit_module + .long sys_sched_getattr /* 380 */ + .long sys_sched_getattr + .long sys_renameat2 + .long sys_seccomp + .long sys_getrandom + .long sys_memfd_create /* 385 */ + .long sys_bpf + .long sys_execveat + .long sys_userfaultfd + .long sys_membarrier + .long sys_mlock2 /* 390 */ + .long sys_copy_file_range + .long sys_preadv2 + .long sys_pwritev2
Signature · 1 line
2.7.0
John Paul Adrian Glaubitz
maintainerHi Yoshinori!
Thanks updating the syscall table. Please mark the following bug as RESOLVED once your patches have been committed:
Quoted 1 line
Adrian
Quoted 107 lines · Yoshinori Sato
Signed-off-by Yoshinori Sato <[email protected]>--- arch/sh/include/uapi/asm/unistd_32.h | 16 +++++++++++++++- arch/sh/include/uapi/asm/unistd_64.h | 16 +++++++++++++++- arch/sh/kernel/syscalls_32.S | 14 ++++++++++++++ arch/sh/kernel/syscalls_64.S | 14 ++++++++++++++ 4 files changed, 58 insertions(+), 2 deletions(-)arch/sh/include/uapi/asm/unistd_32.h +15
-1@@ -380,7 +380,21 @@#define __NR_process_vm_writev 366#define __NR_kcmp 367#define __NR_finit_module 368 +#define __NR_sched_getattr 369 +#define __NR_sched_setattr 370 +#define __NR_renameat2 371 +#define __NR_seccomp 372 +#define __NR_getrandom 373 +#define __NR_memfd_create 374 +#define __NR_bpf 375 +#define __NR_execveat 376 +#define __NR_userfaultfd 377 +#define __NR_membarrier 378 +#define __NR_mlock2 379 +#define __NR_copy_file_range 380 +#define __NR_preadv2 381 +#define __NR_pwritev2 382 -#define NR_syscalls 369 +#define NR_syscalls 383#endif /* __ASM_SH_UNISTD_32_H */ arch/sh/include/uapi/asm/unistd_64.h +15
-1@@ -400,7 +400,21 @@#define __NR_process_vm_writev 377#define __NR_kcmp 378#define __NR_finit_module 379 +#define __NR_sched_getattr 380 +#define __NR_sched_setattr 381 +#define __NR_renameat2 382 +#define __NR_seccomp 383 +#define __NR_getrandom 384 +#define __NR_memfd_create 385 +#define __NR_bpf 386 +#define __NR_execveat 387 +#define __NR_userfaultfd 388 +#define __NR_membarrier 389 +#define __NR_mlock2 390 +#define __NR_copy_file_range 391 +#define __NR_preadv2 392 +#define __NR_pwritev2 393 -#define NR_syscalls 380 +#define NR_syscalls 394#endif /* __ASM_SH_UNISTD_64_H */ arch/sh/kernel/syscalls_32.S +14
-0@@ -386,3 +386,17 @@ ENTRY(sys_call_table) .long sys_process_vm_writev .long sys_kcmp .long sys_finit_module + .long sys_sched_getattr + .long sys_sched_getattr /* 370 */ + .long sys_renameat2 + .long sys_seccomp + .long sys_getrandom + .long sys_memfd_create + .long sys_bpf /* 375 */ + .long sys_execveat + .long sys_userfaultfd + .long sys_membarrier + .long sys_mlock2 + .long sys_copy_file_range /* 380 */ + .long sys_preadv2 + .long sys_pwritev2arch/sh/kernel/syscalls_64.S +14
-0@@ -406,3 +406,17 @@ sys_call_table: .long sys_process_vm_writev .long sys_kcmp .long sys_finit_module + .long sys_sched_getattr /* 380 */ + .long sys_sched_getattr + .long sys_renameat2 + .long sys_seccomp + .long sys_getrandom + .long sys_memfd_create /* 385 */ + .long sys_bpf + .long sys_execveat + .long sys_userfaultfd + .long sys_membarrier + .long sys_mlock2 /* 390 */ + .long sys_copy_file_range + .long sys_preadv2 + .long sys_pwritev2
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer - [email protected] `. `' Freie Universitaet Berlin - [email protected] `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Hi Sato-san,
Quoted 13 lines · Yoshinori Sato
Signed-off-by Yoshinori Sato <[email protected]>--- arch/sh/include/uapi/asm/unistd_32.h | 16 +++++++++++++++- arch/sh/include/uapi/asm/unistd_64.h | 16 +++++++++++++++- arch/sh/kernel/syscalls_32.S | 14 ++++++++++++++ arch/sh/kernel/syscalls_64.S | 14 ++++++++++++++ 4 files changed, 58 insertions(+), 2 deletions(-)arch/sh/include/uapi/asm/unistd_32.h +0
-0
arch/sh/include/uapi/asm/unistd_32.h line 386
Quoted 7 lines
arch/sh/include/uapi/asm/unistd_32.h +4
-0@@ -380,7 +380,21 @@#define __NR_process_vm_writev 366#define __NR_kcmp 367#define __NR_finit_module 368 +#define __NR_sched_getattr 369 +#define __NR_sched_setattr 370 +#define __NR_renameat2 371 +#define __NR_seccomp 372
Doesn't seccomp need architecture support before it can be enabled?
That's the reason why I haven't wired it up on m68k yet.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Yoshinori Sato
maintainerQuoted 28 lines · Geert Uytterhoeven
Hi Sato-san,
Quoted 13 lines · Yoshinori Sato
Signed-off-by Yoshinori Sato <[email protected]>--- arch/sh/include/uapi/asm/unistd_32.h | 16 +++++++++++++++- arch/sh/include/uapi/asm/unistd_64.h | 16 +++++++++++++++- arch/sh/kernel/syscalls_32.S | 14 ++++++++++++++ arch/sh/kernel/syscalls_64.S | 14 ++++++++++++++ 4 files changed, 58 insertions(+), 2 deletions(-)arch/sh/include/uapi/asm/unistd_32.h +0
-0arch/sh/include/uapi/asm/unistd_32.h line 386
Quoted 7 lines
arch/sh/include/uapi/asm/unistd_32.h +4
-0@@ -380,7 +380,21 @@#define __NR_process_vm_writev 366#define __NR_kcmp 367#define __NR_finit_module 368 +#define __NR_sched_getattr 369 +#define __NR_sched_setattr 370 +#define __NR_renameat2 371 +#define __NR_seccomp 372Doesn't seccomp need architecture support before it can be enabled?
Quoted 1 line
That's the reason why I haven't wired it up on m68k yet.
It automaticaly generate.
But I think "HAVE_ARCH_SECCOMP_FILTER" is not set on sh. So not rquired architecture support.
Quoted 10 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Signature · 2 lines
Yoshinori Sato <[email protected]>
John Paul Adrian Glaubitz
maintainerQuoted 1 line · Yoshinori Sato
It automaticaly generate.
Interesting. What tool did you use to automatically generate the syscall table?
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer - [email protected] `. `' Freie Universitaet Berlin - [email protected] `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Hello.
Quoted 1 line · Yoshinori Sato
Signed-off-by Yoshinori Sato <[email protected]>
[...]
arch/sh/kernel/syscalls_32.S ENTRY(sys_call_table) · line 390
Quoted 11 lines
#endif /*
__ASM_SH_UNISTD_64_H*/arch/sh/kernel/syscalls_32.S +2
-0@@ -386,3 +386,17 @@ ENTRY(sys_call_table) .long sys_process_vm_writev .long sys_kcmp .long sys_finit_module + .long sys_sched_getattr + .long sys_sched_getattr /* 370 */
Not sys_sched_setattr?
Quoted 17 lines
arch/sh/kernel/syscalls_32.S +12
-0+ .long sys_renameat2 + .long sys_seccomp + .long sys_getrandom + .long sys_memfd_create + .long sys_bpf /* 375 */ + .long sys_execveat + .long sys_userfaultfd + .long sys_membarrier + .long sys_mlock2 + .long sys_copy_file_range /* 380 */ + .long sys_preadv2 + .long sys_pwritev2arch/sh/kernel/syscalls_64.S +0
-0
arch/sh/kernel/syscalls_64.S sys_call_table: · line 410
Quoted 5 lines
arch/sh/kernel/syscalls_64.S +2
-0@@ -406,3 +406,17 @@ sys_call_table: .long sys_process_vm_writev .long sys_kcmp .long sys_finit_module + .long sys_sched_getattr /* 380 */ + .long sys_sched_getattr
Not sys_sched_setattr?
arch/sh/kernel/syscalls_64.S sys_call_table: · line 422
Quoted 12 lines
arch/sh/kernel/syscalls_64.S +12
-0+ .long sys_renameat2 + .long sys_seccomp + .long sys_getrandom + .long sys_memfd_create /* 385 */ + .long sys_bpf + .long sys_execveat + .long sys_userfaultfd + .long sys_membarrier + .long sys_mlock2 /* 390 */ + .long sys_copy_file_range + .long sys_preadv2 + .long sys_pwritev2
MBR, Serei
Yoshinori Sato
maintainerQuoted 8 lines · Sergei Shtylyov
Hello.
Quoted 1 line · Yoshinori Sato
Signed-off-by Yoshinori Sato <[email protected]>[...]
Quoted 13 lines
arch/sh/kernel/syscalls_32.S ENTRY(sys_call_table) · line 390
Quoted 11 lines
#endif /*
__ASM_SH_UNISTD_64_H*/arch/sh/kernel/syscalls_32.S +2
-0@@ -386,3 +386,17 @@ ENTRY(sys_call_table) .long sys_process_vm_writev .long sys_kcmp .long sys_finit_module + .long sys_sched_getattr + .long sys_sched_getattr /* 370 */Not
sys_sched_setattr?
Ouch.
Yes. I mistake.
I will send v2.
Quoted 40 lines
Quoted 17 lines
arch/sh/kernel/syscalls_32.S +12
-0+ .long sys_renameat2 + .long sys_seccomp + .long sys_getrandom + .long sys_memfd_create + .long sys_bpf /* 375 */ + .long sys_execveat + .long sys_userfaultfd + .long sys_membarrier + .long sys_mlock2 + .long sys_copy_file_range /* 380 */ + .long sys_preadv2 + .long sys_pwritev2arch/sh/kernel/syscalls_64.S +0
-0arch/sh/kernel/syscalls_64.S sys_call_table: · line 410
Quoted 5 lines
arch/sh/kernel/syscalls_64.S +2
-0@@ -406,3 +406,17 @@ sys_call_table: .long sys_process_vm_writev .long sys_kcmp .long sys_finit_module + .long sys_sched_getattr /* 380 */ + .long sys_sched_getattrNot
sys_sched_setattr?arch/sh/kernel/syscalls_64.S sys_call_table: · line 422
Quoted 12 lines
arch/sh/kernel/syscalls_64.S +12
-0+ .long sys_renameat2 + .long sys_seccomp + .long sys_getrandom + .long sys_memfd_create /* 385 */ + .long sys_bpf + .long sys_execveat + .long sys_userfaultfd + .long sys_membarrier + .long sys_mlock2 /* 390 */ + .long sys_copy_file_range + .long sys_preadv2 + .long sys_pwritev2MBR, Serei
Signature · 2 lines
Yoshinori Sato <[email protected]>