All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: system call wire up
@ 2016-06-11 17:06 Yoshinori Sato
  2016-06-11 21:32 ` John Paul Adrian Glaubitz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Yoshinori Sato @ 2016-06-11 17:06 UTC (permalink / raw)
  To: linux-sh

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
---
 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(-)

diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h
index d13a1d6..c801bde 100644
--- a/arch/sh/include/uapi/asm/unistd_32.h
+++ b/arch/sh/include/uapi/asm/unistd_32.h
@@ -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 */
diff --git a/arch/sh/include/uapi/asm/unistd_64.h b/arch/sh/include/uapi/asm/unistd_64.h
index 47ebd5b..ce0cb35 100644
--- a/arch/sh/include/uapi/asm/unistd_64.h
+++ b/arch/sh/include/uapi/asm/unistd_64.h
@@ -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 */
diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S
index 734234b..f03a16b 100644
--- a/arch/sh/kernel/syscalls_32.S
+++ b/arch/sh/kernel/syscalls_32.S
@@ -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
diff --git a/arch/sh/kernel/syscalls_64.S b/arch/sh/kernel/syscalls_64.S
index 579fcb9..7e79252 100644
--- a/arch/sh/kernel/syscalls_64.S
+++ b/arch/sh/kernel/syscalls_64.S
@@ -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
-- 
2.7.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] sh: system call wire up
  2016-06-11 17:06 [PATCH] sh: system call wire up Yoshinori Sato
@ 2016-06-11 21:32 ` John Paul Adrian Glaubitz
  2016-06-12  9:03 ` Geert Uytterhoeven
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: John Paul Adrian Glaubitz @ 2016-06-11 21:32 UTC (permalink / raw)
  To: linux-sh

Hi Yoshinori!

Thanks updating the syscall table. Please mark the following bug as RESOLVED once
your patches have been committed:

> https://bugzilla.kernel.org/show_bug.cgi?id\x119121

Adrian

On 06/11/2016 07:06 PM, Yoshinori Sato wrote:
> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> ---
>  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(-)
> 
> diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h
> index d13a1d6..c801bde 100644
> --- a/arch/sh/include/uapi/asm/unistd_32.h
> +++ b/arch/sh/include/uapi/asm/unistd_32.h
> @@ -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 */
> diff --git a/arch/sh/include/uapi/asm/unistd_64.h b/arch/sh/include/uapi/asm/unistd_64.h
> index 47ebd5b..ce0cb35 100644
> --- a/arch/sh/include/uapi/asm/unistd_64.h
> +++ b/arch/sh/include/uapi/asm/unistd_64.h
> @@ -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 */
> diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S
> index 734234b..f03a16b 100644
> --- a/arch/sh/kernel/syscalls_32.S
> +++ b/arch/sh/kernel/syscalls_32.S
> @@ -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
> diff --git a/arch/sh/kernel/syscalls_64.S b/arch/sh/kernel/syscalls_64.S
> index 579fcb9..7e79252 100644
> --- a/arch/sh/kernel/syscalls_64.S
> +++ b/arch/sh/kernel/syscalls_64.S
> @@ -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
> 


-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] sh: system call wire up
  2016-06-11 17:06 [PATCH] sh: system call wire up Yoshinori Sato
  2016-06-11 21:32 ` John Paul Adrian Glaubitz
@ 2016-06-12  9:03 ` Geert Uytterhoeven
  2016-06-12  9:54 ` Yoshinori Sato
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2016-06-12  9:03 UTC (permalink / raw)
  To: linux-sh

Hi Sato-san,

On Sat, Jun 11, 2016 at 7:06 PM, Yoshinori Sato
<ysato@users.sourceforge.jp> wrote:
> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> ---
>  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(-)
>
> diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h
> index d13a1d6..c801bde 100644
> --- a/arch/sh/include/uapi/asm/unistd_32.h
> +++ b/arch/sh/include/uapi/asm/unistd_32.h
> @@ -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 -- geert@linux-m68k.org

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] sh: system call wire up
  2016-06-11 17:06 [PATCH] sh: system call wire up Yoshinori Sato
  2016-06-11 21:32 ` John Paul Adrian Glaubitz
  2016-06-12  9:03 ` Geert Uytterhoeven
@ 2016-06-12  9:54 ` Yoshinori Sato
  2016-06-12 10:11 ` John Paul Adrian Glaubitz
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Yoshinori Sato @ 2016-06-12  9:54 UTC (permalink / raw)
  To: linux-sh

