Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1150585pxb; Fri, 27 Aug 2021 02:22:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2Ty3zyJtNrLgUOm1HYkEOUkL4ERauVk4/vigE6RlnWtoTo9nkzN/uNM6joe9Ztn1+VXYH X-Received: by 2002:aa7:c14b:: with SMTP id r11mr8549225edp.108.1630056175800; Fri, 27 Aug 2021 02:22:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1630056175; cv=pass; d=google.com; s=arc-20160816; b=Yl/puDx93kCJUNjItInNMgHKLbLBhzw0VIhMamY9B7INxFKR5gq7zWA5WiRziQKr7D SlqmDxjm+1KaszsVQXtxczsFIp91zQC98UwbnUSereDzUp/l3pHCFExKdQslq61uVEyx W8mGGVIlYtYMqPC3GuGfK2C1B1wYg7ia6sXNPWLVMw0ZZ0reqAQK4JMZ2CntzOOrzl6g frTTHRB5Etx5L5NfhS8cZ2pQv5+HAcqfZp1gOEy8ZlZjQW/MSvoUnP+X5AcPpRpWZkWC 277Gd6Pwet5aactKJbcdsSH3ZVYhjfN98Bjz6LSPkeicOcCwD5O2tcTEb7wRR+Un5pPR Nhgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=B8B2r30Ru6cgRJ7E6VuRoToB3+5o2ZtqEKR7NGlWt78=; b=pB3gwlJvTYQg8KWtsb5RCd+UswXgrTCe53jmIn64Y53Npo+LaZ1zcL7DoCOX4aiNXo v6lPq3KBHxOVXcmFw11PboPnAs9jZJTFI0V7fC0jUloLN0RRs8FRGC65CI44IVT3JO3A 0Y48ebIPAKDcZSthTb7wbJ/U0W8UyphGhpBkS3E9W5UBXbqkejVbCWKdzar10YweoZGm usUIgzQJpn9djbo7xFW1dAXfs8jgjxpnCSs8Pr3Zh92njvAY5QHxUOWwm1dyefY3qTUt 1RKIjyedfvhDhBMsZoX7q3tyY4AlfBLegqnMyEiDEda3yf/r6EtQZvSmsWtwKQLVjiEQ A/lA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@viverislicensing.onmicrosoft.com header.s=selector2-viverislicensing-onmicrosoft-com header.b=4a+P3Aip; arc=pass (i=1 spf=pass spfdomain=viveris.fr dkim=pass dkdomain=viveris.fr dmarc=pass fromdomain=viveris.fr); 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 hp37si5603182ejc.291.2021.08.27.02.22.31; Fri, 27 Aug 2021 02:22:55 -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; dkim=pass header.i=@viverislicensing.onmicrosoft.com header.s=selector2-viverislicensing-onmicrosoft-com header.b=4a+P3Aip; arc=pass (i=1 spf=pass spfdomain=viveris.fr dkim=pass dkdomain=viveris.fr dmarc=pass fromdomain=viveris.fr); 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 S244632AbhH0JVm (ORCPT + 99 others); Fri, 27 Aug 2021 05:21:42 -0400 Received: from mail-eopbgr70093.outbound.protection.outlook.com ([40.107.7.93]:9540 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232282AbhH0JVk (ORCPT ); Fri, 27 Aug 2021 05:21:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XysnxgleyI6Im7BdX/+WVozkVmT5J+jznRJas8MilwEYc77mxNFq3JwaDJpXj/8rKA2gypN7JNadgBITms/N/uVTjp24BBmMLom8rFpWVDnQjECZrf+SzseY5Z8dBZF3XvcifGPPTupUkrhGNJXUxkmsBSnqFJZiB4bzW3stY5Hr6BpiM5GPdbLnOgqaLRdHS9J7Oxy+93WeyM8pif06odfCjfprPMRed1exKB5teUIJCW9nwGveg8QjOHuK3deFt0FcJ98cQFKNCgiOLS9PxBACX0HGyeYfjuq8KQ2gMpOlKws9RBSyr1hZVFNbTJTevZ6xKG5qOR584fp1cFrdoA== 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=B8B2r30Ru6cgRJ7E6VuRoToB3+5o2ZtqEKR7NGlWt78=; b=R6+nfmrpj4hMLD0H0328oz9IItI3YZpZ38sueVHXqKp3MgrU45C/SLv34GpA3wzv3H01XkBHaAgMY/bQGNIzY1SWkWsZa+Wu4JBeJRsP1mtGhr8wcWvQPv2oZrS7srcwY4afn3AyF6Oz4e1j9ol4pTIDDx8gje0gjhYSMTtxZcWBl74ldiYjHr2IFjHBKdT0g3uyaPt261lzfl46gbGIoqrPUHxbfwkrGF51aJzhkvbwAJaXZWFy38Iw0KtahZSm5995gRRxdVik1q9PcFVJ608TTqQ6S3wK6jcC/glQLBDVx+UxIVzLjiYJuo790ML1zH+9RY/0W5GKWEGtqep5qA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=viveris.fr; dmarc=pass action=none header.from=viveris.fr; dkim=pass header.d=viveris.fr; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=viverislicensing.onmicrosoft.com; s=selector2-viverislicensing-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B8B2r30Ru6cgRJ7E6VuRoToB3+5o2ZtqEKR7NGlWt78=; b=4a+P3AipMCHGFvbO4I/8DSRB1Y3N8FQ/82y0l7/UFN1FcJu+r7OoLYdQ2nAJgB6m1cJNUZj9SqfMgOKpBND7oqN0qSCVQtmSOYEvX/CmH0IUor3Nga62kKCGmv7654OfGqkwH69Dfn9wBKtnByqnrMS2IqGAeu7RTOAjyDn1QYY= Received: from AM4PR0902MB1748.eurprd09.prod.outlook.com (2603:10a6:200:96::21) by AM0PR09MB2548.eurprd09.prod.outlook.com (2603:10a6:208:e0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.22; Fri, 27 Aug 2021 09:20:49 +0000 Received: from AM4PR0902MB1748.eurprd09.prod.outlook.com ([fe80::84a0:780d:1c5c:4432]) by AM4PR0902MB1748.eurprd09.prod.outlook.com ([fe80::84a0:780d:1c5c:4432%9]) with mapi id 15.20.4457.017; Fri, 27 Aug 2021 09:20:48 +0000 From: THOBY Simon To: liqiong , Mimi Zohar CC: "dmitry.kasatkin@gmail.com" , "jmorris@namei.org" , "serge@hallyn.com" , "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ima: fix deadlock within RCU list of ima_rules Thread-Topic: [PATCH] ima: fix deadlock within RCU list of ima_rules Thread-Index: AQHXmX+tegVBd7sMTk67aKGRvAyd76uEGmyAgAAFHACAAVKggIAADJCAgAFrhQCAAA20gIAAG+QAgAAC0AA= Date: Fri, 27 Aug 2021 09:20:48 +0000 Message-ID: <13c503f9-3a21-e92f-9930-76418d31956d@viveris.fr> References: <20210819101529.28001-1-liqiong@nfschina.com> <20210824085747.23604-1-liqiong@nfschina.com> <3ba4da9d-fa7b-c486-0c48-67cee4d5de6d@nfschina.com> <2c4f61ff68544b2627fc4a38ad1e4109184ec68a.camel@linux.ibm.com> <5a032a1b-f763-a0e4-8ea2-803872bd7174@nfschina.com> <1e464ae0-28e1-6511-ab89-52b5cd1a0841@nfschina.com> <3ef6906b-ccf1-0ab8-180b-b71568e22443@viveris.fr> <266c50d0-1efd-dc45-d11f-e8c91bfc8490@nfschina.com> In-Reply-To: <266c50d0-1efd-dc45-d11f-e8c91bfc8490@nfschina.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nfschina.com; dkim=none (message not signed) header.d=none;nfschina.com; dmarc=none action=none header.from=viveris.fr; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c1794166-6c59-4ba7-9441-08d9693bf54b x-ms-traffictypediagnostic: AM0PR09MB2548: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1360; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xUoma6evPxxvrRBnub9oDUXNdOWAlM6L6I+UW1KHgSB7AESOb9zFXHdLuZQJBewnsgfr17AyS7U/LNZc6lTElenXUyYWm2vYscl2jckQonCqwJe91otG5OQkuEOs9Z9QH1zO8K1PAfkYomA645yZdP0uQATYBnUIylYOsK2KB/r808Pq5EACB+geakQlyrPgfNstOIWGGFSrAhYJhVQTZ5o8HsGBRaCNH80UxMewSZ1XdUPMXUlM3Plr+zo4RLo4+xCXoSyPbuwX6KN1E/3Ud/mJRy60crG2kecYorSXJgMnzYa03M4YlF837BQ3CDzSWQvmFEiSBPA8mpGudOtFQRXSTEqxiUFsrCwqZrO2AjJ0vk1tkSTeOQG14b3KWkzuemOj2KlgrvCe7CMrFGKLJzuruEm52jmwVSEGSSY/BGaIh5P380j91XGsbe9RNpFa6EYREbB6xhk0JmWguDFdTABG0jEnFImeDxUy6Tyil5KHixiOtZCIgMLLiGxTIffQKh/He7CM4XctJSrqqiV1NI1s8XuuDfe8xvPD7zrHXIsFOV4rxiTLifjuLuuIYgiDdCiZvS9H3bRvQB3t8g4D7gJoffRa+vq94LD6ZJE4O5uKoUaMzDV+aJdEoAXB0Yv9duaIC558shdsopaE2+7gwubufDQOW0s/hhNSaIejiA4Xa+8LfF4PDqfJI3NyjF2ldSELGoxY1G5hd5mQgCbLwWNOKL4gzN3L+P/iqN1aVz9BlPAbao+6bftNofOwYjt2 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM4PR0902MB1748.eurprd09.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(346002)(39840400004)(396003)(136003)(376002)(122000001)(91956017)(110136005)(478600001)(64756008)(66556008)(26005)(71200400001)(316002)(66446008)(66946007)(2906002)(66476007)(6486002)(83380400001)(86362001)(31686004)(4326008)(38070700005)(2616005)(5660300002)(31696002)(6506007)(8936002)(36756003)(6512007)(76116006)(186003)(8676002)(53546011)(38100700002)(54906003)(45980500001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?bFF2WExFNmMwcGxOT05DblpqQzVyWTl5ZDd0RUpzVXhIcVU0TTZqWlZCSWdV?= =?utf-8?B?ZmU0OWN1V2dETHgrOThqUHZ3bTBVTDhNaHJLeVd5U0lLdytDMU81UzNnZTcv?= =?utf-8?B?aUg3TEkrdnFldDIxUm83RTQxSFpDM1QvVnROeEkxRC9GRHhCUGxvSSs4UGVC?= =?utf-8?B?cXRiOGxickM5RkgxU29DekR3TEt6OGl1eWllYTFVWURwdXNDSnM1VGlCWTc5?= =?utf-8?B?YitWSlZFUDVCclpNT1JBSjh1eTFFSG1vdFB5S2J0RFBFWm9QL3JEVGRjQm1x?= =?utf-8?B?UnlneGRnZkJ3MlZrYnllQ1ZFVVBkMkZucUE0ZDkxOUdXOXprN3RUV1IvMXNp?= =?utf-8?B?ODRPa0ZaZ2ZpSmNjN2tWcHZqaHRibmdqOVZWZ2kvR3ExRkMwME5MUzBxdWFa?= =?utf-8?B?QjV2alQ2QXIvNHh2M3Y5eXdVeU1rNEMwY0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LcTR4TkhMUjVnNkREL0ptc2VPbDlQS042M2p5Sm5HUDVjQnZBdUpOVm9K?= =?utf-8?B?dmNJRVNTLzZBTXVFeHMrNWNUM3lqYmJ2WUQ5aDNob2Q1aGphc1laY1VndWVq?= =?utf-8?B?RjJpRnA4SHJ2M21ZZk1kbkl5VUhFWmNlZHRQbXNodUxzNmZIcFdNVFJqMWgx?= =?utf-8?B?MDlWUVhBbzg5STByZ3JqOGtydVNyQm1zZlNrdXprVDM2MWYrNEhEUmkvQzNS?= =?utf-8?B?cEJSbWgydDJ1Z1JzK1pLdXdBVG14dnJjbnNzU1IxaVVFZTNjbHh1elF5VzY4?= =?utf-8?B?RmhZVS83V2FqcFQ5NmdBTXZTVWZrMHNIM0xIQm5VMHh3QzVXWGg2WWxoMFM4?= =?utf-8?B?T2Qyem5ZL1hRVHFUdm9mTFZQSVRoamV1M0hZVjZiWWxPdzZreENxU21WQ014?= =?utf-8?Q?DPzPkFXlszFeInDkJBvhFshYCf6vjVThLYbfKMw?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <692DEA8B1C077F47A3C75152E8E1D9DA@eurprd09.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: viveris.fr X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM4PR0902MB1748.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1794166-6c59-4ba7-9441-08d9693bf54b X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2021 09:20:48.8014 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 34bab81c-945c-43f1-ad13-592b97e11b40 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /dDWh0WWFTXJF6s2W2Zi+3qaNSDZ5LfZhSVGN6hVTnkgvDDxVEU8SV8brDffSEu7M4Bkgg8A9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