Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1985243ybb; Thu, 9 Apr 2020 12:44:24 -0700 (PDT) X-Google-Smtp-Source: APiQypLggB7InC2AAhR7lfcvQm4rQOz5eRg8HdF14sobgsgNQ1HemEOscPmzu1jdlet35hCogEj5 X-Received: by 2002:ac8:6893:: with SMTP id m19mr1119405qtq.354.1586461464783; Thu, 09 Apr 2020 12:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586461464; cv=none; d=google.com; s=arc-20160816; b=NFZfnVYR4qzj/Fsm37HIus7mjTZGKoJyIbdcXZ0bb5qO8izo0QJ2yeqmo72fll3KRO +0RbHRISFKlSD7K25cxiCzpf66wqpFS6nG5KHE9r4Y3Lvhtl/BibNHzgmCZUN7zERl2D 7bJLH6A0TN77THKcYHjznFPfkCCVgaXVRi5bheE075+jp6RLNta8ZYc8V3V/hJsi8NLs ebHO6mIJQp+XOveW1ADPrXTlcIBnTdvBtu1bfviyWqNyFJn3owSVA/a6SshQn1UVIdRy fip54aASanXZGGhNhMFraqjE6sToStd79HWZ2Wbb5dqZ9EFaA5tRFCCsJexvYt12Y3oP tV5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CAhys4LZKw/fGvqXf+XzDbKQt9prwZrHtJKIODHUk6s=; b=Tl53e9L6sw50iRADmSMRAW5GVzViy9JVZGVvfoYpDvLZzdT2VW6khSHSWafhNkmGAw HX60OmyLZQ5Eq6qn7v9Qm0hbtKa9/ajZaKzx5ZdorStwnc/JhZZkbM5il4bGtD2slmfR 4iZfGTmQ/D0ueEVpkVjU0cKs/Ge5boQnxIW1L0l5m+/MJcEfLfyjiviOJDAzOcWpGX5+ sdE/dN4Xl2/9uD6L3ikMqjfUwz+xnn7no++NmFz7Ld2mGCf6pe7AKZ7v8JJPNVJdmPKq EIR1yHkLD/DnsjByLbok70q8WX6skk6rQKWqeyWI2tVJ4j5lHKOYwahqheHzSO5t6b+O pfxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IVm9Qr4x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k62si6515188qke.20.2020.04.09.12.44.10; Thu, 09 Apr 2020 12:44:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IVm9Qr4x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726834AbgDITmW (ORCPT + 99 others); Thu, 9 Apr 2020 15:42:22 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:34913 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbgDITmW (ORCPT ); Thu, 9 Apr 2020 15:42:22 -0400 Received: by mail-lj1-f196.google.com with SMTP id k21so1004206ljh.2 for ; Thu, 09 Apr 2020 12:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CAhys4LZKw/fGvqXf+XzDbKQt9prwZrHtJKIODHUk6s=; b=IVm9Qr4x8CQxDDXrmryn2CokCeA9fQTy74TPtZ+nvLq2SMgFUb4GeZjE5/UxlR+KQ3 0TMI/YLAbzibepwVX2Bs/s8h6TJY0tRKtOfNnoXzCY64HGFrE2RpuMB2hx6SjBfZTv68 LWL2CPxJFCkmr6MgfcI+JaYyoATRThjnuau0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CAhys4LZKw/fGvqXf+XzDbKQt9prwZrHtJKIODHUk6s=; b=p366cRDE7+MynRl7VX9SiSW4BTIf95K8MSV682U5wLpQNaSG21NCxgyxIJB9S+FEn7 f1QEatJ3XJZWQ3eIYdPneSSoLfa1mrP2DOKLiagWinCxTRWZMhzEH4baVwjRJWY6bSpe csfMbatn+424ye4/Vot73/fZQvKRI2efZ9Q7ivEK8a5lt+C2lOixRSgoVER8Z31ahi3J t7ywkSNqQX5ItleWR547KghhNaLUIzZ5IQghfGRuMWNBBYYWQKXyxZSU2Z9ZkbA/vgub lY2j0bIw5t55nIAfJ0g1VIUL2eNjwhHwhyb4nbGDy+gZQ72KgOtrB+kcpqMp950Vn9c0 6XeA== X-Gm-Message-State: AGi0PuYzJf8t2aDxY2FmutdaFvdZhyXJbk9rlCl2dSJzPpYmiz+2ZtlM UyzusJuiNIIyRQnqiULZphqITOpI7dM= X-Received: by 2002:a2e:9648:: with SMTP id z8mr872500ljh.169.1586461339283; Thu, 09 Apr 2020 12:42:19 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id j13sm22035lfb.19.2020.04.09.12.42.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 12:42:17 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id b1so1006376ljp.3 for ; Thu, 09 Apr 2020 12:42:17 -0700 (PDT) X-Received: by 2002:a2e:a58e:: with SMTP id m14mr860929ljp.204.1586461337061; Thu, 09 Apr 2020 12:42:17 -0700 (PDT) MIME-Version: 1.0 References: <87blobnq02.fsf@x220.int.ebiederm.org> <87lfnda3w3.fsf@x220.int.ebiederm.org> <87blo45keg.fsf@x220.int.ebiederm.org> <87v9maxb5q.fsf@x220.int.ebiederm.org> <87y2r4so3i.fsf@x220.int.ebiederm.org> <87wo6or3pg.fsf@x220.int.ebiederm.org> In-Reply-To: From: Linus Torvalds Date: Thu, 9 Apr 2020 12:42:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Please pull proc and exec work for 5.7-rc1 To: Bernd Edlinger Cc: "Eric W. Biederman" , Waiman Long , Ingo Molnar , Will Deacon , Linux Kernel Mailing List , Alexey Gladkov , Oleg Nesterov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 9, 2020 at 11:36 AM Linus Torvalds wrote: > > I guess I need to look at what that test is actually testing, because > it wasn't what I thought. Ahh. The problem is that zap_other_threads() counts all threads. But it doesn't bother notifying already dead threads, even if it counts them. And then it waits for the threads to go away, but didn't do anything to make that dead thread go away. And the test case has an already dead thread that is just waiting to be reaped by the same person who is now waiting for it to go away. So it just stays around. Honestly, I'm not entirely sure this is worth worrying about, since it's all killable anyway and only happens if you do something stupid. I mean, you can get two threads to wait for each other more easily other ways. Or maybe we just shouldn't count already dead threads? Yeah, they'd share that current signal struct, but they're dead and can't do anything about it, they can only be reaped. But that would mean that we should also move the signal->notify_count update to when we mark the EXIT_ZOMBIE or EXIT_DEAD in exit_state. Linus