Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758994AbbFBStt (ORCPT ); Tue, 2 Jun 2015 14:49:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40364 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754080AbbFBStl (ORCPT ); Tue, 2 Jun 2015 14:49:41 -0400 Date: Tue, 2 Jun 2015 20:48:48 +0200 From: Oleg Nesterov To: Tycho Andersen Cc: Andrey Wagin , LKML , linux-api@vger.kernel.org, Kees Cook , Andy Lutomirski , Will Drewry , Roland McGrath , Pavel Emelyanov , "Serge E. Hallyn" Subject: Re: [PATCH] seccomp: add ptrace commands for suspend/resume Message-ID: <20150602184848.GA24907@redhat.com> References: <1433186918-9626-1-git-send-email-tycho.andersen@canonical.com> <20150602130506.GA1823@hopstrocity> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150602130506.GA1823@hopstrocity> 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: 773 Lines: 22 On 06/02, Tycho Andersen wrote: > > > Do we need to re-enable seccomp if a tracer detaches unexpectedly. > > CRIU can be killed and we should try to not affect the task state even > > in this case. > > Yes, I think Pavel's suggestion on the CRIU list of simply > automatically re-enabling seccomp on ptrace detach But note that you can't enable tsc if the tracer dies, in this case the tracee can be running. Otherwise, if we use PTRACE_O_ instead, it goes away automatically if the tracer dies or does PTRACE_DETACH. 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/