Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2853697ybz; Mon, 27 Apr 2020 05:52:59 -0700 (PDT) X-Google-Smtp-Source: APiQypI5AxdWBr0653O+LzKx05wbz2bvvMae4mfPiMvGMv7Z40k2xBy+nkGUUHgqR287wktRI3mK X-Received: by 2002:a05:6402:1596:: with SMTP id c22mr19262253edv.100.1587991979434; Mon, 27 Apr 2020 05:52:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587991979; cv=none; d=google.com; s=arc-20160816; b=glGAdqQ1DgIdjGi1bRNa4HEDFT131H3S7uu7KBFid4+M87XQn+mydkhL+smmmNjtli Wa0hjfetdGIzurgobXwj8PTguXsjx6d8i5I3i6OCgcnHgHLD8gd7iOYdJqOh3ig1/cVn 8fEB69umHLYgiviTI39CFXJAfWmZA1UAwI9dnVu4fhgIkAU1/7ji4sHgPSwBY4bqHSaf LemGTNy3QzJR/UW3RZn1BKrLLdEbLPF1rt8OZQoXOcwad0cmm+iixdbm1AMdQORHXn2Q natOb15XiqN5Y43nCt6bd8QMNqQdxSCbEwxX6Gd6a7E5fKhEACKENBNqxRtPZt6XSUOG ywrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=2Iav6fE2J4sXJtHIKptKD6hV3G1LcmmuMmyXzznhOOM=; b=Bp41v531nM8lCj69quBGrbxWoP7kfFjZKU7rp8t9/W3vy5HcxoQl2mgquYmY7kC6+s 8I/9dSLp9FUE45ey7mmqD04XDbjczhI1yXqnq1Mt2koylg+KDM0Loh3EJb/8bdQLDzXP b962MbNEUFp4/XWgabg92Eg7AZ53NzeE3TyRjbcL8AMQ6dXhYwg4REQf41/w5w8R4uaI U4SdheU0GBaqEU3X0SzE9IsckdPk4X/ff4sDYO/jggDzWwj5oSxK61ltLbIwzryA/y9q W7g49J80i/I/bryYLpzU2bKH7nVyv2RkuN3W8fxAkBwFwuuPRQTx1Fiv5l8gctp/1Hts 1CyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 cb5si8236918edb.57.2020.04.27.05.52.36; Mon, 27 Apr 2020 05:52:59 -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; 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 S1727769AbgD0Mue (ORCPT + 99 others); Mon, 27 Apr 2020 08:50:34 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2113 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726769AbgD0Mue (ORCPT ); Mon, 27 Apr 2020 08:50:34 -0400 Received: from lhreml706-cah.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 2C9E0CD18E7AF85C7D1E; Mon, 27 Apr 2020 13:50:32 +0100 (IST) Received: from fraeml704-chm.china.huawei.com (10.206.15.53) by lhreml706-cah.china.huawei.com (10.201.108.47) with Microsoft SMTP Server (TLS) id 14.3.487.0; Mon, 27 Apr 2020 13:50:31 +0100 Received: from fraeml714-chm.china.huawei.com (10.206.15.33) by fraeml704-chm.china.huawei.com (10.206.15.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Mon, 27 Apr 2020 14:50:30 +0200 Received: from fraeml714-chm.china.huawei.com ([10.206.15.33]) by fraeml714-chm.china.huawei.com ([10.206.15.33]) with mapi id 15.01.1913.007; Mon, 27 Apr 2020 14:50:31 +0200 From: Roberto Sassu To: David Laight , "zohar@linux.ibm.com" , "rgoldwyn@suse.de" CC: "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Silviu Vlasceanu , Krzysztof Struczynski , "stable@vger.kernel.org" Subject: RE: [PATCH v2 3/6] ima: Fix ima digest hash table key calculation Thread-Topic: [PATCH v2 3/6] ima: Fix ima digest hash table key calculation Thread-Index: AQHWHH8K4uf8EKnxYkeHh4WY3Jdlg6iMq38AgAA0TFA= Date: Mon, 27 Apr 2020 12:50:30 +0000 Message-ID: <90e19242fd8445cf93728c0946c03c19@huawei.com> References: <20200427102900.18887-1-roberto.sassu@huawei.com> <20200427102900.18887-3-roberto.sassu@huawei.com> <84ecd8f2576849b29876448df66824fc@AcuMS.aculab.com> In-Reply-To: <84ecd8f2576849b29876448df66824fc@AcuMS.aculab.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.23.166] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBEYXZpZCBMYWlnaHQgW21haWx0 bzpEYXZpZC5MYWlnaHRAQUNVTEFCLkNPTV0NCj4gU2VudDogTW9uZGF5LCBBcHJpbCAyNywgMjAy MCAxOjAwIFBNDQo+IFRvOiBSb2JlcnRvIFNhc3N1IDxyb2JlcnRvLnNhc3N1QGh1YXdlaS5jb20+ OyB6b2hhckBsaW51eC5pYm0uY29tOw0KPiByZ29sZHd5bkBzdXNlLmRlDQo+IENjOiBsaW51eC1p bnRlZ3JpdHlAdmdlci5rZXJuZWw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