Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2590290pxb; Tue, 24 Aug 2021 02:52:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbmdaX1ALU+pU2MZTjvKDllwbx8R/Msworg+vomObRNDZ7rgcqffyLmEcvmNlErvySRT/7 X-Received: by 2002:a5d:8a05:: with SMTP id w5mr21950805iod.155.1629798763433; Tue, 24 Aug 2021 02:52:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629798763; cv=pass; d=google.com; s=arc-20160816; b=nRzKE+dMd6t/Q/3MtYwPp7EDIN6A/x0/RL4PRcnSr5Lbf8rhW7UeWpJ8qpowavsX/Y bxWLRmXDD4pVJM3pikuexc64to6Lck6GXTkJqrSD5K3+UygwYHycNP34MEYyTae5wqJd hOHZ5LRMcfmTiRImkblWRySzKyZsooPB2Z6yWrwx/y94Pw8uC1UAN5YFng31H6i8WWVL W+rw34jbOhOL1+vzorW+MNzFWwDmi+ugGurYCQrvAW31HN3RjUaMRpAGjy1v4dHp6cEl cjGOzQ/6aVnbUlqu4a8LLYavchytL9w44oKMA7zqZYVeoAuPi2wPwpm8U69akk/vmOX7 B9Tg== 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=RpHkjONAqVlmbW6DqDAJFET8toAnexYnWA17xBv+CMM=; b=hQc9yZb1gOzkmoHQFGl8I9Qa7JektIZPqi/NunNoiKPmMoO1SKnH7gb1vJTqGrItIk qWRCFrFCOXG54T2zhGnisn4QWjOyz2NWP2iMpwbHX1QtJdt4XwQdY1ZdlsttbwAHOVRE K6u2odjmEpaQm9Gy+JDFD8wdS0KBQBhffV5guZ1MqPoAVbdflO1aQ4tqiruz26ERosa5 ZnuHK89R0mXN6dKZ2gs+Tpwy7/Yx45Yw4eIX/Hsi3e8Q+hOt6BeT2sQ/HW+G8aMVDCqU VhIm+sxUiD1OlUUPRQztv8LEZ/y+6b5StD9f2j9fVXdKMqe/Aazx+qZ8qybXYt+t7ZII FWKQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@viverislicensing.onmicrosoft.com header.s=selector2-viverislicensing-onmicrosoft-com header.b=HZjrH4KK; 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 p14si18268095ilo.31.2021.08.24.02.52.32; Tue, 24 Aug 2021 02:52:43 -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=HZjrH4KK; 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 S235901AbhHXJvR (ORCPT + 99 others); Tue, 24 Aug 2021 05:51:17 -0400 Received: from mail-eopbgr50099.outbound.protection.outlook.com ([40.107.5.99]:46194 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235758AbhHXJvQ (ORCPT ); Tue, 24 Aug 2021 05:51:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PrQd5c+F0jdJTZJ5IVXoxzJjmTkysZBq9lr/zDIZm9UqcXOaUdYo/x+Nol53YSvxFC1yfqc8zQ39EI3FJEH6Krj8Rp4VUbTq/517ONuFJm7RZYo02CjzB1VRmaHn2uEpvqFZeQq7ZJDCNWsgH/1qr8BTSpK8rTciJTpviMi4QgD7xmVhSCcJuDxOB2cOKZ/WMZLc3UfhAuq9k6VB3OL/uDmqX9RudoxTICCTS7KIUmV/sHkh5wW7xrlfqr4o2ORSPY4Gr0ywUY3eUTSwBXgytsJ2DyVt1nE5yDgCCW8o0SET7JIHmIuOwbz8wBi8zD+q5yg7RQ05j6ttMB+TCs4IyQ== 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=RpHkjONAqVlmbW6DqDAJFET8toAnexYnWA17xBv+CMM=; b=dh38T+dPlGKc5w7QXlSJov4TpkuaHrBC42xYD2K/n19l3y05vRXpJepzpIjg2uvj9d4rsNgL6ndj+WK5DGUutlKRioPM19fNvrqefDNBIUnANWLgMg1c3vO0EgfrFi5ohpRu16Cs+qzyzuuuXgmk+urm1qrw/SQlvSNfpWCFmTmMVsVynFTublDqe49ZRXrFBazWfn/vHxdZdcO8XReIREgPPLi4KJ/L+meGzNNlEUaC16QxUO4P6RsWB1m2VaCa5soM3GCvpByuzp485U78tBYGMvsAoO8yoC9ZMoyPACxcVIFjRvX4hzMWFt434SzEaT8fg8mKyueulTDixqSqIA== 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=RpHkjONAqVlmbW6DqDAJFET8toAnexYnWA17xBv+CMM=; b=HZjrH4KKi7S5sCZ5Qxum7Rh9kW+/aUhrCWNQVre1rozSo0piWFCU3WLojGRItlkIhwi7aK0t/sGiB3Tk9OoRKqT9uS/BPSRcfgd05aQK5thHYpwB5BOKp9DenW7Cxh6AY9JA0G0DIylLcORI/pik95Xr3zCR0lwtjXz4VzrYCME= Received: from AM4PR0902MB1748.eurprd09.prod.outlook.com (2603:10a6:200:96::21) by AM9PR09MB5154.eurprd09.prod.outlook.com (2603:10a6:20b:30d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.22; Tue, 24 Aug 2021 09:50:30 +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.4436.025; Tue, 24 Aug 2021 09:50:30 +0000 From: THOBY Simon To: liqiong , "zohar@linux.ibm.com" 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 "ima_match_policy" function. Thread-Topic: [PATCH] ima: fix deadlock within "ima_match_policy" function. Thread-Index: AQHXmMZhoZvF6mt0r0yBn96FQ0LRM6uCaWSA Date: Tue, 24 Aug 2021 09:50:30 +0000 Message-ID: References: <20210819101529.28001-1-liqiong@nfschina.com> <20210824085747.23604-1-liqiong@nfschina.com> In-Reply-To: <20210824085747.23604-1-liqiong@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: 4181788f-9df5-4296-ffae-08d966e49be2 x-ms-traffictypediagnostic: AM9PR09MB5154: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:204; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: X6h+EJsJMqY3RflgNnYghpRbsaZqPLo36ZUk4kQjkzvEb4gL6eSrdqqyTPl82slX+wQAVeimwtQnupU9SRt+bRrtB1bkfsMUdg4MBYdyOqvFdGSgR3s5y/0OazxB9GH6x4lK3iIlItTtp77MjppKz3RioQVxeGVl5ldV23a+xsL9zPcrH5LmT0ILj+PMo+ysFVrtX8zoyzVA+DhrB83ERJ17knCGWP3CwB9+rYFoekeKtkadJ5f1re0Y2xgou80fBuam4+wqwK/v5UdYCmlKtsy82MsCY6g8B9Uv0Hlf8gQmFqcJfVIPfrpCXAFFNtbOIpmDPRQrPE6eylacvf5jJCgQzUGbjvsc/uovn/k7CLhE6HvqwaeiQINJLKPYFTwnzpS5bY5bnLn9e1trdei/Q/HWVGyca8d4Ulp7LOTe4iB4AlFQKEALYXJs6cvlJ/CLKUysnNhw7KXhtXe85hlWYYNkjHkw1imtbMBKXz3hHo5xRrzZivB0bRo55tfCZnIRZ1EuNpLy8mBGnPT/YR/x34xW6CCndjP+xhahqJaOb+69fAMJs5P0blTvfcfAkaeGPgB5/TjQ1E8kIqRCiCZxB6Uie4tDfIO4b7SUMB/gSy5eferlCTXnzZLHVpmV/C/3hzpX/jQpRCm/bJ15V3iEa5a6zzHty9j1BOpqgqrqPSHntqySeiYLk8ilvGIq4RqPc6k/L3x6eMCLrCy4dorRZWDC5qqyKLG00hz9oLnBuII= 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)(396003)(136003)(366004)(39840400004)(376002)(346002)(66446008)(64756008)(66556008)(66476007)(66946007)(86362001)(54906003)(76116006)(110136005)(478600001)(91956017)(6506007)(4326008)(36756003)(71200400001)(316002)(38100700002)(2616005)(122000001)(31686004)(83380400001)(186003)(8936002)(2906002)(31696002)(5660300002)(6512007)(6486002)(26005)(8676002)(53546011)(38070700005)(45980500001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?MWppeHRKTUMvUU9aQk9RQllTVFBKMzRXOTM4Z1B1RkZmU1JhR2pvak1UWmZM?= =?utf-8?B?VG1XKzZVNi9DWHkyb0RaYndGaUt3SW1TNW9YcXpUZitwbWhZcDRLdVlFZDFG?= =?utf-8?B?Ny8rR3E1cHpNUXphVk9wcTBuTGdHYTFtdEZPNnc0M0wwd3dWOExwSGZWR3B1?= =?utf-8?B?T1hUTUN6Q0NYMElUeTZXK1N5a00vcjRLRkNNVzJmWlJGRHByT2I0SEFscTNn?= =?utf-8?B?Y1U2OTA2TUIrNWtpUGRlK3dCbWR6OUYzcjZyRlpmVnplUlkxalhmVTdpLy9h?= =?utf-8?B?K1NoNjhITU9UZHl6YkpnNGFSYStSQTRwbmxRRlFDRGhmdWR4Wkx5a2NrSWtV?= =?utf-8?B?cnRTb1lSUmhscTUvZTFPbGVsSDdjc2k4cS9qSzFyRVdmR0gwaUo4NzNjSFUv?= =?utf-8?B?b0ZaMk8zMENzTXo0TGZCVzA0NGV1M3hOblNLNEJaeklabjVFakFtbUVGMG0w?= =?utf-8?B?cm9ETkpySFVad1NtRDQ0ZTN3dG5rSjJqS2ZkbENxa0l1RHYyd1UxOWdacVJB?= =?utf-8?B?QUNselhBdTMwajlUU1paVWFpckxsT25pdzVGazZUNXpBY2xiVkREY1J1RUk2?= =?utf-8?B?QTk4NEZCWXdkUkZydTVMSXl2b1N1MnZ6T3BuelFieXpaQVNCd2JsZ0FzY3ZS?= =?utf-8?B?aE5LaThzUzlvSllOMmJ3ZHdUd1VGamkvNUYzbzh5K1R1WDBMYzBLbWYvMGJI?= =?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U3FQdzVEKzEraS93RnZyc3BCdTBpcmll?= =?utf-8?B?V0xvQ29pUW4yUFZIclhXbGFOeWZEN3d0ZFFhZnlSRGRDL0xvSVgvcWVTSDQr?= =?utf-8?B?QW9sb0U3UFh5a3p0MitZWDlvRzZpcWdIdjEvRi9uN0VFckZzY2hVNjQya0ZL?= =?utf-8?Q?ceksBWn1tn+McZr3bIAY+I9KNJKP2U9UUcf2bVI?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: 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: 4181788f-9df5-4296-ffae-08d966e49be2 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Aug 2021 09:50:30.2538 (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: Lcp2aRAuu2YVU6j0FdXo3e804KH4N9iZa+YSafki/fKGEH7mvMOfDw0iP+cgsXkOyqfnCZ4yLnsMdL+uzIMqZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR09MB5154 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgbGlxaW9uZywNCg0KT24gOC8yNC8yMSAxMDo1NyBBTSwgbGlxaW9uZyB3cm90ZToNCj4gV2hl biAiaW1hX21hdGNoX3BvbGljeSIgaXMgbG9vcGluZyB3aGlsZSAiaW1hX3VwZGF0ZV9wb2xpY3ki IGNoYW5ncw0KDQpTbWFsbCB0eXBvOiAiY2hhbmdlcyIvInVwZGF0ZXMiDQoNCj4gdGhlIHZhcmlh YmxlICJpbWFfcnVsZXMiLCB0aGVuICJpbW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