Skip to content

x86/entry: A compat syscall bugfix and some test stuff

Andy Lutomirski lkml stable 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- The fix is actually correct this time, I hope

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3entry: Check that syscall entries and syscall exits matchinclude/linux/entry-common.h include/linux/sched.h init/init_task.c +1 more+45 -10 replies
2/3x86/entry: Fix entry/exit mismatch on failed fast 32-bit syscallsarch/x86/entry/common.c+2 -11 reply
3/3selftests/x86: Add a missing .note.GNU-stack section to thunks_32.Stools/testing/selftests/x86/thunks_32.S+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] x86/entry: A compat syscall bugfix and some test stuff

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.

Changes from v1:
- The fix is actually correct this time, I hope

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(-)
Signature · 1 line
2.29.2