All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yury Norov <ynorov@caviumnetworks.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-doc@vger.kernel.org, szabolcs.nagy@arm.com,
	Catalin Marinas <catalin.marinas@arm.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	David Howells <dhowells@redhat.com>,
	Chris Metcalf <cmetcalf@ezchip.com>,
	linux@lists.openrisc.net, linux-hexagon@vger.kernel.org,
	Philipp Tomsich <philipp.tomsich@theobroma-systems.com>,
	Joseph Myers <joseph@codesourcery.com>,
	linux-arch <linux-arch@vger.kernel.org>,
	Chen Liqin <liqin.linux@gmail.com>,
	zhouchengming1@huawei.com, Guan Xuetao <gxt@mprc.pku.edu.cn>,
	Steve Ellcey <sellcey@caviumnetworks.com>,
	linux-c6x-dev@linux-c6x.org,
	Yoshinori Sato <ysato@users.sourceforge.jp>,
	Prasun Kapoor <Prasun.Kapoor@caviumnetworks.com>,
	Andreas Schwab <schwab@suse.de>,
	Aurelien Jacquiot <a-jacquiot@ti.com>,
	Alexander Graf <agraf@suse.de>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Lennox Wu <lennox.wu@gmail.com>, Mark Salter <msalter@redhat.com>
Subject: Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
Date: Tue, 20 Jun 2017 17:54:51 +0300	[thread overview]
Message-ID: <20170620145451.y72j77rbcni27dus@yury-thinkpad> (raw)
In-Reply-To: <CAK8P3a0kSe_EcZ=5Dq=Pvtth4tTNiNaa=_=rCvaie4jzF58dNw@mail.gmail.com>

