From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753842Ab3AUTsL (ORCPT ); Mon, 21 Jan 2013 14:48:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52812 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751781Ab3AUTsJ (ORCPT ); Mon, 21 Jan 2013 14:48:09 -0500 Date: Mon, 21 Jan 2013 20:47:23 +0100 From: Oleg Nesterov To: Linus Torvalds Cc: Dan Carpenter , Kernel Security , Michael Davidson , Suleiman Souhlal , Julien Tinnes , Aaron Durbin , Andrew Morton , Linux Kernel Mailing List , Tejun Heo , Roland McGrath , Tony Luck , Fenghua Yu , Greg Kroah-Hartman Subject: [PATCH v3 0/3] ptrace: ensure arch_ptrace/ptrace_request can never race with SIGKILL Message-ID: <20130121194723.GA18775@redhat.com> References: <20130118172854.GA29753@redhat.com> <20130118175224.GA520@redhat.com> <20130118185559.GA3773@redhat.com> <20130120192448.GA6771@redhat.com> <20130120192527.GC6771@redhat.com> <20130121172151.GA4691@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On 01/21, Linus Torvalds wrote: > > I guess that works then. It's a bit sad, but at least I see why you did it. OK, please see v3 rebased on top of "unexport ptrace_check_attach()" you already applied. I tried to update the comment in ptrace_check_attach(), and changed unfreeze() to simply do WARN_ON() without if/return. There is also the cosmetic change in 1/3, - ptrace_signal_wake_up(child, task_is_traced(child)); + ptrace_signal_wake_up(child, true); in __ptrace_unlink(). Oleg.