Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp727417pxb; Fri, 14 Jan 2022 15:08:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWI8DbSEkc8obCF+ODdSeIatCPq/jBPf0Zuvo6BTpPi08jN0zNEBu67sDpYy0NhsKlQJf1 X-Received: by 2002:a63:4456:: with SMTP id t22mr3002910pgk.52.1642201682057; Fri, 14 Jan 2022 15:08:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642201682; cv=none; d=google.com; s=arc-20160816; b=JUaMTj831qKmrIVdAoiG6F09yO6hIEk9j5A3+uZ2ZvQztcvQiHAMwKVf8stwVyHHGr OyN3jpB2C865b8qvvSRNvtAM7nIWecgXjwb2ahgnGcOJZFKnrRc31W8I0pFVhbZtGxcu GUZRqnDUwovaxORc09ti1T77Jbh/2jRDABKOxHuSc1x6U5ubU+rUtxy6FdCQT+XKdeoZ 12XsKrhTSu/mXQ3z/fhQuRurX0VA6zTA0/g7WDjRGowSJMJy1d+j3jGBr229KfnLYvyp w57iBrhcyu7+2EMb4yKvKbxPZ8J2f8wwVEf3AIU53JF1hFqoMGC6W1NMn4hH4cpe5SoT KL7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=b0OCXQtY1ARfkIjXqN5g/4vfdc5KwANHqx+6iEu8f0E=; b=fT+RmI1BCPxkgvl2uFh/Ag2oHNU7QuBO56BIRjE2rFhXBQZzinhspSe4ahKb3tZNUx UsOtebKsi2iHIZuYbOmRHsLHBoHWG7cNjcouVEMuCqjYKv0AR0Y9cHnyfloNa8AiQTso /aYvylmTFSeII5J1ebkggcUBMUwM3VRx4EkHHJkRp2DVPVo4zDTKmEKi55qRTlzOF1wl VZ74stkMBHpNSTo902DSyBQX1ZyryB+oKnqVHTUMvf77Ukz5ebys0a5QesbAb+swrSpB QFI+jMvdLRM74j28zay+WPisELvkEtgbVkDnrECxMNL3JSTHFinAEJr+eIr4PTcqT1hL FIIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NXEylpgU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ne24si11637637pjb.106.2022.01.14.15.07.49; Fri, 14 Jan 2022 15:08:02 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=NXEylpgU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbiANVNC (ORCPT + 99 others); Fri, 14 Jan 2022 16:13:02 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:47966 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbiANVNA (ORCPT ); Fri, 14 Jan 2022 16:13:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 41BC061F6E; Fri, 14 Jan 2022 21:13:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26D6DC36AE5; Fri, 14 Jan 2022 21:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642194779; bh=niJzjtKa24M/K9SaTRk1489GynPFKKY7X52fQyZqBjA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NXEylpgU00kAF987ah7HC5CJVS97UihExbToSPmKKjPX6YV4LuqbiAoRoz9TAnFkf K1aaU3L0a/xWKZGmsYpF56VN2CH9RtI/3NXqiH8bOALYd+zhYr/8hwxWqBT5Bi+vS/ ngx2MdIqZ/bL7kRhEiM9GHt/phpk9aJLp0ULZAF+xaGFD6wqUfBL4oeUXUeot2hRQJ 9lNVAOisVRppl8mt+XWbSsyw33s6ASldILhE3IkKxUsuoFuDLFpJQ5173cEognDBXl CcXWk/l+VdM+hoB6niGS6QKDLseoqyAt9VdxVwWwMiyuXLWPzlGP41OvqC/0By3uXC LJgldWTdYeSOQ== Date: Fri, 14 Jan 2022 23:12:46 +0200 From: Jarkko Sakkinen To: Tadeusz Struk Cc: Tadeusz Struk , Jason Gunthorpe , linux-integrity@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org, stefanb@linux.ibm.com Subject: Re: [PATCH v3 1/2] tpm: Fix error handling in async work Message-ID: References: <20220111055228.1830-1-tstruk@gmail.com> <3c2eeee7-0d3e-8000-67ad-3054f229cbe0@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 14, 2022 at 11:07:22PM +0200, Jarkko Sakkinen wrote: > On Wed, Jan 12, 2022 at 10:47:29AM -0800, Tadeusz Struk wrote: > > On 1/12/22 10:35, Jarkko Sakkinen wrote: > > > These look good to me! Thank you. I'm in process of compiling a test > > > kernel. > > > > Thanks Jarkko, > > You can run the new test before and after applying the change and see > > how it behaves. Also just noticed a mistake in the comment, sorry but > > it was quite late when I sent it. > > > > + /* > > + * If ret is > 0 then tpm_dev_transmit returned the size of the > > + * response. If ret is < 0 then tpm_dev_transmit failed and > > + * returned a return code. > > + */ > > > > In the above could you please replace: > > > > s/returned a return code/returned an error code/ > > > > before applying the patch. I would appreciate that. > > Please send new versions, there's also this: > > def test_flush_invlid_context() > > I'd figure "invlid" should be "invalid" > > You can add, as these changes do not change the semantics of the > patches: > > Tested-by: Jarkko Sakkinen > > It's always best if you author the final version, as then a clear > reference on what was accepted exist at lore.kernel.org. Maybe it is good to mention that the test environment was libvirt hosted QEMU using swtpm, which I tried for the first time, instead of real hadware (libvirt has a nice property that it handles the startup/shutdown of swtpm). I managed to run all tests so I guess swtpm is working properly. /Jarkko