On Tue, Jun 20, 2017 at 04:20:43PM +0200, Arnd Bergmann wrote:
> On Tue, Jun 20, 2017 at 3:37 PM, Yury Norov <ynorov@caviumnetworks.com> wrote:
> > On Mon, Jun 19, 2017 at 11:10:23PM +0100, James Hogan wrote:
> >> On Mon, Jun 19, 2017 at 11:58:41PM +0200, Arnd Bergmann wrote:
> >> > On Mon, Jun 19, 2017 at 11:42 PM, James Hogan <james.hogan@imgtec.com> wrote:
> >> > > On Mon, Jun 19, 2017 at 06:49:46PM +0300, Yury Norov wrote:
> >> > > Subject: [PATCH] Deprecate stat syscalls superseded by statx
> >> > >
> >> > > Various stat system calls can now be implemented as userland wrappers
> >> > > around the new statx system call, so allow them to be removed from the
> >> > > kernel by default for new architectures / ABIs.
> >> > >
> >> > > This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing
> >> > > architecture, which enables the relevant stat system calls in the
> >> > > generic system call list (if used). It also conditionally defines the
> >> > > syscalls in fs/stat.c and struct stat / struct stat64 in
> >> > > asm-generic/stat.h.
> >> > >
> >> > > Signed-off-by: James Hogan <james.hogan@imgtec.com>
> >> > > Cc: David Howells <dhowells@redhat.com>
> >> > > Cc: Alexander Viro <viro@zeniv.linux.org.uk>
> >> > > Cc: Arnd Bergmann <arnd@arndb.de>
> >> > > Cc: linux-fsdevel@vger.kernel.org
> >> > > Cc: linux-arch@vger.kernel.org
> >> > > Cc: linux-api@vger.kernel.org
> >> > > Cc: linux-kernel@vger.kernel.org
> >> >
> >> > Good idea:
> >> >
> >> > Acked-by:  Arnd Bergmann <arnd@arndb.de>
> >> > > +/* statx deprecates the un-extended stat syscalls which use struct stat[64] */
> >> > > +#ifdef __ARCH_WANT_SYSCALL_UNXSTAT
> >> >
> >> > I'm glad you explain what 'UNXSTAT' means here, since I would not
> >> > have otherwise guessed it, but I also can't think of anything more
> >> > intuitive.
> >>
> >> Yeh, I renamed that several times while playing around with this :-).
> >>
> >> The stat syscalls remind me a bit of the Vicar of Dibley episode where
> >> the new road named "New Road" necessitates the renaming of the existing
> >> "New Road" to "Quite Old Road" and "Quite Old Road" to "Really Quite Old
> >> Road" and "Old Road" to "Very Old Road"!
> >
> > (Add Palmer Dabbelt <palmer@dabbelt.com>)
> >
> > The stat syscalls are full of hacks, and we have to pull that hacks
> > even to new architectures to deal with stat. So I'll be happy to drop
> > it in arm64/ilp32. But it means that I need some time to integrate
> > your patch and fix glibc accordingly. And it also means that we need
> > round 9 for ilp32... :(
> >
> > Arnd, once before you told that generic unistd has some duplications
> > and legacy syscalls, and one day we'll have to deal with it. Do you
> > have the list or something on it?
> 
> No, I'd have to do some research for that.
> 
> > I would also notice riscv people and welcome to the discussion.
> >
> > As there is more than 1 arch that goes to be added to linux soon,
> > maybe it's better to upstream my ans James' patches separately
> > from other ilp32 patches? Arnd?
> 
> Do you mean upstream those two patches slightly later? That's
> fine with me, I don't care much whether the old new stat is part
> of the syscall table for arm64-ilp32 or not, I'd leave that up to
> you, depending on whether you want to do the rework or not.
 
I mean that if we want to deprecate rlimit and stat syscalls for
architectures that are under development now, it's better to upstream
patches that actually deprecate it as early as possible. 

> I suppose the arm64-ilp32 could benefit from not having to support
> the old arm32 stat structure, but doing the new syscalls based on
> statx could delay the glibc port some more, as there are some open
> questions about how that would best be integrated.

OK. Let's leave things as is. But then I don't see any reason to
add unxstat patch to ilp32 series if ilp32 will not disable it.

Yury

WARNING: multiple messages have this Message-ID (diff)
From: ynorov@caviumnetworks.com (Yury Norov)
To: linux-snps-arc@lists.infradead.org
Subject: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list
Date: Tue, 20 Jun 2017 17:54:51 +0300	[thread overview]
Message-ID: <20170620145451.y72j77rbcni27dus@yury-thinkpad> (raw)
In-Reply-To: <CAK8P3a0kSe_EcZ=5Dq=Pvtth4tTNiNaa=_=rCvaie4jzF58dNw@mail.gmail.com>

On Tue, Jun 20, 2017@04:20:43PM +0200, Arnd Bergmann wrote:
> On Tue, Jun 20, 2017@3:37 PM, Yury Norov <ynorov@caviumnetworks.com> wrote:
> > On Mon, Jun 19, 2017@11:10:23PM +0100, James Hogan wrote:
> >> On Mon, Jun 19, 2017@11:58:41PM +0200, Arnd Bergmann wrote:
> >> > On Mon, Jun 19, 2017@11:42 PM, James Hogan <james.hogan@imgtec.com> wrote:
> >> > > On Mon, Jun 19, 2017@06:49:46PM +0300, Yury Norov wrote:
> >> > > Subject: [PATCH] Deprecate stat syscalls superseded by statx
> >> > >
> >> > > Various stat system calls can now be implemented as userland wrappers
> >> > > around the new statx system call, so allow them to be removed from the
> >> > > kernel by default for new architectures / ABIs.
> >> > >
> >> > > This involves adding __ARCH_WANT_SYSCALL_UNXSTAT to each existing
> >> > > architecture, which enables the relevant stat system calls in the
> >> > > generic system call list (if used). It also conditionally defines the
> >> > > syscalls in fs/stat.c and struct stat / struct stat64 in
> >> > > asm-generic/stat.h.
> >> > >
> >> > > Signed-off-by: James Hogan <james.hogan at imgtec.com>
> >> > > Cc: David Howells <dhowells at redhat.com>
> >> > > Cc: Alexander Viro <viro at zeniv.linux.org.uk>
> >> > > Cc: Arnd Bergmann <arnd at arndb.de>
> >> > > Cc: linux-fsdevel at vger.kernel.org
> >> > > Cc: linux-arch at vger.kernel.org
> >> > > Cc: linux-api at vger.kernel.org
> >> > > Cc: linux-kernel at vger.kernel.org
> >> >
> >> > Good idea:
> >> >
> >> > Acked-by:  Arnd Bergmann <arnd at arndb.de>
> >> > > +/* statx deprecates the un-extended stat syscalls which use struct stat[64] */
> >> > > +#ifdef __ARCH_WANT_SYSCALL_UNXSTAT
> >> >
> >> > I'm glad you explain what 'UNXSTAT' means here, since I would not
> >> > have otherwise guessed it, but I also can't think of anything more
> >> > intuitive.
> >>
> >> Yeh, I renamed that several times while playing around with this :-).
> >>
> >> The stat syscalls remind me a bit of the Vicar of Dibley episode where
> >> the new road named "New Road" necessitates the renaming of the existing
> >> "New Road" to "Quite Old Road" and "Quite Old Road" to "Really Quite Old
> >> Road" and "Old Road" to "Very Old Road"!
> >
> > (Add Palmer Dabbelt <palmer at dabbelt.com>)
> >
> > The stat syscalls are full of hacks, and we have to pull that hacks
> > even to new architectures to deal with stat. So I'll be happy to drop
> > it in arm64/ilp32. But it means that I need some time to integrate
> > your patch and fix glibc accordingly. And it also means that we need
> > round 9 for ilp32... :(
> >
> > Arnd, once before you told that generic unistd has some duplications
> > and legacy syscalls, and one day we'll have to deal with it. Do you
> > have the list or something on it?
> 
> No, I'd have to do some research for that.
> 
> > I would also notice riscv people and welcome to the discussion.
> >
> > As there is more than 1 arch that goes to be added to linux soon,
> > maybe it's better to upstream my ans James' patches separately
> > from other ilp32 patches? Arnd?
> 
> Do you mean upstream those two patches slightly later? That's
> fine with me, I don't care much whether the old new stat is part
> of the syscall table for arm64-ilp32 or not, I'd leave that up to
> you, depending on whether you want to do the rework or not.
 
I mean that if we want to deprecate rlimit and stat syscalls for
architectures that are under development now, it's better to upstream
patches that actually deprecate it as early as possible. 

> I suppose the arm64-ilp32 could benefit from not having to support
> the old arm32 stat structure, but doing the new syscalls based on
> statx could delay the glibc port some more, as there are some open
> questions about how that would best be integrated.

OK. Let's leave things as is. But then I don't see any reason to
add unxstat patch to ilp32 series if ilp32 will not disable it.

Yury

  reply	other threads:[~2017-06-20 14:54 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-19 15:49 [PATCH v8 00/20] ILP32 for ARM64 Yury Norov
2017-06-19 15:49 ` Yury Norov
2017-06-19 15:49 ` [PATCH 01/20] compat ABI: use non-compat openat and open_by_handle_at variants Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 02/20] 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 21:42   ` James Hogan
2017-06-19 21:42     ` James Hogan
2017-06-19 21:58     ` Arnd Bergmann
2017-06-19 21:58       ` Arnd Bergmann
2017-06-19 22:10       ` James Hogan
2017-06-19 22:10         ` James Hogan
2017-06-20 13:37         ` Yury Norov
2017-06-20 13:37           ` Yury Norov
2017-06-20 14:20           ` Arnd Bergmann
2017-06-20 14:20             ` Arnd Bergmann
2017-06-20 14:54             ` Yury Norov [this message]
2017-06-20 14:54               ` Yury Norov
2017-06-20 15:27               ` Arnd Bergmann
2017-06-20 15:27                 ` Arnd Bergmann
2017-06-20 21:14                 ` Palmer Dabbelt
2017-06-20 21:14                   ` Palmer Dabbelt
2017-06-20 14:36         ` Yury Norov
2017-06-20 14:36           ` Yury Norov
2017-06-20 14:42         ` Yury Norov
2017-06-20 14:42           ` Yury Norov
2017-06-19 15:49 ` [PATCH 04/20] arm64: ilp32: add documentation on the ILP32 ABI for ARM64 Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 06/20] arm64: ensure the kernel is compiled for LP64 Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 07/20] arm64:uapi: set __BITS_PER_LONG correctly for ILP32 and LP64 Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 08/20] thread: move thread bits accessors to separated file Yury Norov
2017-06-19 15:49   ` Yury Norov
     [not found]   ` <mvma8432jsx.fsf@suse.de>
2017-07-17 15:51     ` Yury Norov
2017-07-17 15:51       ` Yury Norov
2017-06-19 15:49 ` [PATCH 09/20] arm64: introduce is_a32_task and is_a32_thread (for AArch32 compat) Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 10/20] arm64: ilp32: add is_ilp32_compat_{task,thread} and TIF_32BIT_AARCH64 Yury Norov
2017-06-19 15:49   ` [PATCH 10/20] arm64: ilp32: add is_ilp32_compat_{task, thread} " Yury Norov
2017-06-19 15:49 ` [PATCH 11/20] arm64: introduce binfmt_elf32.c Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 12/20] arm64: ilp32: introduce binfmt_ilp32.c Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 13/20] arm64: ilp32: share aarch32 syscall handlers Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 14/20] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 15/20] arm64: signal: share lp64 signal routines to ilp32 Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:49 ` [PATCH 16/20] arm64: signal32: move ilp32 and aarch32 common code to separated file Yury Norov
2017-06-19 15:49   ` Yury Norov
2017-06-19 15:50 ` [PATCH 17/20] arm64: ilp32: introduce ilp32-specific handlers for sigframe and ucontext Yury Norov
2017-06-19 15:50   ` Yury Norov
2017-06-19 15:50 ` [PATCH 18/20] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32 Yury Norov
2017-06-19 15:50   ` Yury Norov
2017-06-19 15:50 ` [PATCH 19/20] arm64:ilp32: add vdso-ilp32 and use for signal return Yury Norov
2017-06-19 15:50   ` Yury Norov
2017-06-19 15:50 ` [PATCH 20/20] arm64:ilp32: add ARM64_ILP32 to Kconfig Yury Norov
2017-06-19 15:50   ` Yury Norov
2017-06-29 16:10 ` [PATCH v8 00/20] ILP32 for ARM64 Catalin Marinas
2017-06-29 16:10   ` Catalin Marinas
2017-07-06 21:59   ` Yury Norov
2017-07-06 21:59     ` Yury Norov
2017-07-07 17:11     ` Catalin Marinas
2017-07-07 17:11       ` Catalin Marinas
2017-07-24 11:26       ` Yury Norov
2017-07-24 11:26         ` Yury Norov
2017-07-27 17:12         ` Catalin Marinas
2017-07-27 17:12           ` Catalin Marinas
2017-07-31 12:37           ` Yury Norov
2017-07-31 12:37             ` Yury Norov
2017-08-08 13:34         ` Catalin Marinas
2017-08-08 13:34           ` Catalin Marinas
2017-08-21 10:21           ` Yury Norov
2017-08-21 10:21             ` Yury Norov
2017-09-04 11:54             ` Yury Norov
2017-09-04 11:54               ` Yury Norov
2017-09-18 10:06               ` Catalin Marinas
2017-09-18 10:06                 ` Catalin Marinas
2017-09-15 11:29 ` Yury Norov
2017-09-15 11:29   ` Yury Norov
2017-11-16 11:11 ` Yury Norov
2017-11-16 11:11   ` Yury Norov
2017-12-11 10:32   ` Catalin Marinas
2017-12-11 10:32     ` Catalin Marinas
2017-12-11 13:13     ` Yury Norov
2017-12-11 13:13       ` Yury Norov
2018-02-02  8:16 ` Yury Norov
2018-02-02  8:16   ` Yury Norov
2018-02-02  8:58   ` Bamvor Zhang
2018-02-02  8:58     ` Bamvor Zhang
  -- strict thread matches above, loose matches on Subject: below --
