Skip to content

RFC Fix restart_block syscall restarting for 3.5

Will Deacon linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Revert "arm: remove unused restart trampoline"arch/arm/kernel/signal.c arch/arm/kernel/signal.h arch/arm/kernel/traps.c+17 -00 replies
2/8Revert "arm: new way of handling ERESTART_RESTARTBLOCK"arch/arm/include/asm/thread_info.h arch/arm/kernel/ptrace.c arch/arm/kernel/signal.c+28 -130 replies
3/8audit: arm: only allow syscall auditing for pure EABI userspaceinit/Kconfig+1 -10 replies
4/8ARM: entry: don't bother with syscall tracing on ret_from_fork patharch/arm/kernel/entry-common.S+0 -60 replies
5/8ARM: audit: move syscall auditing until after ptrace SIGTRAP handlingarch/arm/kernel/ptrace.c+9 -80 replies
6/8ARM: ptrace: provide separate functions for tracing syscall {entry, exit}arch/arm/kernel/entry-common.S arch/arm/kernel/ptrace.c+31 -200 replies
7/8ARM: signal: perform restart_block system call restarting in the kernelarch/arm/include/asm/ptrace.h arch/arm/include/asm/thread_info.h arch/arm/kernel/calls.S +2 more+57 -450 replies
8/8Revert "Revert "arm: remove unused restart trampoline""arch/arm/kernel/signal.c arch/arm/kernel/signal.h arch/arm/kernel/traps.c+0 -170 replies

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchCatalin MarinasAl Viro
1/8A-b
2/8A-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b Heavily-inspired-by
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/8] Fix restart_block syscall restarting for 3.5

Hello,

This RFC series attempts to address the syscall restarting problems introduced during the merge window and described here:

http://lists.infradead.org/pipermail/linux-arm-kernel/2012-June/104733.html

I reckon the first two reverts should go in for 3.5 unless anybody has a better solution. The rest of the code is an RFC since, as Russell has said before, the code is `rather yucky'.

In my effort to avoid breaking strace, I ended up merging in my audit fixes with this series since keeping the patch sets separate was becoming a bit of a nightmare given the amount of common code they are modifying.

Given the mysterious ability of this code to wrap my brain around my face and beat it with a hammer, I would really appreciate some feedback!

Cheers,

Will

Will Deacon (8):
Revert "arm: remove unused restart trampoline"
Revert "arm: new way of handling ERESTART_RESTARTBLOCK"
audit: arm: only allow syscall auditing for pure EABI userspace
ARM: entry: don't bother with syscall tracing on ret_from_fork path
ARM: audit: move syscall auditing until after ptrace SIGTRAP handling
ARM: ptrace: provide separate functions for tracing syscall

    {entry,exit}

ARM: signal: perform restart_block system call restarting in the
kernel
Revert "Revert "arm: remove unused restart trampoline""

 arch/arm/include/asm/ptrace.h      |    3 ++
 arch/arm/include/asm/thread_info.h |   11 +++---
 arch/arm/kernel/calls.S            |    2 +-
 arch/arm/kernel/entry-common.S     |   25 ++++++--------
 arch/arm/kernel/ptrace.c           |   37 +++++++++++++-------
 arch/arm/kernel/signal.c           |   63 ++++++++++++++++++++++++------------
 init/Kconfig                       |    2 +-
 7 files changed, 88 insertions(+), 55 deletions(-)
Signature · 1 line
1.7.4.1