[PATCHv2 0/1] prctl: move pdeath_signal from task_struct to signal_struct

From: Filipe Brandenburger
Date: Mon Jun 11 2012 - 21:28:48 EST


Hello,

This is a second version of the patch that I previously submitted under
title "prctl: pdeath_signal sent when parent thread (instead of parent
process) dies". As per the discussion on the original patch, I reworked
it to move pdeath_signal to signal_struct and make it truly per-process.

On Bugzilla #43300, there is some extra discussion and three test cases
including a transcript of their output running on the unpatched kernel
and on the patched kernel. The three test cases check three corner cases
where the current per-task pdeath_signal shows some behavior that is
counter intuitive and goes against what is in the documentation (the
prctl(2) manpage states that PR_SET_PDEATHSIG sets "the parent process
death signal of the calling process" which makes it clear that it is
supposed to be per-process.)

A link to the Bugzilla report:
https://bugzilla.kernel.org/show_bug.cgi?id=43300

Thanks,
Filipe


Filipe Brandenburger (1):
prctl: move pdeath_signal from task_struct to signal_struct

fs/exec.c | 2 +-
include/linux/sched.h | 7 ++++++-
kernel/cred.c | 2 +-
kernel/exit.c | 8 +++++---
kernel/fork.c | 1 -
kernel/sys.c | 5 +++--
security/apparmor/domain.c | 2 +-
security/selinux/hooks.c | 2 +-
security/smack/smack_lsm.c | 2 +-
9 files changed, 19 insertions(+), 12 deletions(-)

--
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/