Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756114AbZJDCXl (ORCPT ); Sat, 3 Oct 2009 22:23:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752706AbZJDCXl (ORCPT ); Sat, 3 Oct 2009 22:23:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29603 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752439AbZJDCXk (ORCPT ); Sat, 3 Oct 2009 22:23:40 -0400 Date: Sun, 4 Oct 2009 04:18:44 +0200 From: Oleg Nesterov To: Andrew Morton , Sukadev Bhattiprolu Cc: Daniel Lezcano , Sukadev Bhattiprolu , Linux Containers , roland@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] Was: pidns : PR_SET_PDEATHSIG + SIGKILL regression Message-ID: <20091004021844.GA21006@redhat.com> References: <4AC608BE.9020805@fr.ibm.com> <20091003171029.GA30442@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091003171029.GA30442@us.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1093 Lines: 37 On 10/03, Sukadev Bhattiprolu wrote: > > static void reparent_thread(struct task_struct *father, struct task_struct *p, > struct list_head *dead) > { > - if (p->pdeath_signal) > - group_send_sig_info(p->pdeath_signal, SEND_SIG_NOINFO, p); > + if (p->pdeath_signal) { > + struct siginfo info; > + > + info.si_code = SI_USER; > + info.si_signo = p->pdeath_signal; > + info.si_errno = 0; > + > + rcu_read_lock(); > + info.si_pid = task_tgid_nr_ns(father, task_active_pid_ns(p)); > + info.si_uid = __task_cred(father)->uid; > + rcu_read_unlock(); > + > + group_send_sig_info(p->pdeath_signal, &info, p); > + } I think the patch is correct. But afaics we should clarify the "from user" semantics and fix send_signal() instead. What do you think about this simple series? (the last 2 patches are pure cosmetic and off-topic). Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/