All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] x86/entry: A compat syscall bugfix and some test stuff
@ 2021-02-23  5:50 Andy Lutomirski
  2021-02-23  5:50 ` [PATCH 1/3] entry: Check that syscall entries and syscall exits match Andy Lutomirski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andy Lutomirski @ 2021-02-23  5:50 UTC (permalink / raw)
  To: x86; +Cc: LKML, Andy Lutomirski

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-23 15:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23  5:50 [PATCH 0/3] x86/entry: A compat syscall bugfix and some test stuff Andy Lutomirski
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

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.