Improving siginfo_layout and fixing uml's relay_signal
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | signal/signalfd: Remove __put_user from signalfd_copyinfofs/ | +29 | 0 replies | |
| 2/5 | signal/signalfd: Add support for SIGSYSfs/ include/ | +10 | 0 replies | |
| 3/5 | signal: Remove unncessary #ifdef SEGV_PKUERR in 32bit compat codekernel/ | +0 | 0 replies | |
| 4/5 | signal: Extend siginfo_layout with SIL_FAULT_{MCEERR|BNDERR|PKUERR}fs/ include/ kernel/ | +75 | 0 replies | |
| 5/5 | signal/um: More carefully relay signals in relay_signal.arch/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [REVIEW][PATCH 0/5] Improving siginfo_layout and fixing uml's relay_signal
This patchset is a respin of my latest patch to relay_signal for uml.
As I understand relay_signal it very carefully scrubs the signal information it gets from the host kernel before passing it on. Basically making certain it recognizes what it is dealing with.
This patchset updates siginfo_layout so that relay_signal and arm64's force_signal_inject can reliably use it to verify the kind of signal being processed, by recognizing the specializations of SIL_FAULT as separate cases.
To make the siginfo_layout changes clean. signalfd is first brought into the modern world of using a single copy_to_user, no default case statement (so gcc will flag missing cases), and handling SIGSYS for seccomp.
The net is a simpler relay_signal is also more careful about which signals it relays.
Eric
The changes are also available at:
git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git siginfo-review3
Eric W. Biederman (5):
signal/signalfd: Remove __put_user from signalfd_copyinfo signal/signalfd: Add support for SIGSYS
signal: Remove unncessary #ifdef SEGV_PKUERR in 32bit compat code
signal: Extend siginfo_layout with SIL_FAULT_{MCEERR|BNDERR|PKUERR} signal/um: More carefully relay signals in relay_signal.
arch/um/kernel/trap.c | 38 ++++++++------------ fs/signalfd.c | 84 +++++++++++++++++++++++++------------------ include/linux/signal.h | 3 ++ include/uapi/linux/signalfd.h | 6 +++- kernel/signal.c | 82 +++++++++++++++++++++++++++--------------- 5 files changed, 125 insertions(+), 88 deletions(-)