On Sun, 12 Jun 2016 18:03:13 +0900,
Geert Uytterhoeven wrote:
> 
> Hi Sato-san,
> 
> On Sat, Jun 11, 2016 at 7:06 PM, Yoshinori Sato
> <ysato@users.sourceforge.jp> wrote:
> > Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> > ---
> >  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(-)
> >
> > diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h
> > index d13a1d6..c801bde 100644
> > --- a/arch/sh/include/uapi/asm/unistd_32.h
> > +++ b/arch/sh/include/uapi/asm/unistd_32.h
> > @@ -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.

It automaticaly generate.

But I think "HAVE_ARCH_SECCOMP_FILTER" is not set on sh.
So not rquired architecture support.

> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> 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
<ysato@users.sourceforge.jp>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] sh: system call wire up
  2016-06-11 17:06 [PATCH] sh: system call wire up Yoshinori Sato
                   ` (2 preceding siblings ...)
  2016-06-12  9:54 ` Yoshinori Sato
@ 2016-06-12 10:11 ` John Paul Adrian Glaubitz
  2016-06-12 11:03 ` Sergei Shtylyov
  2016-06-13 13:18 ` Yoshinori Sato
  5 siblings, 0 replies; 7+ messages in thread
From: John Paul Adrian Glaubitz @ 2016-06-12 10:11 UTC (permalink / raw)
  To: linux-sh

On 06/12/2016 11:54 AM, Yoshinori Sato wrote:
> It automaticaly generate.

Interesting. What tool did you use to automatically generate the syscall table?

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] sh: system call wire up
  2016-06-11 17:06 [PATCH] sh: system call wire up Yoshinori Sato
                   ` (3 preceding siblings ...)
  2016-06-12 10:11 ` John Paul Adrian Glaubitz
@ 2016-06-12 11:03 ` Sergei Shtylyov
  2016-06-13 13:18 ` Yoshinori Sato
  5 siblings, 0 replies; 7+ messages in thread
From: Sergei Shtylyov @ 2016-06-12 11:03 UTC (permalink / raw)
  To: linux-sh

Hello.

On 6/11/2016 8:06 PM, Yoshinori Sato wrote:

> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

[...]
>  #endif /* __ASM_SH_UNISTD_64_H */
> diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S
> index 734234b..f03a16b 100644
> --- a/arch/sh/kernel/syscalls_32.S
> +++ b/arch/sh/kernel/syscalls_32.S
> @@ -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?

> +	.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
> diff --git a/arch/sh/kernel/syscalls_64.S b/arch/sh/kernel/syscalls_64.S
> index 579fcb9..7e79252 100644
> --- a/arch/sh/kernel/syscalls_64.S
> +++ b/arch/sh/kernel/syscalls_64.S
> @@ -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?

> +	.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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] sh: system call wire up
  2016-06-11 17:06 [PATCH] sh: system call wire up Yoshinori Sato
                   ` (4 preceding siblings ...)
  2016-06-12 11:03 ` Sergei Shtylyov
@ 2016-06-13 13:18 ` Yoshinori Sato
  5 siblings, 0 replies; 7+ messages in thread
From: Yoshinori Sato @ 2016-06-13 13:18 UTC (permalink / raw)
  To: linux-sh

On Sun, 12 Jun 2016 20:03:08 +0900,
Sergei Shtylyov wrote:
> 
> Hello.
> 
> On 6/11/2016 8:06 PM, Yoshinori Sato wrote:
> 
> > Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> 
> [...]
> >  #endif /* __ASM_SH_UNISTD_64_H */
> > diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S
> > index 734234b..f03a16b 100644
> > --- a/arch/sh/kernel/syscalls_32.S
> > +++ b/arch/sh/kernel/syscalls_32.S
> > @@ -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.

> > +	.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
> > diff --git a/arch/sh/kernel/syscalls_64.S b/arch/sh/kernel/syscalls_64.S
> > index 579fcb9..7e79252 100644
> > --- a/arch/sh/kernel/syscalls_64.S
> > +++ b/arch/sh/kernel/syscalls_64.S
> > @@ -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?
> 
> > +	.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
<ysato@users.sourceforge.jp>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-13 13:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-11 17:06 [PATCH] sh: system call wire up Yoshinori Sato
2016-06-11 21:32 ` John Paul Adrian Glaubitz
2016-06-12  9:03 ` Geert Uytterhoeven
2016-06-12  9:54 ` Yoshinori Sato
2016-06-12 10:11 ` John Paul Adrian Glaubitz
2016-06-12 11:03 ` Sergei Shtylyov
2016-06-13 13:18 ` Yoshinori Sato

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.