From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58B4FC2BA19 for ; Sat, 11 Apr 2020 18:21:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F1D32075E for ; Sat, 11 Apr 2020 18:21:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KiutHU0k" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726663AbgDKSVL (ORCPT ); Sat, 11 Apr 2020 14:21:11 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:23796 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726129AbgDKSVL (ORCPT ); Sat, 11 Apr 2020 14:21:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586629270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CV+A9KFgGyBleHpbccnyLWR3WWFAZszcweg/siBgpWI=; b=KiutHU0kr3MiGHXbMdI1XA5Z6KUTR/TBjHBpjw2LvwPr0dUxROLR/65GMtt/9ikdOzJMU+ rSi4ad1juLxOxBe8bsVC33+f8U5oZa8YfxkFfllZ/e88xGbD3b2p5TVVr7sUVfhH/KmR87 3VGppwd6glGPce0rr+l5gpWd2JSpDpg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-41-M3PtyYiiMo-H7Mwh--TO9Q-1; Sat, 11 Apr 2020 14:21:04 -0400 X-MC-Unique: M3PtyYiiMo-H7Mwh--TO9Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AB278107ACC4; Sat, 11 Apr 2020 18:20:49 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.53]) by smtp.corp.redhat.com (Postfix) with SMTP id F0F1D5D9C9; Sat, 11 Apr 2020 18:20:44 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sat, 11 Apr 2020 20:20:49 +0200 (CEST) Date: Sat, 11 Apr 2020 20:20:43 +0200 From: Oleg Nesterov To: Linus Torvalds Cc: "Eric W. Biederman" , Bernd Edlinger , Waiman Long , Ingo Molnar , Will Deacon , Linux Kernel Mailing List , Alexey Gladkov Subject: Re: [GIT PULL] Please pull proc and exec work for 5.7-rc1 Message-ID: <20200411182043.GA3136@redhat.com> References: <87imi8nzlw.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric, Linus, et al, by various reasons I have not been reading emails for last weeks, I'll try to read this thread tomorrow, currently I am a bit lost. On 04/09, Linus Torvalds wrote: > > (1) have execve() not wait for dead threads while holding the cred > mutex This is what I tried to do 3 years ago, see [PATCH 1/2] exec: don't wait for zombie threads with cred_guard_mutex held https://lore.kernel.org/lkml/20170213141516.GA30233@redhat.com/ yes, yes, yes, the patch is not pretty. >From your another email: > /* if the parent is going through a execve(), it's not listening */ > if (parent->signal->group_exit_task) return false; Heh ;) see [PATCH 2/2] ptrace: ensure PTRACE_EVENT_EXIT won't stop if the tracee is killed by exec https://lore.kernel.org/lkml/20170213141519.GA30239@redhat.com/ from the same thread. But this change is more problematic. Oleg.