Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp549557pxb; Thu, 19 Aug 2021 06:00:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzScEiSZFxJT31UJrJtJgTYZTtOez6Motl/rEVBdIXZ/ih4aykeMcbG9LWyz0BeCTRzQ5pg X-Received: by 2002:a02:c6c3:: with SMTP id r3mr13045131jan.7.1629378018426; Thu, 19 Aug 2021 06:00:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629378018; cv=pass; d=google.com; s=arc-20160816; b=1JCE3lSlcoh+QKXfiR5a5qfHZyWdihjs4E9BOnw/9DS0CCsMEKIWnkp1Gv8/4vxFCf CO1qoVFzKlbMbZ52+uHz7gXF/T+kT4oAObLEz5Z3SnYm/W+zu2N69wYl83WSpTUVHTIR A/1+fRVDiPxhLTh0y+ok+5ZUk3mMfy0/TOIeloQUTNbzv8TREpC+xH43JdJmeDOh/CmQ oYD88GxR5Le3LBW+6gaElpNpOFKvVhb146p6jw39eHPcleAoCoAqt4jLt8utT4jCVD02 Ws3aiKkVoiqosZoYeDUQHb2iro3LgCCdvD1nwbLXIx5RkG+hS+x2uxsJgb+o8uBILj0F HyOQ== 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=267mZfgsw08nQMitHSIZ31FgomW7ZT5IyGYpyL6B2t8=; b=02bOzYe0Mc3G5/lq5VVy3bAQzpMavJxEUTBuV7HQqwtQW4H9GI1o5iUNuOavWK6K9+ C/nV564Zv6GGGEzSiNY4ghsCJSSuj6bvj9TLbjgbyJF7/jbYtPKptmGC4BG8MCjX/BIK LSIRC8gRh+CLPomsZQRdN/PzzpxaM6X6QONwbVzDVjo+89NIbkJyaRZM1j5DtBLSg7yG dGcKAY89PpxPCD9/kubMU9umA61lHdQxUBLnq8I4rbC/JFTbu3on1eJd9Y+1LuiUGAOv 90qAYK6d5Rhnxjf1EkEY1i8E0J8avWpF7ptyFfW8lqQC6y0TRay3wnanOfoKLrIFIY5Q Q+kA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@viverislicensing.onmicrosoft.com header.s=selector2-viverislicensing-onmicrosoft-com header.b=jsGPjrGe; 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 g22si2718231jaj.47.2021.08.19.06.00.06; Thu, 19 Aug 2021 06:00:18 -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=jsGPjrGe; 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 S235893AbhHSM6s (ORCPT + 99 others); Thu, 19 Aug 2021 08:58:48 -0400 Received: from mail-eopbgr140121.outbound.protection.outlook.com ([40.107.14.121]:50821 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229601AbhHSM6q (ORCPT ); Thu, 19 Aug 2021 08:58:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GyXNtVVsuJ6TVY9sMieksDj2GLs/tbXw88PWGbjWQJWsfqFsj/UhupdLHzkfgNiKVo1Aeq6ECOmA1awLVq3V1ZWzOjRZTjJL336tzEDsnMMmClXc0Y6CaSpRbXjROHy2OzmqAmqCeNtRWrqz1bx1/7rPBeU3QikRk15DC8zB/+8edTBZ+h/tEVdfvVpCN3K1if8v0LdOm0JfouCxpRTfcv7P264ypqqjCr21B3WO/OVMLMSr2rqf+MuQ39IzidHSpU7eAsFzN0ube8obJLRLuxLV2hQEQtMvC+Gn3i8a28o1E1D0iq8szuu3ZZSiLEyuL/V+/Qvcelbj0S5sJgBzSA== 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=267mZfgsw08nQMitHSIZ31FgomW7ZT5IyGYpyL6B2t8=; b=C6SNjj/4clyNP7If2bvvsRw5IkUMx5RagXzrjV4tKBXRDB6jMg1Jpe1fbB13Rv6bARopz5Di5mAVNtYFD+s+mSjz38MX95CdZzl9inFzZkH809kvzKe3+uPtI2tE8iIyR5PatcFJ/yhYz+Lc9jD4xb26t00KvZnW6WhFTjo+udC3PruAQ9cgygIwgXRCO6gEmLN34M0hfZKtohhgkqLWOCEX5u61HQPdxbQESaBWYaQidwu5atrPXKVSsaWR3ux+rtCOoeo11+3ThtuvnbepPbs6Ucs90bJZhmRoQYfot+Rc3SIScHonzmsacqbmMsjCrzGk5UF3RGzIye0kDVHStA== 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=267mZfgsw08nQMitHSIZ31FgomW7ZT5IyGYpyL6B2t8=; b=jsGPjrGekTaomKjyIT4WwLyn9CAOm5jD+TsfN8/o3JTnyfBkvJOXHubkDnvl2oZYx5oxBfnIsVv+tmTiAlwTHbv3yhe8rF2F8/BTlwuAAR0TCG38LQ7CkaMuMLdrbmZqv6nmYSSbC40Od2vttG4OPm6d3YGLP0tVX4J81qScMEY= Received: from AM4PR0902MB1748.eurprd09.prod.outlook.com (2603:10a6:200:96::21) by AM0PR09MB4305.eurprd09.prod.outlook.com (2603:10a6:20b:168::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Thu, 19 Aug 2021 12:58:06 +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.4415.024; Thu, 19 Aug 2021 12:58:05 +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 infinite loop within "ima_match_policy" function. Thread-Topic: [PATCH] ima: fix infinite loop within "ima_match_policy" function. Thread-Index: AQHXlPnZCsK5CNi7NkWxUIAyoKg2DA== Date: Thu, 19 Aug 2021 12:58:05 +0000 Message-ID: <8d17f252-4a93-f430-3f25-e75556ab01e8@viveris.fr> References: <20210819101529.28001-1-liqiong@nfschina.com> In-Reply-To: <20210819101529.28001-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: 259f2904-3f31-495e-b5ad-08d96310fcac x-ms-traffictypediagnostic: AM0PR09MB4305: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3GWgqOUi3k8VWoWH46zBUiRTuLDhfIyauNI9MW8bzjKMKj+lwtHMgjzKi9uesWwFDw5OdConIVO5ClKBSdN0WXARwqIOCb73mC4cOTt8jww3aFP0pVZUaTveiTblwJk5TAH85cgYwxCcanJoWcLelOwc/xT586uAsdnl+MzTZ2yGzurk4tHIDDp6AtgOFeSOan95aR2nWlYtMhbPf5M7wgC7uIfTj3r/XZF3S2JQ9rQD2dGuxoWNCplyF+OdGkU4KBmeJbZB9suKbxwq6Bt70Kkjy3F0Cc11jq421IQ1KKKSKVvue1gTbfH09x1fCGxJinpKwpvY7xp8wdYxeF/TbYEbqHQ5UE6ftpPdcSpaX5aa+roACTuEDfBntnMi1AeNRPh4EZfxva/zKF0S4hQQi4uvhWVYiE0KGPiqiX+fnDv94wkrP+roZC13iKj8S86OHbuVbIL86vSsZUfIsuHmLmh49yfSa5DKFpPxba8fepG+tae4jjhi6QtmA5rjw/aRRvvGT+L/ZHDhTHAjLfII8ObEL/OoGv1zIzUDLNDOkHZLNQuZvoPBh9fwCzzp4lxhP4Mx82cFuk/eqE+9CvXCuMj6rMarJCV1/ymN/ePqvHm8MST4vu1CN31NmN0UEUgiwclDoKfOneU+MXVvmJAeI9kYJjNmC0OHPfoH/WcFawLPFtYLac1PAMzp5ppg6V9AOMwWkkY9Rv5HK2OkgqXXdxvTh8vmEoGH/4M5jH0jYgzUhjLFntV0xbRuV/z+04cG 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)(39850400004)(396003)(376002)(346002)(136003)(366004)(71200400001)(186003)(76116006)(54906003)(36756003)(110136005)(38100700002)(122000001)(31696002)(6512007)(316002)(6486002)(4326008)(2906002)(26005)(5660300002)(53546011)(478600001)(8936002)(31686004)(8676002)(66556008)(66476007)(66446008)(64756008)(86362001)(66946007)(83380400001)(91956017)(2616005)(6506007)(38070700005)(45980500001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cEdjeDYxaWtmUFp2YUFkeC9rWk9tTmNyYlhBS3lEZFA5RUcxZ2l4WXM3OE1w?= =?utf-8?B?aXA5K1o5L3pGU2tDZTF2Q0JsZ05ydnZxek92RmpFa3V6SVk1MUZVMldPdXhC?= =?utf-8?B?VTFwNVhFQWNPT1kvdWZheHg4ZzdLdngzOGhPVTZWMkk3NWY2N1ZDbC9sT1dE?= =?utf-8?B?Smt2RnY0NnkycmN2U2J1MVBWbm5JbUNURy9GRUwvaWpvM28yTUQzQkEvQ3U4?= =?utf-8?B?ajdBZjg5Nkp1QWRNeWFCTEc0cEp4WXBQK1BDOHd1SGtEL3Z6TmNkN1RwUDRJ?= =?utf-8?B?cks5MzYwTkVmdzZWeHduNWxreWZmWlNBeGM2NkZuZks5WHA0NFl0MGRmSHU0?= =?utf-8?B?Y1l4QXZBUE54YW9YeXA5ZnFxN0RKNnlyUG4vSEJndk9vcXhuaWp1WmN5Qi9i?= =?utf-8?B?dGd6eFNBd1ZGWTltRmczOVJTQUtkbXZ5UEZyYjVJNm9melRqVG40amJoVy81?= =?utf-8?B?UTEvRFNQZFhrbmM2V2ZtK3g0Q0w1NGRuakwxNDBQSnBrcWpvWlllUkhqb3h3?= =?utf-8?B?UE4xU21tTzdZRjhua2krK1FadUJJN000SU1qNWNTOXpYQ1VKeFNYb3UwV1BV?= =?utf-8?B?eXozMmsxL3Jjakk3UmNsRjNYK3ZaV3FDeGRZb3lBZ2tqSmh5dVczeU4ydDAv?= =?utf-8?B?RWl0R3k5VTdXQmF0K0JySHUwaUJBMmh5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dESHhTblRWZ1ZXM1lHMkFiQnR4Q2ZnTmZDT0VW?= =?utf-8?B?VmdtUUZiZ21QdWZTcmp3T0dwZnk4YVFseUh0RFZ6bmU1VElYbnNqYjBrcE5j?= =?utf-8?B?bVd1SnZOYW1YRktncDZBcys4eGJQWlZpajdldkI1eHhaS2ZabjBEcWNjYmJ2?= =?utf-8?Q?BYURM/JXorA3+OvSjpiUAqzcn4HfzFs8v6+yBAh?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <16050265F97A7D4B9BE19169411B1A88@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: 259f2904-3f31-495e-b5ad-08d96310fcac X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2021 12:58:05.8300 (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: 432n9fwkfQVRNlQBwAd7MKAzD/nYgWvhQGFnMZXGCL1R6Du2Nk55rGQ53G7uoEoHkFilPYqhUfZoDBHhLb/EPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR09MB4305 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTGlxaW9uZywNCg0KT24gOC8xOS8yMSAxMjoxNSBQTSwgbGlxaW9uZyB3cm90ZToNCj4gV2hl biAiaW1hX21hdGNoX3BvbGljeSIgaXMgbG9vcGluZyB3aGlsZSAiaW1hX3VwZGF0ZV9wb2xpY3ki IGNoYW5ncw0KPiB0aGUgdmFyaWFibGUgImltYV9ydWxlcyIsIHRoZW4gImltYV9tYXRj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