[PATCH 0/2] exit: Introduce __WCHILDSIGINFO for waitid

Kees Cook posted 2 patches 4 years, 4 months ago
include/linux/sched.h                         |   1 +
include/uapi/linux/wait.h                     |   1 +
kernel/exit.c                                 |  23 +++-
kernel/signal.c                               |   4 +
tools/testing/selftests/seccomp/seccomp_bpf.c | 130 ++++++++++++++++++
5 files changed, 155 insertions(+), 4 deletions(-)
[PATCH 0/2] exit: Introduce __WCHILDSIGINFO for waitid
Posted by Kees Cook 4 years, 4 months ago
Hi,

Okay, here's a working version of this. Is adding 48 bytes into task
struct worth it? Can this be improved, and is the non-signal-exit logic
for __WCHILDSIGINFO sane?

Other thoughts?

-Kees

Kees Cook (2):
  exit: Introduce __WCHILDSIGINFO for waitid
  selftests/seccomp: Check for waitid() behavior

 include/linux/sched.h                         |   1 +
 include/uapi/linux/wait.h                     |   1 +
 kernel/exit.c                                 |  23 +++-
 kernel/signal.c                               |   4 +
 tools/testing/selftests/seccomp/seccomp_bpf.c | 130 ++++++++++++++++++
 5 files changed, 155 insertions(+), 4 deletions(-)

-- 
2.30.2