2017-06-04 11:59 Yury Norov
2017-06-04 11:59 ` [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Yury Norov
2017-06-04 11:59   ` Yury Norov
2017-06-04 11:59   ` Yury Norov
2017-06-05 14:44   ` James Hogan
2017-06-05 14:44     ` James Hogan
2017-06-05 14:44     ` James Hogan
2017-06-05 14:44     ` James Hogan
2017-06-07 18:48     ` Yury Norov
2017-06-07 18:48       ` Yury Norov
2017-06-07 18:48       ` Yury Norov
2017-03-01 19:19 [PATCH v7 resend 00/20] ILP32 for ARM64 Yury Norov
2017-03-01 19:19 ` [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Yury Norov
2017-03-01 19:19   ` Yury Norov
2017-03-01 19:19   ` Yury Norov
2017-03-10 18:09   ` Will Deacon
2017-03-10 18:09     ` Will Deacon
2017-03-10 18:09     ` Will Deacon
2017-01-09 11:29 [PATCH v7 00/20] ILP32 for ARM64 Yury Norov
2017-01-09 11:29 ` [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Yury Norov
2017-01-09 11:29   ` Yury Norov
2017-01-09 11:29   ` Yury Norov
2017-01-09 11:29   ` Yury Norov
2017-01-13  2:51   ` Xuetao Guan
2017-01-13  2:51     ` Xuetao Guan
2017-01-13  2:51     ` Xuetao Guan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170620145451.y72j77rbcni27dus@yury-thinkpad \
    --to=ynorov@caviumnetworks.com \
    --cc=Prasun.Kapoor@caviumnetworks.com \
    --cc=a-jacquiot@ti.com \
    --cc=agraf@suse.de \
    --cc=arnd@arndb.de \
    --cc=catalin.marinas@arm.com \
    --cc=cmetcalf@ezchip.com \
    --cc=dhowells@redhat.com \
    --cc=geert@linux-m68k.org \
    --cc=gxt@mprc.pku.edu.cn \
    --cc=heiko.carstens@de.ibm.com \
    --cc=joseph@codesourcery.com \
    --cc=lennox.wu@gmail.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-c6x-dev@linux-c6x.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hexagon@vger.kernel.org \
    --cc=linux@lists.openrisc.net \
    --cc=liqin.linux@gmail.com \
    --cc=msalter@redhat.com \
    --cc=philipp.tomsich@theobroma-systems.com \
    --cc=schwab@suse.de \
    --cc=sellcey@caviumnetworks.com \
    --cc=szabolcs.nagy@arm.com \
    --cc=ysato@users.sourceforge.jp \
    --cc=zhouchengming1@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.