From: Filipe Brandenburger <filbranden@gmail.com>
To: Oleg Nesterov <oleg@redhat.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Roland McGrath <roland@redhat.com>
Cc: linux-kernel@vger.kernel.org,
Filipe Brandenburger <filbranden@gmail.com>
Subject: [PATCHv2 0/1] prctl: move pdeath_signal from task_struct to signal_struct
Date: Mon, 11 Jun 2012 21:28:18 -0400 [thread overview]
Message-ID: <1339464499-10270-1-git-send-email-filbranden@gmail.com> (raw)
In-Reply-To: <1338332348-3469-1-git-send-email-filbranden@gmail.com>
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
next prev parent reply other threads:[~2012-06-12 1:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-29 22:59 [PATCH 1/1] prctl: pdeath_signal sent when parent thread (instead of parent process) dies Filipe Brandenburger
2012-06-01 19:02 ` Oleg Nesterov
2012-06-01 20:00 ` Filipe Brandenburger
2012-06-04 16:15 ` Oleg Nesterov
2012-06-12 1:28 ` Filipe Brandenburger [this message]
2012-06-12 1:28 ` [PATCHv2 1/1] prctl: move pdeath_signal from task_struct to signal_struct Filipe Brandenburger
2012-06-12 16:19 ` Oleg Nesterov
2012-06-13 15:46 ` Albert Cahalan
2012-06-15 3:57 ` Filipe Brandenburger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1339464499-10270-1-git-send-email-filbranden@gmail.com \
--to=filbranden@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=roland@redhat.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®