Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp918954ybh; Tue, 10 Mar 2020 10:46:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt1ja16yoWqwC+NSovmTIHtBdnnlZham/qDNhhj6gJPqlNRZCUgSPuIWNqQ006ae15XTFr7 X-Received: by 2002:aca:5194:: with SMTP id f142mr2089937oib.100.1583862401667; Tue, 10 Mar 2020 10:46:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1583862401; cv=pass; d=google.com; s=arc-20160816; b=MYxzF4aHPheeJ3oEzv1xurcPApHdpSk8DzgUznViXhlXa6AmxA1J6inq4kVydOdgfc hjESC8Ye2yuHJr8oYiN/mR05bSEnax1He4gr1vIUxUsuWbiX1G567gU5RmUDV+EAaeCw k49NET47nQlp9sfCRYfboaEd6m9UOVxfm9BfsCYkT5TG6fTfb0C6jJ3/8g1eTGNu6Ljz xJf/hId3ngTvQw8IDwYaNmL4M4KWQA9dPxORUO/ZKRqOUtwzrHE/EaQrALD2MQfqRubs k6Z2b/NUfLyPnJUE4Qrm+MDQsVyag2nAw+YSMSGp/DTHS1pBQCFdwTCsjqp5hROXV2XL 5fBw== 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:references :cc:to:subject:from; bh=nuaWEum7LK5Nl7cZXTekI4XxZLLAjLTVPkstbsytWsg=; b=POjVx9LmblexcZ6aL2NrxKYKSLoA1OCKw0UPH8K3c2XypEFHYO07AV/X5azF5Thn1L ZNvTxHDukzyot8QariS8tucToqA+wG6HFSTU0kBHwXUxppOARfn4Jr+n3JxuU6j1HYzc aPqh8Psyi6etjsZPjbMeR/JUp5itPfkXkO938LyjFlBOf2cN4Wn0iRMVryena5e8a6u5 fxtIBQrx2bAizyYTMO5QigxRswGHXjg9uuaJ5DNZ75Oc2I/8zdaXIfcGMLNKbNZHFhVP 7GQlGP7csOUiMW8Ss1/bEXqmq+rMExpQP9OI7adqpcXgrTgPl2EJNmG8Gy5kYvS9biVB cLlw== 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 x73si4141057oif.16.2020.03.10.10.46.29; Tue, 10 Mar 2020 10:46:41 -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 S1726712AbgCJRpD (ORCPT + 99 others); Tue, 10 Mar 2020 13:45:03 -0400 Received: from mail-oln040092073018.outbound.protection.outlook.com ([40.92.73.18]:53252 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726426AbgCJRpD (ORCPT ); Tue, 10 Mar 2020 13:45:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SiHAjlXN5qbXMDD/JfnNPl8ui7XjhtGKpAVhyYJg+ASIz3Q9Z/iHNjcuMCwgzIe2TuaaZbn92/HEh/ePqzt3hRrMiDbruaIk7k/XsmcfWn6YQfxlougYTTa4nHK4A20Op4jyTMEcfgcoI9fPm9/pZyY/Cjp0ELAOEZyQ332IHzuqS3UGjXwNmLgd8fGmfAGkHZnxF1l0q4eMLC7ZPZGzfCD5znnX2AZXVRK3rijSS+k2mQoDeTQsDOKQfkT+2WmeqAO1wP3wmjBeX87YJedusp13QX2c3yzNkLgcAAN/olKBOxGxSbeWKCRtzMqKDbdftpz9697WyxSdEVslY/+avg== 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=nuaWEum7LK5Nl7cZXTekI4XxZLLAjLTVPkstbsytWsg=; b=Q8CKrt+MYJx9SHeuqtOGC95NMar2ZZmlO9Ew49sY87GJzG5KCjy59dHbeWZjmeWgqdVmmu6D5Ol7x6HfvvzLFxC3plDwJ6SoMmYok/87GBfdhNegK33iwK92c3SiDndVFsQyf3jSL6Mmfy5JVDGOedDEh47NdxiMQuR9LtiwR/J8Zeup7Ck4Clc6lRwA2g7v0Iq2YhPE+sJytnphDFD8YYLiqupx9lYc8JPn13D+SSDZtwkewyidIKb94qHnydF4PjCBEdIWyQwPcjrmyJ5pMLhwr3PSpnvhZpAo+hbkhMJtWD9YbJcDenysp+pFIlPZfXMabj9sz6ENxY8V79PrtA== 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 VI1EUR04FT026.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::35) by VI1EUR04HT216.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::267) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11; Tue, 10 Mar 2020 17:44:59 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com (10.152.28.55) by VI1EUR04FT026.mail.protection.outlook.com (10.152.28.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11 via Frontend Transport; Tue, 10 Mar 2020 17:44:58 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:C66BBA9DCF3DEF17BD261EB77DD16B1009977AC6629A0E946531D39E32E4A8B2;UpperCasedChecksum:C8909EF579CC562BDB35BAF1EEE3308423F7F4F39EBDA1D2FC7571AEE4B7887C;SizeAsReceived:10297;Count:50 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::1956:d274:cab3:b4dd]) by AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::1956:d274:cab3:b4dd%6]) with mapi id 15.20.2793.013; Tue, 10 Mar 2020 17:44:58 +0000 From: Bernd Edlinger Subject: [PATCH 0/4] Use new infrastructure in more simple cases To: "Eric W. Biederman" Cc: Christian Brauner , Kees Cook , Jann Horn , Jonathan Corbet , Alexander Viro , Andrew Morton , Alexey Dobriyan , Thomas Gleixner , Oleg Nesterov , Frederic Weisbecker , Andrei Vagin , Ingo Molnar , "Peter Zijlstra (Intel)" , Yuyang Du , David Hildenbrand , Sebastian Andrzej Siewior , Anshuman Khandual , David Howells , James Morris , Greg Kroah-Hartman , Shakeel Butt , Jason Gunthorpe , Christian Kellner , Andrea Arcangeli , Aleksa Sarai , "Dmitry V. Levin" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , "stable@vger.kernel.org" , "linux-api@vger.kernel.org" References: <87tv32cxmf.fsf_-_@x220.int.ebiederm.org> <87v9ne5y4y.fsf_-_@x220.int.ebiederm.org> <87zhcq4jdj.fsf_-_@x220.int.ebiederm.org> <878sk94eay.fsf@x220.int.ebiederm.org> <87r1y12yc7.fsf@x220.int.ebiederm.org> <87k13t2xpd.fsf@x220.int.ebiederm.org> <87d09l2x5n.fsf@x220.int.ebiederm.org> <871rq12vxu.fsf@x220.int.ebiederm.org> <877dzt1fnf.fsf@x220.int.ebiederm.org> <875zfcxlwy.fsf@x220.int.ebiederm.org> Message-ID: Date: Tue, 10 Mar 2020 18:44:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: <875zfcxlwy.fsf@x220.int.ebiederm.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: ZR0P278CA0029.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::16) 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 ZR0P278CA0029.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.17 via Frontend Transport; Tue, 10 Mar 2020 17:44:57 +0000 X-Microsoft-Original-Message-ID: X-TMN: [7Oc0vrg7P6uiu2oSmedJe1YRpn2rdLIM] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 50 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 46783fac-8b56-4ade-3c8b-08d7c51ac071 X-MS-TrafficTypeDiagnostic: VI1EUR04HT216: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dScJnprfhiGs+zwiR6Q8vhFisfXCU/4VIETMRLi7yBeETADvAFnElQZ+OAp+OFPPMB/nGuhfQN1sraJYboXfy04Q/w1tbBng/XS57EOiKeQ3I9toRnfLNcd/ZRk0ZJCEOAbt1yuGBGR95yVqcavgJ99BiSUobmxgYGD/g4DBY73XVy+2o9hZclDpyPttQClt X-MS-Exchange-AntiSpam-MessageData: zx7zqshi40iLJe5uMRi41B5/qxktXGuQWDGut7otpSDOKVcnKYmjgzOqFW2lOhUjB3WB81riMF7Okpjhnmu4kgYKHJ3WAnf4ScmSoxCnu+Xh3bCCMcX3n1io8+lVtloGSOWxkRiwoveVNEp49mprBw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46783fac-8b56-4ade-3c8b-08d7c51ac071 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2020 17:44:58.8690 (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: VI1EUR04HT216 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This continues the execve anti-deadlock patch and addresses all of the (mostly) simple cases, there the new exec_update_mutex can be used instead of the cred_guard_mutex. Note: each of these patches is independent of each other, so in case one of them turns out to be controversial, that does not affect the others. Bernd Edlinger (4): kernel/kcmp.c: Use new infrastructure to fix deadlocks in execve proc: Use new infrastructure to fix deadlocks in execve proc: io_accounting: Use new infrastructure to fix deadlocks in execve perf: Use new infrastructure to fix deadlocks in execve fs/proc/base.c | 10 +++++----- kernel/events/core.c | 12 ++++++------ kernel/kcmp.c | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) -- 1.9.1