* [PATCH v2] generic syscalls: Wire up statx syscall
@ 2017-03-13 14:45 ` Stafford Horne
0 siblings, 0 replies; 13+ messages in thread
From: Stafford Horne @ 2017-03-13 14:45 UTC (permalink / raw)
To: linux-kernel
Cc: Stafford Horne, Thomas Gleixner, Al Viro, David Howells,
Catalin Marinas, Will Deacon, linux-arm-kernel, Arnd Bergmann,
linux-arch
The new syscall statx is implemented as generic code, so enable it
for architectures like openrisc which use the generic syscall table.
Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Stafford Horne <shorne@gmail.com>
---
Change in v2:
- Add a few more Cc's to get attention of the right people
- Add a fixes tag for better audit
include/uapi/asm-generic/unistd.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h
index 9b1462e..a076cf1 100644
--- a/include/uapi/asm-generic/unistd.h
+++ b/include/uapi/asm-generic/unistd.h
@@ -730,9 +730,11 @@ __SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect)
__SYSCALL(__NR_pkey_alloc, sys_pkey_alloc)
#define __NR_pkey_free 290
__SYSCALL(__NR_pkey_free, sys_pkey_free)
+#define __NR_statx 291
+__SYSCALL(__NR_statx, sys_statx)
#undef __NR_syscalls
-#define __NR_syscalls 291
+#define __NR_syscalls 292
/*
* All syscalls below here should go away really,
--
2.9.3
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH v2] generic syscalls: Wire up statx syscall
@ 2017-03-13 14:45 ` Stafford Horne
0 siblings, 0 replies; 13+ messages in thread
From: Stafford Horne @ 2017-03-13 14:45 UTC (permalink / raw)
To: linux-arm-kernel
The new syscall statx is implemented as generic code, so enable it
for architectures like openrisc which use the generic syscall table.
Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arm-kernel at lists.infradead.org
Signed-off-by: Stafford Horne <shorne@gmail.com>
---
Change in v2:
- Add a few more Cc's to get attention of the right people
- Add a fixes tag for better audit
include/uapi/asm-generic/unistd.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h
index 9b1462e..a076cf1 100644
--- a/include/uapi/asm-generic/unistd.h
+++ b/include/uapi/asm-generic/unistd.h
@@ -730,9 +730,11 @@ __SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect)
__SYSCALL(__NR_pkey_alloc, sys_pkey_alloc)
#define __NR_pkey_free 290
__SYSCALL(__NR_pkey_free, sys_pkey_free)
+#define __NR_statx 291
+__SYSCALL(__NR_statx, sys_statx)
#undef __NR_syscalls
-#define __NR_syscalls 291
+#define __NR_syscalls 292
/*
* All syscalls below here should go away really,
--
2.9.3
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH v2] generic syscalls: Wire up statx syscall
2017-03-13 14:45 ` Stafford Horne
(?)
@ 2017-03-15 22:26 ` James Hogan
-1 siblings, 0 replies; 13+ messages in thread
From: James Hogan @ 2017-03-15 22:26 UTC (permalink / raw)
To: Stafford Horne
Cc: LKML, Thomas Gleixner, Al Viro, David Howells, Catalin Marinas,
Will Deacon, ARM Kernel List, Arnd Bergmann, linux-arch
On 13 March 2017 at 14:45, Stafford Horne <shorne@gmail.com> wrote:
> The new syscall statx is implemented as generic code, so enable it
> for architectures like openrisc which use the generic syscall table.
>
> Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Al Viro <viro@zeniv.linux.org.uk>
> Cc: David Howells <dhowells@redhat.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
> Change in v2:
> - Add a few more Cc's to get attention of the right people
> - Add a fixes tag for better audit
>
> include/uapi/asm-generic/unistd.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h
> index 9b1462e..a076cf1 100644
> --- a/include/uapi/asm-generic/unistd.h
> +++ b/include/uapi/asm-generic/unistd.h
> @@ -730,9 +730,11 @@ __SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect)
> __SYSCALL(__NR_pkey_alloc, sys_pkey_alloc)
> #define __NR_pkey_free 290
> __SYSCALL(__NR_pkey_free, sys_pkey_free)
> +#define __NR_statx 291
> +__SYSCALL(__NR_statx, sys_statx)
>
> #undef __NR_syscalls
> -#define __NR_syscalls 291
> +#define __NR_syscalls 292
Out of interest, anybody know OTOH which other stat syscalls statx
supersedes (such that they could at some point be disabled by default
in asm-generic for new arches, and implemented in userspace)?
Cheers
--
James Hogan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] generic syscalls: Wire up statx syscall
@ 2017-03-15 22:26 ` James Hogan
0 siblings, 0 replies; 13+ messages in thread
From: James Hogan @ 2017-03-15 22:26 UTC (permalink / raw)
To: Stafford Horne
Cc: linux-arch, Arnd Bergmann, Catalin Marinas, Will Deacon, LKML,
David Howells, Al Viro, Thomas Gleixner, ARM Kernel List
On 13 March 2017 at 14:45, Stafford Horne <shorne@gmail.com> wrote:
> The new syscall statx is implemented as generic code, so enable it
> for architectures like openrisc which use the generic syscall table.
>
> Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Al Viro <viro@zeniv.linux.org.uk>
> Cc: David Howells <dhowells@redhat.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
> Change in v2:
> - Add a few more Cc's to get attention of the right people
> - Add a fixes tag for better audit
>
> include/uapi/asm-generic/unistd.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h
> index 9b1462e..a076cf1 100644
> --- a/include/uapi/asm-generic/unistd.h
> +++ b/include/uapi/asm-generic/unistd.h
> @@ -730,9 +730,11 @@ __SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect)
> __SYSCALL(__NR_pkey_alloc, sys_pkey_alloc)
> #define __NR_pkey_free 290
> __SYSCALL(__NR_pkey_free, sys_pkey_free)
> +#define __NR_statx 291
> +__SYSCALL(__NR_statx, sys_statx)
>
> #undef __NR_syscalls
> -#define __NR_syscalls 291
> +#define __NR_syscalls 292
Out of interest, anybody know OTOH which other stat syscalls statx
supersedes (such that they could at some point be disabled by default
in asm-generic for new arches, and implemented in userspace)?
Cheers
--
James Hogan
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2] generic syscalls: Wire up statx syscall
@ 2017-03-15 22:26 ` James Hogan
0 siblings, 0 replies; 13+ messages in thread
From: James Hogan @ 2017-03-15 22:26 UTC (permalink / raw)
To: linux-arm-kernel
On 13 March 2017 at 14:45, Stafford Horne <shorne@gmail.com> wrote:
> The new syscall statx is implemented as generic code, so enable it
> for architectures like openrisc which use the generic syscall table.
>
> Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Al Viro <viro@zeniv.linux.org.uk>
> Cc: David Howells <dhowells@redhat.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: linux-arm-kernel at lists.infradead.org
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
> Change in v2:
> - Add a few more Cc's to get attention of the right people
> - Add a fixes tag for better audit
>
> include/uapi/asm-generic/unistd.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h
> index 9b1462e..a076cf1 100644
> --- a/include/uapi/asm-generic/unistd.h
> +++ b/include/uapi/asm-generic/unistd.h
> @@ -730,9 +730,11 @@ __SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect)
> __SYSCALL(__NR_pkey_alloc, sys_pkey_alloc)
> #define __NR_pkey_free 290
> __SYSCALL(__NR_pkey_free, sys_pkey_free)
> +#define __NR_statx 291
> +__SYSCALL(__NR_statx, sys_statx)
>
> #undef __NR_syscalls
> -#define __NR_syscalls 291
> +#define __NR_syscalls 292
Out of interest, anybody know OTOH which other stat syscalls statx
supersedes (such that they could at some point be disabled by default
in asm-generic for new arches, and implemented in userspace)?
Cheers
--
James Hogan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] generic syscalls: Wire up statx syscall
2017-03-15 22:26 ` James Hogan
(?)
@ 2017-03-16 9:48 ` Arnd Bergmann
-1 siblings, 0 replies; 13+ messages in thread
From: Arnd Bergmann @ 2017-03-16 9:48 UTC (permalink / raw)
To: James Hogan
Cc: Stafford Horne, LKML, Thomas Gleixner, Al Viro, David Howells,
Catalin Marinas, Will Deacon, ARM Kernel List, linux-arch
On Wed, Mar 15, 2017 at 11:26 PM, James Hogan <james.hogan@imgtec.com> wrote:
> On 13 March 2017 at 14:45, Stafford Horne <shorne@gmail.com> wrote:
>> #undef __NR_syscalls
>> -#define __NR_syscalls 291
>> +#define __NR_syscalls 292
>
> Out of interest, anybody know OTOH which other stat syscalls statx
> supersedes (such that they could at some point be disabled by default
> in asm-generic for new arches, and implemented in userspace)?
It should replace the entire stat family {old,new,}{f,}stat{at,}{64,}, but not
the {f,}statfs{64,} family, which will eventually get another replacement.
Arnd
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] generic syscalls: Wire up statx syscall
@ 2017-03-16 9:48 ` Arnd Bergmann
0 siblings, 0 replies; 13+ messages in thread
From: Arnd Bergmann @ 2017-03-16 9:48 UTC (permalink / raw)
To: James Hogan
Cc: linux-arch, Catalin Marinas, Will Deacon, LKML, David Howells,
Al Viro, Stafford Horne, Thomas Gleixner, ARM Kernel List
On Wed, Mar 15, 2017 at 11:26 PM, James Hogan <james.hogan@imgtec.com> wrote:
> On 13 March 2017 at 14:45, Stafford Horne <shorne@gmail.com> wrote:
>> #undef __NR_syscalls
>> -#define __NR_syscalls 291
>> +#define __NR_syscalls 292
>
> Out of interest, anybody know OTOH which other stat syscalls statx
> supersedes (such that they could at some point be disabled by default
> in asm-generic for new arches, and implemented in userspace)?
It should replace the entire stat family {old,new,}{f,}stat{at,}{64,}, but not
the {f,}statfs{64,} family, which will eventually get another replacement.
Arnd
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2] generic syscalls: Wire up statx syscall
@ 2017-03-16 9:48 ` Arnd Bergmann
0 siblings, 0 replies; 13+ messages in thread
From: Arnd Bergmann @ 2017-03-16 9:48 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Mar 15, 2017 at 11:26 PM, James Hogan <james.hogan@imgtec.com> wrote:
> On 13 March 2017 at 14:45, Stafford Horne <shorne@gmail.com> wrote:
>> #undef __NR_syscalls
>> -#define __NR_syscalls 291
>> +#define __NR_syscalls 292
>
> Out of interest, anybody know OTOH which other stat syscalls statx
> supersedes (such that they could at some point be disabled by default
> in asm-generic for new arches, and implemented in userspace)?
It should replace the entire stat family {old,new,}{f,}stat{at,}{64,}, but not
the {f,}statfs{64,} family, which will eventually get another replacement.
Arnd
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] generic syscalls: Wire up statx syscall
2017-03-13 14:45 ` Stafford Horne
@ 2017-03-20 12:33 ` Will Deacon
-1 siblings, 0 replies; 13+ messages in thread
From: Will Deacon @ 2017-03-20 12:33 UTC (permalink / raw)
To: Stafford Horne
Cc: linux-kernel, Thomas Gleixner, Al Viro, David Howells,
Catalin Marinas, linux-arm-kernel, Arnd Bergmann, linux-arch
On Mon, Mar 13, 2017 at 11:45:21PM +0900, Stafford Horne wrote:
> The new syscall statx is implemented as generic code, so enable it
> for architectures like openrisc which use the generic syscall table.
>
> Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Al Viro <viro@zeniv.linux.org.uk>
> Cc: David Howells <dhowells@redhat.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: linux-arm-kernel@lists.infradead.org
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
> Change in v2:
> - Add a few more Cc's to get attention of the right people
> - Add a fixes tag for better audit
>
> include/uapi/asm-generic/unistd.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
As suggested by Arnd, I'll pick this up via arm64 for 4.11. I was on holiday
last week, so sorry for the delay.
Thanks,
Will
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2] generic syscalls: Wire up statx syscall
@ 2017-03-20 12:33 ` Will Deacon
0 siblings, 0 replies; 13+ messages in thread
From: Will Deacon @ 2017-03-20 12:33 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Mar 13, 2017 at 11:45:21PM +0900, Stafford Horne wrote:
> The new syscall statx is implemented as generic code, so enable it
> for architectures like openrisc which use the generic syscall table.
>
> Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Al Viro <viro@zeniv.linux.org.uk>
> Cc: David Howells <dhowells@redhat.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: linux-arm-kernel at lists.infradead.org
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
> Change in v2:
> - Add a few more Cc's to get attention of the right people
> - Add a fixes tag for better audit
>
> include/uapi/asm-generic/unistd.h | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
As suggested by Arnd, I'll pick this up via arm64 for 4.11. I was on holiday
last week, so sorry for the delay.
Thanks,
Will
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] generic syscalls: Wire up statx syscall
2017-03-20 12:33 ` Will Deacon
(?)
@ 2017-03-20 14:11 ` Stafford Horne
-1 siblings, 0 replies; 13+ messages in thread
From: Stafford Horne @ 2017-03-20 14:11 UTC (permalink / raw)
To: Will Deacon
Cc: linux-kernel, Thomas Gleixner, Al Viro, David Howells,
Catalin Marinas, linux-arm-kernel, Arnd Bergmann, linux-arch
On Mon, Mar 20, 2017 at 12:33:20PM +0000, Will Deacon wrote:
> On Mon, Mar 13, 2017 at 11:45:21PM +0900, Stafford Horne wrote:
> > The new syscall statx is implemented as generic code, so enable it
> > for architectures like openrisc which use the generic syscall table.
> >
> > Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> > Cc: Al Viro <viro@zeniv.linux.org.uk>
> > Cc: David Howells <dhowells@redhat.com>
> > Cc: Catalin Marinas <catalin.marinas@arm.com>
> > Cc: Will Deacon <will.deacon@arm.com>
> > Cc: linux-arm-kernel@lists.infradead.org
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > Change in v2:
> > - Add a few more Cc's to get attention of the right people
> > - Add a fixes tag for better audit
> >
> > include/uapi/asm-generic/unistd.h | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
>
> As suggested by Arnd, I'll pick this up via arm64 for 4.11. I was on holiday
> last week, so sorry for the delay.
Thanks, I talked to Masami as well, and he told me that might be the
case.
-Stafford
> Thanks,
>
> Will
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v2] generic syscalls: Wire up statx syscall
@ 2017-03-20 14:11 ` Stafford Horne
0 siblings, 0 replies; 13+ messages in thread
From: Stafford Horne @ 2017-03-20 14:11 UTC (permalink / raw)
To: Will Deacon
Cc: linux-arch, Arnd Bergmann, Catalin Marinas, linux-kernel,
David Howells, Al Viro, Thomas Gleixner, linux-arm-kernel
On Mon, Mar 20, 2017 at 12:33:20PM +0000, Will Deacon wrote:
> On Mon, Mar 13, 2017 at 11:45:21PM +0900, Stafford Horne wrote:
> > The new syscall statx is implemented as generic code, so enable it
> > for architectures like openrisc which use the generic syscall table.
> >
> > Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> > Cc: Al Viro <viro@zeniv.linux.org.uk>
> > Cc: David Howells <dhowells@redhat.com>
> > Cc: Catalin Marinas <catalin.marinas@arm.com>
> > Cc: Will Deacon <will.deacon@arm.com>
> > Cc: linux-arm-kernel@lists.infradead.org
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > Change in v2:
> > - Add a few more Cc's to get attention of the right people
> > - Add a fixes tag for better audit
> >
> > include/uapi/asm-generic/unistd.h | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
>
> As suggested by Arnd, I'll pick this up via arm64 for 4.11. I was on holiday
> last week, so sorry for the delay.
Thanks, I talked to Masami as well, and he told me that might be the
case.
-Stafford
> Thanks,
>
> Will
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v2] generic syscalls: Wire up statx syscall
@ 2017-03-20 14:11 ` Stafford Horne
0 siblings, 0 replies; 13+ messages in thread
From: Stafford Horne @ 2017-03-20 14:11 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Mar 20, 2017 at 12:33:20PM +0000, Will Deacon wrote:
> On Mon, Mar 13, 2017 at 11:45:21PM +0900, Stafford Horne wrote:
> > The new syscall statx is implemented as generic code, so enable it
> > for architectures like openrisc which use the generic syscall table.
> >
> > Fixes: a528d35e8bfcc ("statx: Add a system call to make enhanced file info available")
> > Cc: Thomas Gleixner <tglx@linutronix.de>
> > Cc: Al Viro <viro@zeniv.linux.org.uk>
> > Cc: David Howells <dhowells@redhat.com>
> > Cc: Catalin Marinas <catalin.marinas@arm.com>
> > Cc: Will Deacon <will.deacon@arm.com>
> > Cc: linux-arm-kernel at lists.infradead.org
> > Signed-off-by: Stafford Horne <shorne@gmail.com>
> > ---
> > Change in v2:
> > - Add a few more Cc's to get attention of the right people
> > - Add a fixes tag for better audit
> >
> > include/uapi/asm-generic/unistd.h | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
>
> As suggested by Arnd, I'll pick this up via arm64 for 4.11. I was on holiday
> last week, so sorry for the delay.
Thanks, I talked to Masami as well, and he told me that might be the
case.
-Stafford
> Thanks,
>
> Will
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2017-03-20 14:12 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13 14:45 [PATCH v2] generic syscalls: Wire up statx syscall Stafford Horne
2017-03-13 14:45 ` Stafford Horne
2017-03-15 22:26 ` James Hogan
2017-03-15 22:26 ` James Hogan
2017-03-15 22:26 ` James Hogan
2017-03-16 9:48 ` Arnd Bergmann
2017-03-16 9:48 ` Arnd Bergmann
2017-03-16 9:48 ` Arnd Bergmann
2017-03-20 12:33 ` Will Deacon
2017-03-20 12:33 ` Will Deacon
2017-03-20 14:11 ` Stafford Horne
2017-03-20 14:11 ` Stafford Horne
2017-03-20 14:11 ` Stafford Horne
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.