Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1905209ybz; Thu, 30 Apr 2020 07:31:52 -0700 (PDT) X-Google-Smtp-Source: APiQypIlQwQGvrwy3gMlnZPyYkfTA44Qc+4ZtOi6C7pA85z6jk6fxi6GiiZKEP71CfcoPvagm6tO X-Received: by 2002:aa7:c886:: with SMTP id p6mr2816102eds.97.1588257111950; Thu, 30 Apr 2020 07:31:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588257111; cv=pass; d=google.com; s=arc-20160816; b=iHXOQ+QGxrpcd9nT9HpEpR3uhCdJkxxY6/fffO8Ow2UkoOaPbMJMUJvuH5lh6p70D+ m6jBkD4ENFbsNJYbRuQBmGTkwESDrjS2rzHYznim4WIOU532SsbskoPBJFiaUcpL9i5d EPeFAuHUI/k02cG9qErrFaRRk+SCZiO4+ECunkIaz8cqP6ofmRUnk5zGGk8dIAy0M1pO lBulBEseJmpSPF5cqEmUXqZv0HcOl6ycvMDn6VdqbGXDotPkpqsoraTuhlurTHsylOlp 1Vj/9vI8q7IittqKpod07G3NT0PkWYwBhAZ4PyGOz+VtaHiXAglz6XpVSFUv73GmGnRs OEJw== 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=v6fF/4IRI9tpncB0usY22xcm6VOOMOMqj7N0EX1H+W4=; b=swTb47vTkvBqlxd0qE18CkZufbTD1JhuZ35djE7mFM/bbvQj+IJybgfWJ2V6+O++ip YmI564oqrYptzeyhCQBfWA+fThXTjqumYVJKQQeRzHbmHtzFYfAObwTyvt24gdUPn94N 1wfOl8UjiGyR/vjQpwNO6A01iDUynbJSOy7ZzE8/HoWhtzoD+YeE9gJkVgI3MNRwaabK YLeOZrEGfVq71WaWCIMa0731QnEonBSjj8FZHQ1079F6nMQYoQ0RJLxP4LGug4FBx88G RDV4pNl7WEdBDYDH6RGAXZrHj1+TNXroGpPc2k6x0jqLYxgk6eGvhx6EAwL3Yzqqq6qj XGcQ== 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: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si5477704edv.171.2020.04.30.07.31.21; Thu, 30 Apr 2020 07:31:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; 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: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727864AbgD3O3x (ORCPT + 99 others); Thu, 30 Apr 2020 10:29:53 -0400 Received: from mail-oln040092073096.outbound.protection.outlook.com ([40.92.73.96]:52473 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726760AbgD3O3x (ORCPT ); Thu, 30 Apr 2020 10:29:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kH+MGtZGusfinikFcB2UVXhlPRK071n5BsiA5uKRWm6sMo483pK77ghhaKEAaO1muiJD4zpNbRDlttfhR+JPWMAlTk6gxznfvqoDeBgyZcXM2UU/iZM6HmRYE1T7D5AMuugg/oggjlts92nLAcLc54CVvsH3wYTlCQSQMW3RAlH/dzNIkAiMd6RrszRzUUYd4FugyR170UZ7rfMQe1QI2g1oprDcgu6GptDEBa6N1iaV4s8bCv/Y4OuARfxuHG4pJD4EHrSSTYV6ObszD9I9mZIbtRCCaoYF40v/Rn8tXTaGepljOKjWc3bnEZja3us09w+/xD2rB0hDHUZIkENt3Q== 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=v6fF/4IRI9tpncB0usY22xcm6VOOMOMqj7N0EX1H+W4=; b=QCjSPTeCjAcp7u1A+2cvhWUh95tdRGusCxFQjFj49Ksfk0wZ+BilijO5dBaN+GvGw8lJUtThj50lKMaBQfTPKIUGEL6elkdkw9z7aVtZ+462Q6Dmcs32DnOSRraIAqW55YU5pp7bM+qF29uk4r8mTvCGtCiMNqkOD1PWauN+10qs4sGhemGiMZ0l5zEyynznGi2hAq1r96hq9n44fJnEDsu+UvNiYA5o+UX5AZdVP9tJFT6O50qsbk5dh4pSZfu6iSs5rCZMFTxS9OxQ7siXI/su/hRPqMwXvNaEjUWs8PVPgyFxEq2kjvKgVfe524DHzngWvPOFldw8hMwX74cutA== 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 HE1EUR04FT032.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::4b) by HE1EUR04HT195.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.19; Thu, 30 Apr 2020 14:29:49 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com (2a01:111:e400:7e0d::47) by HE1EUR04FT032.mail.protection.outlook.com (2a01:111:e400:7e0d::291) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.19 via Frontend Transport; Thu, 30 Apr 2020 14:29:49 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:7DE039EEE2A02A05005C27B26824583ED5FF38EF259508C9108AAB271ADFD05B;UpperCasedChecksum:528972F87A7B883BE8FEADF741BBB663960A1C66608E555F6B78117408B26968;SizeAsReceived:9996;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.2958.019; Thu, 30 Apr 2020 14:29:49 +0000 Subject: Re: [GIT PULL] Please pull proc and exec work for 5.7-rc1 To: Linus Torvalds Cc: Jann Horn , Oleg Nesterov , "Eric W. Biederman" , Waiman Long , Ingo Molnar , Will Deacon , Linux Kernel Mailing List , Alexey Gladkov References: From: Bernd Edlinger Message-ID: Date: Thu, 30 Apr 2020 16:29:47 +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: FR2P281CA0005.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a::15) To AM6PR03MB5170.eurprd03.prod.outlook.com (2603:10a6:20b:ca::23) X-Microsoft-Original-Message-ID: <7fca8eb0-232b-be41-1807-c8ad248173ac@hotmail.de> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (84.57.60.225) by FR2P281CA0005.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20 via Frontend Transport; Thu, 30 Apr 2020 14:29:48 +0000 X-Microsoft-Original-Message-ID: <7fca8eb0-232b-be41-1807-c8ad248173ac@hotmail.de> X-TMN: [x6zXf9KK/cLkIocDag0A6X4rnbYrKRpo] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 50 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 2928062f-733d-429f-a367-08d7ed12f011 X-MS-TrafficTypeDiagnostic: HE1EUR04HT195: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qSaEaDzoUmr1J1YYiwfDsD2dEYa/P5fCa59MdAhXFHLDVUv3exrY/h2ZQ6Pe45qX9XFu9eOOSEUpCqzmNe23jnz84EG0XdrbKj1LctyUgYr6j8xX86cDiNwQQR1UINkkMo4cWzuIJCoC6AUfM2Mp3CV8EgP2r7hArepGQVQENO55dLI47843CIPGD+y/7hnR6fFYB87j+vcrAc2qKHuVLg== 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: QECCsltX1Z6mo3N47jcVLj1Iu2g5aDeUtHVjNllgrryX3plqz5YWJ56l+KSSvUSydNyO+5+w5I4Qz3xF4DaagGTVyLveqwB/J3mpRqg2r7VuMypgxr9vEQ33kn2son/47cIC95FW+5gX3a9yTbMLNA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2928062f-733d-429f-a367-08d7ed12f011 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2020 14:29:49.2564 (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: HE1EUR04HT195 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, On 4/30/20 3:47 PM, Linus Torvalds wrote: > On Thu, Apr 30, 2020 at 6:39 AM Bernd Edlinger > wrote: >> >> Excuse me, but what in my /proc folder there is no attr/something >> is there a procfs equivalent of pthread_attach ? >> >> What exactly is "attr/something" ? > > Anything that uses that proc_pid_attr_write(). > > Which you should have realized, since you wrote the patch that changed > that function to return -EAGAIN. > Ah, now I see, that was of course not the intended effect, but that is not where the pseudo-deadlock happens at all, would returning -RESTARTNOINTR in this function make this patch acceptable, it will not have an effect on the test case? Bernd. > That's > > /proc//attr/{current,exec,fscreate,keycreate,prev,sockcreate} > > and some smack files. > > Your patch definitely made them return -EINVAL if they happen in that > execve() black hole, instead of waiting for the execve() to just > complete and then just work. > > Dropping a lock really is broken. It';s broken even if you then set a > flag saying "I dropped the lock, now you can't use it". > > Linus >