Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp11338pja; Thu, 9 Apr 2020 13:41:11 -0700 (PDT) X-Google-Smtp-Source: APiQypLqAAnakCMjpBWKeHlY6yddkFhAUTUXo2cT8JD/9iJQ43yA7z9t2pOlRLdwZ9tek5noI+u8 X-Received: by 2002:a37:a509:: with SMTP id o9mr783288qke.460.1586464870831; Thu, 09 Apr 2020 13:41:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586464870; cv=pass; d=google.com; s=arc-20160816; b=WfOdjPMWZaH1CoKJwEmluwIPE3YI3W3n2N453eQGxLOJdRNx+/6/pseoBLqycjuStf Wvw6r6Zx3OnLQY5eFasV5q1DWzZvmvpVABV6CyTLINHSUc58XthitO0BWkNkdLHiWKE8 z/3AFuYkSKIjwhrZWfv4NBEV4sAVNNSrvUTmuSj1e1MxZtxMgDXIhEHyk/AaKTmearYc 6+ig9Z9t+0F0FFPJUyr74x+O7hZ+XgOYbMeDFG1N6fQPKGbxH/u55Qtpr3d8Dd6YJShI gfPkrpYe6hxpyS/DwIoB751YeBpXVHD7Jq37XcdXHV6Sjy+kplpReI5f03SlMp2Axltt d5fQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject; bh=RjgOdk/XLN4/zWKrIP5EI/CbXAwhJ8jakWruGG3/YHo=; b=HyoWB9mik6jk5eLQ6PqljHSUeidK2IADVAFbaV9vF1arZoPn5cO86EhepgAIdK5PWB HfGMlvYx3qmQr0qXCFKVazoWnazM5yrTkZMiikempFEc5h4qXZZU8ql05SmikbnINequ KLxeu4XuXkWrY86c6drGBCWVv9EdBDl0FMaSpuluuNIZbNAEJvUyKcxmKzhj/YvwaCIg 0nzXoW9HNhrq45/egpuqF4y1Y+BODrCi6EiR5N9URoRxiPVyTvyV5ATOOzL57TyifrGM a7tr1IEX2Mex3TM9EtTj/DKD8RwrBUswN3oVWZKfqKwnl1nCj15mOwqKVrLL2SS07I5Z 5zcQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=hotmail.de dkim=pass dkdomain=hotmail.de dmarc=pass fromdomain=hotmail.de); 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 z1si6511509qtb.56.2020.04.09.13.40.53; Thu, 09 Apr 2020 13:41:10 -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; arc=pass (i=1 spf=pass spfdomain=hotmail.de dkim=pass dkdomain=hotmail.de dmarc=pass fromdomain=hotmail.de); 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 S1726926AbgDIUg2 (ORCPT + 99 others); Thu, 9 Apr 2020 16:36:28 -0400 Received: from mail-db8eur05olkn2031.outbound.protection.outlook.com ([40.92.89.31]:3456 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726623AbgDIUg2 (ORCPT ); Thu, 9 Apr 2020 16:36:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y+hqzsOcsPNSqd3jcCb+ZTestW1QcqIAYdT6KfWw5Tx9dFz2knW3Kw/DMHcZm81VBEXXqMSpumUYFE+D9x04AZ9mtOt/Bv4q1KS4mSnpBDUhsUkQ4vV4MrJrMDP6Oh6krkso4Q+39EZyc41FD6OxX5/KXB+qhMHiLnlASY3P9fTNh8CGPaHNE7p6kFgiJ4u3eaGmaC/+Vy2JaGdkSx4Kh+KCmiRUDIPsh0SHV8CkV/73wSLFcKv69qLHM5TNvM/iOeLOB5334iPeuNz3826ZcwOaTuP+mMrKOsxrL/if47XKy/MgZZ26EwZ7ElugSiONyHPuIf/WpRgvni/vvakQBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RjgOdk/XLN4/zWKrIP5EI/CbXAwhJ8jakWruGG3/YHo=; b=YlkAAD3r+KkcpGmgbhQf3WScJFBy0fu3Q9AwWbTukMZaPvFstXlclR7MBfcbCad2luGlwbMDis5OCuAc+Wd1pcKz5PfBCRRRDNvMe2wEkcv/0wz1ucjtxiHttAWFJSJdulaF9xXekN+Faxs2w+U/oACl9PXTPkoTy6xSO0ag8HTBzf+xvKG+6AGs9SAFbt2+48RemWi4n5U6FCbAYbDIwAd7PlDJlflhgPCCEokllZrXBFSQHfv1qgF2J9MGw3GDzFDlCU8qpUGAbe+0xZMzeIqgDMWg0+SbFiT4JC96slMpAVvozLwJ0xkiWvRdxiw0tgI4gloMnl3xHd+k2404tQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hotmail.de; dmarc=pass action=none header.from=hotmail.de; dkim=pass header.d=hotmail.de; arc=none Received: from DB8EUR05FT042.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::52) by DB8EUR05HT148.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15; Thu, 9 Apr 2020 20:36:26 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com (2a01:111:e400:fc0f::4b) by DB8EUR05FT042.mail.protection.outlook.com (2a01:111:e400:fc0f::328) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15 via Frontend Transport; Thu, 9 Apr 2020 20:36:26 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:D22402EA3F5027C3C4274605A6EC12483B73E052BCCCB8128B5868BB038DF3C7;UpperCasedChecksum:2ECADAD848B11E248AF783765E384E5E980FF23B7858055FD656D3168884EC64;SizeAsReceived:10015;Count:50 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::d57:5853:a396:969d]) by AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::d57:5853:a396:969d%7]) with mapi id 15.20.2878.022; Thu, 9 Apr 2020 20:36:26 +0000 Subject: Re: [GIT PULL] Please pull proc and exec work for 5.7-rc1 To: Linus Torvalds Cc: "Eric W. Biederman" , Waiman Long , Ingo Molnar , Will Deacon , Linux Kernel Mailing List , Alexey Gladkov , Oleg Nesterov References: <87blobnq02.fsf@x220.int.ebiederm.org> <87v9maxb5q.fsf@x220.int.ebiederm.org> <87y2r4so3i.fsf@x220.int.ebiederm.org> <87wo6or3pg.fsf@x220.int.ebiederm.org> From: Bernd Edlinger Message-ID: Date: Thu, 9 Apr 2020 22:36:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR01CA0140.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::45) To AM6PR03MB5170.eurprd03.prod.outlook.com (2603:10a6:20b:ca::23) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (92.77.140.102) by AM0PR01CA0140.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15 via Frontend Transport; Thu, 9 Apr 2020 20:36:25 +0000 X-Microsoft-Original-Message-ID: X-TMN: [3sOWdNKmVyUGjKP31fwW+zSD1r55U0cJ] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 50 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 09810bb4-03fa-4b30-60a8-08d7dcc5acb7 X-MS-TrafficTypeDiagnostic: DB8EUR05HT148: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZwEWBzCz+0DnqTn/RaZrwrfxRmlZ7JEQHRZcmYfFFDX8Jq92bhIe+ZyFUYXvRow0A7+7x0pA3nEXrKt6U1ijV9bzXS489G27ELWWzQneW+yKCMvh7y+zNKYKGpW3QjCC746GkEpddnvqv3OZ0iTHEA+Me9hESFwDAQlY75P6Muc6obuUJIV7ym48At5fIzWv X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR03MB5170.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; X-MS-Exchange-AntiSpam-MessageData: s8SNnUH7N1h4LS9tuFX14OVztd2bM5aMGVYKfzjpHBzWniraiSS3uMpi9wk5mOuTKy6FE8eg1YeboQRYYOk9cRPlYJEgPT8k2ntwfhO/+oX+x8D0oxw6OvQvpz3ACjZByjY10hCG4+OEV9pUjLsojw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 09810bb4-03fa-4b30-60a8-08d7dcc5acb7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2020 20:36:26.3769 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR05HT148 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/9/20 10:04 PM, Linus Torvalds wrote: > On Thu, Apr 9, 2020 at 12:57 PM Bernd Edlinger > wrote: >> >> The use case where this may happen with strace >> when you call strace with lots of -p arguments, >> and one of them is a bomb. strace stuck. > > Yeah, so from a convenience angle I do agree that it would be nicer to > just not count dead threads. > > You can test that by just moving the > > /* Don't bother with already dead threads */ > if (t->exit_state) > continue; > > test in zap_other_threads() to above the > > count++; > > line instead. > > NOTE! That is *NOT* the correct true fix. I'm just suggesting that you Eric, I think he means you, I am too busy with other work ;-) right now. > try if it fixes that particular test-case (I did not try it myself - > because .. lazy) > > If Oleg agrees that we could take the approach that we can share a > signal struct with dead threads, we'd also need to change the > accounting to do that notify_count not when the signal struct is > unlinked, but when exit_state is first set. > > I'm not convinced that's the right solution, but I do agree that it's > annoying how easily strace can get stuck, since one of the main uses > for strace is for debugging nasty situations. > > Linus >