Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp472159imu; Thu, 8 Nov 2018 10:53:30 -0800 (PST) X-Google-Smtp-Source: AJdET5e3CEZY5xDCtm1ccUhurZbpTABQ+uM5ytPVh5yuXDfhQLJ87QeQPJj3WHsVQ0ItcRy/F8mb X-Received: by 2002:a17:902:4481:: with SMTP id l1-v6mr5567327pld.123.1541703210546; Thu, 08 Nov 2018 10:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541703210; cv=none; d=google.com; s=arc-20160816; b=YmrrIMISmbyitsNUQ4ag2Q5+gBQahNsbMG5Ah5DLUUurbvJ+NeXCCs2UqccUR/kIU+ FysDlD0aATWB4lfj6XL9LaarLbM4AZo4xc0Rkvzin8Y8um7xQF+U+KcRn7PIaArtolQC XowE8RDbbzu0MJP+5bsmQe+ccdm4Zl3rI60yCfLqUlHVZBjJ/7XnB5OcsUw3T9CqxFk9 ui/DDpmDIuFXc6W5HqKHVj8q7och/vq0D1vrhq8C+9FhLijM92mv3A5GY4mb9AagPU7I xMWTIU1kuAWu2yUF8GJH63p0oeXkFUGcqbPiCGJ0rpE04rzkx06JLF3daZatMrUpvUe8 3kkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iT9DxYGYCLTkrHOLKWQ/mQZU5dq4ZWmkzeL3gMp0c0w=; b=LMQdXjHYdZjl9qng0W+J4MWCZ3MFpyzgCHfX06KY7NkhqCP5uW7WJvKLVB+GwRiizJ nXHaqcSMSFBg3D1o6VAr01xvriysWs6SJWFqV3iLHkpAcGkpTpwvtTAAmxqmxeJrzhiO 5fAV+40Yr7S2o9WeteqOnLPDvyRi06DMSy0GnZgQQXamMSq79lcGq6URehUYFV2ADdQ3 ri4NJoiJkYc2w7AurmwGQC+NDDlQAeEJqU5jBeYFhhOynmI5UHiw6gaSaf7Ud6gHYD2j YOZBiR4SNKDfXwLaeK6z/8A0rULu+lHxzyf5I29ObsTHZhfEAscShV15qFsIbYp7mNe5 fFXQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b16-v6si4275385pgk.358.2018.11.08.10.53.14; Thu, 08 Nov 2018 10:53:30 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727295AbeKIE3h (ORCPT + 99 others); Thu, 8 Nov 2018 23:29:37 -0500 Received: from mga04.intel.com ([192.55.52.120]:33629 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbeKIE3h (ORCPT ); Thu, 8 Nov 2018 23:29:37 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Nov 2018 10:52:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,480,1534834800"; d="scan'208";a="106464378" Received: from smartikx-mobl2.ger.corp.intel.com (HELO localhost) ([10.249.254.135]) by fmsmga001.fm.intel.com with ESMTP; 08 Nov 2018 10:52:44 -0800 Date: Thu, 8 Nov 2018 20:52:43 +0200 From: Jarkko Sakkinen To: Roberto Sassu Cc: zohar@linux.ibm.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, silviu.vlasceanu@huawei.com Subject: Re: [PATCH v4 6/6] tpm: ensure that the output of PCR read contains the correct digest size Message-ID: <20181108185243.GA20608@linux.intel.com> References: <20181106150159.1136-1-roberto.sassu@huawei.com> <20181106150159.1136-7-roberto.sassu@huawei.com> <20181108140814.GF8922@linux.intel.com> <353ac2d0-591f-f950-f3ad-18e6a4f6085c@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <353ac2d0-591f-f950-f3ad-18e6a4f6085c@huawei.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 08, 2018 at 03:47:39PM +0100, Roberto Sassu wrote: > > > + for (i = 0; i < chip->nr_active_banks && > > > + chip->active_banks[i].alg_id != digest_struct->alg_id; i++) > > > + ; > > > > Not sure if the semicolon should be in its own line. > > scripts/Lindent suggests: > > for (i = 0; i < chip->nr_active_banks && > chip->active_banks[i].alg_id != digest_struct->alg_id; > i++) ; > > but this is not accepted by scripts/checkpatch.pl (there are no > warnings/errors on the patch I sent). Yeah, not a really blocker for me. Reviewed-by: Jarkko Sakkinen /Jarkko