Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1222618

Re: [PATCH] x86: Wire up 32-bit direct socket calls

From Heiko Carstens <heiko.carstens@de.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] x86: Wire up 32-bit direct socket calls
Date 2015-09-11 10:30 +0200
Message-ID <q7rSy-4w9-25@gated-at.bofh.it> (permalink)
References <pMgS6-5kz-9@gated-at.bofh.it> <q4cQ2-1iy-25@gated-at.bofh.it> <q4mFH-773-15@gated-at.bofh.it> <q64bE-60R-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Sep 07, 2015 at 02:53:12PM +0200, Arnd Bergmann wrote:
> On Wednesday 02 September 2015 13:16:19 H. Peter Anvin wrote:
> > On 09/02/2015 02:48 AM, Geert Uytterhoeven wrote:
> > > 
> > > Should all other architectures follow suit?
> > > Or should we follow the s390 approach:
> > > 
> > 
> > It is up to the maintainer(s), largely dependent on how likely you are
> > going to want to support this in your libc, but in general, socketcall
> > is an abomination which there is no reason not to bypass.
> > 
> > So follow suit unless you have a strong reason not to.
> 
> +1
> 
> In my y2038 syscall series, I'm adding a new recvmmsg64 call, and
> we may decide to add new setsockopt/getsockopt variants as well.
> This is probably not the last change to socketcall, and it would
> be made much easier if all architectures had separate calls here.
> 
> It seems that there are very few architectures that don't already have
> the separate calls:
> 
> $ git grep -l __NR_socketcall arch/*/include/uapi  | xargs git grep -L recvmsg 
> arch/cris/include/uapi/asm/unistd.h
> arch/frv/include/uapi/asm/unistd.h
> arch/m32r/include/uapi/asm/unistd.h
> arch/m68k/include/uapi/asm/unistd.h
> arch/mn10300/include/uapi/asm/unistd.h
> arch/s390/include/uapi/asm/unistd.h
> 
> These are of course all examples of architectures that originally followed
> the i386 syscall scheme closely rather than trying to leave out obsolete
> calls.

FWIW, the s390 approach (ignoring the "new" system calls) is only temporarily.
I'll enable the seperate calls later when I have time to test everything,
especially the glibc stuff.

The same is true for the ipc system call. (any reason why the seperate system
calls haven't been enabled on x86 now as well?)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] x86: Wire up 32-bit direct socket calls Arnd Bergmann <arnd@arndb.de> - 2015-09-07 15:00 +0200
  Re: [PATCH] x86: Wire up 32-bit direct socket calls Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-09-11 10:30 +0200
    Re: [PATCH] x86: Wire up 32-bit direct socket calls Arnd Bergmann <arnd@arndb.de> - 2015-09-11 10:50 +0200
      Re: [PATCH] x86: Wire up 32-bit direct socket calls Geert Uytterhoeven <geert@linux-m68k.org> - 2015-09-11 12:00 +0200
        Re: [PATCH] x86: Wire up 32-bit direct socket calls Arnd Bergmann <arnd@arndb.de> - 2015-09-11 12:20 +0200
          Re: [PATCH] x86: Wire up 32-bit direct socket calls Andy Lutomirski <luto@amacapital.net> - 2015-09-11 18:40 +0200
            Re: [PATCH] x86: Wire up 32-bit direct socket calls Ingo Molnar <mingo@kernel.org> - 2015-09-14 15:40 +0200
              Re: [PATCH] x86: Wire up 32-bit direct socket calls "H. Peter Anvin" <hpa@zytor.com> - 2015-09-15 23:00 +0200

csiph-web