mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brian Gerst <brgerst@gmail.com>
To: linux-kernel@vger.kernel.org, x86@kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@kernel.org>, Borislav Petkov <bp@alien8.de>,
	"H . Peter Anvin" <hpa@zytor.com>,
	Andy Lutomirski <luto@kernel.org>,
	Dominik Brodowski <linux@dominikbrodowski.net>,
	Brian Gerst <brgerst@gmail.com>
Subject: [PATCH v3 0/8] Enable pt_regs based syscalls for x86-32 native
Date: Thu, 27 Feb 2020 08:28:18 -0500	[thread overview]
Message-ID: <20200227132826.195669-1-brgerst@gmail.com> (raw)

This patch series cleans up the x86 syscall wrapper code and converts
the 32-bit native kernel over to pt_regs based syscalls.  This makes
the 32-bit syscall interface consistent with 64-bit, and a bit more
effecient by not blindly pushing all 6 potential arguments onto the
stack.

Changes since v2:
- Moved adding the [compat_]sys_ prefix to the ABI-level macros

Changes since v1:
- Split patch 1 into multiple patches
- Updated comments and patch notes to clarify changes

Brian Gerst (8):
  x86, syscalls: Refactor SYSCALL_DEFINEx macros
  x86, syscalls: Refactor SYSCALL_DEFINE0 macros
  x86, syscalls: Refactor COND_SYSCALL macros
  x86, syscalls: Refactor SYS_NI macros
  x86: Move 32-bit compat syscalls to common location
  x86-32: Enable syscall wrappers
  x86-64: Use syscall wrappers for x32_rt_sigreturn
  x86: Drop asmlinkage from syscalls

 arch/x86/Kconfig                       |   2 +-
 arch/x86/entry/common.c                |  20 +-
 arch/x86/entry/syscall_32.c            |  13 +-
 arch/x86/entry/syscall_64.c            |   9 +-
 arch/x86/entry/syscalls/syscall_32.tbl | 818 ++++++++++++-------------
 arch/x86/entry/syscalls/syscall_64.tbl |   2 +-
 arch/x86/entry/syscalls/syscalltbl.sh  |  33 +-
 arch/x86/ia32/Makefile                 |   2 +-
 arch/x86/include/asm/sighandling.h     |   5 -
 arch/x86/include/asm/syscall.h         |   8 +-
 arch/x86/include/asm/syscall_wrapper.h | 310 +++++-----
 arch/x86/include/asm/syscalls.h        |  29 -
 arch/x86/kernel/Makefile               |   2 +
 arch/x86/kernel/signal.c               |   2 +-
 arch/x86/{ia32 => kernel}/sys_ia32.c   | 130 ++--
 arch/x86/um/sys_call_table_32.c        |  10 +
 16 files changed, 691 insertions(+), 704 deletions(-)
 rename arch/x86/{ia32 => kernel}/sys_ia32.c (83%)

-- 
2.24.1


             reply	other threads:[~2020-02-27 13:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27 13:28 Brian Gerst [this message]
2020-02-27 13:28 ` [PATCH v3 1/8] x86, syscalls: Refactor SYSCALL_DEFINEx macros Brian Gerst
2020-02-28 18:33   ` Andy Lutomirski
2020-02-28 19:34     ` Brian Gerst
2020-02-27 13:28 ` [PATCH v3 2/8] x86, syscalls: Refactor SYSCALL_DEFINE0 macros Brian Gerst
2020-02-28 18:35   ` Andy Lutomirski
2020-03-05 13:00   ` [x86, syscalls] dadb1ee70c: perf-sanity-tests.Read_samples_using_the_mmap_interface.fail kernel test robot
2020-02-27 13:28 ` [PATCH v3 3/8] x86, syscalls: Refactor COND_SYSCALL macros Brian Gerst
2020-02-28 18:36   ` Andy Lutomirski
2020-02-27 13:28 ` [PATCH v3 4/8] x86, syscalls: Refactor SYS_NI macros Brian Gerst
2020-02-28 18:37   ` Andy Lutomirski
2020-02-27 13:28 ` [PATCH v3 5/8] x86: Move 32-bit compat syscalls to common location Brian Gerst
2020-02-28 18:46   ` Andy Lutomirski
2020-02-28 19:56     ` Brian Gerst
2020-02-27 13:28 ` [PATCH v3 6/8] x86-32: Enable syscall wrappers Brian Gerst
2020-02-28 19:00   ` Andy Lutomirski
2020-02-28 20:06     ` Brian Gerst
2020-02-27 13:28 ` [PATCH v3 7/8] x86-64: Use syscall wrappers for x32_rt_sigreturn Brian Gerst
2020-02-28 19:01   ` Andy Lutomirski
2020-02-27 13:28 ` [PATCH v3 8/8] x86: Drop asmlinkage from syscalls Brian Gerst
2020-02-28 19:02   ` Andy Lutomirski

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=20200227132826.195669-1-brgerst@gmail.com \
    --to=brgerst@gmail.com \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@dominikbrodowski.net \
    --cc=luto@kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome