From: Andy Lutomirski <luto@kernel.org>
To: x86@kernel.org
Cc: LKML <linux-kernel@vger.kernel.org>, Andy Lutomirski <luto@kernel.org>
Subject: [PATCH 0/3] x86/entry: A compat syscall bugfix and some test stuff
Date: Mon, 22 Feb 2021 21:50:26 -0800 [thread overview]
Message-ID: <cover.1614059335.git.luto@kernel.org> (raw)
The compat syscall argument fixup error path is wrong. Fix it.
This also adds some sanity checks to the kernel that catch the bug
when running selftests.
Andy Lutomirski (3):
entry: Check that syscall entries and syscall exits match
x86/entry: Fix entry/exit mismatch on failed fast 32-bit syscalls
selftests/x86: Add a missing .note.GNU-stack section to thunks_32.S
arch/x86/entry/common.c | 3 ++-
include/linux/entry-common.h | 11 +++++++++++
include/linux/sched.h | 1 +
init/init_task.c | 9 +++++++++
kernel/entry/common.c | 25 ++++++++++++++++++++++++-
tools/testing/selftests/x86/thunks_32.S | 2 ++
6 files changed, 49 insertions(+), 2 deletions(-)
--
2.29.2
next reply other threads:[~2021-02-23 5:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-23 5:50 Andy Lutomirski [this message]
2021-02-23 5:50 ` [PATCH 1/3] entry: Check that syscall entries and syscall exits match Andy Lutomirski
2021-02-23 5:50 ` [PATCH 2/3] x86/entry: Fix entry/exit mismatch on failed fast 32-bit syscalls Andy Lutomirski
2021-02-23 10:24 ` Thomas Gleixner
2021-02-23 11:28 ` Peter Zijlstra
2021-02-23 15:35 ` Andy Lutomirski
2021-02-23 5:50 ` [PATCH 3/3] selftests/x86: Add a missing .note.GNU-stack section to thunks_32.S 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=cover.1614059335.git.luto@kernel.org \
--to=luto@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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 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.