Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2893704pxb; Sat, 30 Jan 2021 19:38:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMbefWK9z5rdGDPyOKP1+XuDMtZC7AEqCZTkd3xai9Kb0y6d3PzVul0aKyBIM3KkUIX1Vq X-Received: by 2002:a17:906:4712:: with SMTP id y18mr438820ejq.529.1612064307185; Sat, 30 Jan 2021 19:38:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612064307; cv=none; d=google.com; s=arc-20160816; b=hlh/lRTw4/mvGTQG2W/vt+9XfV3AW0KbwSPUJTDv88aSQeP9kwvrHUyo1jpojm7hFj 7pp/SkR3DvJ0T8rYD3hzvY3ybb8Fwbfj+ClFVk/PreeN3YLCrizbQyuaN1ezdyL5vtUv qytiQObuVDMNwDUEQMc5+gdIrXugEtYrwrV/a5IqFDG09olahJpFa4H0isl1oQzIXq/O +G+M+g/D9xlwgrA/F812IpHqbLe6yvQaXDjcn09TeR2+5K1C71PbH1WHFN93KqUQ7TSf 1A+IVyBl03szHce9gTjQkCDV3ggZd6W/3AKyANGAZwBlnigmri/u9kmgIQbLYexYUlJ+ uPgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:sender:dkim-signature; bh=F27/alWbAdY5pzgWHW1aHA9zMjtd0JKL5T3JVsGe7ps=; b=d/JM5R8MWp3+gqVj/tlS35AYznPDEwZfCDQek7zQ8w8NW6aiEt1yVvRwKc5JitYf9b O2zmP87SKDL1tBDPxBBXg49E3cFYmh9qAS6wASbNBNQRfzU+cKYZNRHhj7rFmbVJjm/Y tNqX/k0MgpInRXsEN9jKrXUu38c3DztK2AI2wPuOfcdR9SXjJfD8R+8qeqi8V8mPmDW1 z6Mg5enn7M8RnAcFkeZkRvVpG/+zifXwRCt8iRgPLz62vyslwGwMDDEvQzBQKFx0B/GD gdfWIL6oErDp5k+Cz46yJcrQaOVNDpL8C3tQxkKOfUWMuFhoYg+EgXo5GwwZiVnJoKiz BhYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hiqfjpky; 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 t16si7699254ejj.217.2021.01.30.19.37.57; Sat, 30 Jan 2021 19:38:27 -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=@gmail.com header.s=20161025 header.b=Hiqfjpky; 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 S229810AbhAaDhW (ORCPT + 99 others); Sat, 30 Jan 2021 22:37:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbhAaDhV (ORCPT ); Sat, 30 Jan 2021 22:37:21 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B8D3C061574; Sat, 30 Jan 2021 19:36:41 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id j25so14876097oii.0; Sat, 30 Jan 2021 19:36:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=F27/alWbAdY5pzgWHW1aHA9zMjtd0JKL5T3JVsGe7ps=; b=HiqfjpkyA5cKm7HbwZmjvIfr2AwX/dvT/0wUFcgD282PnJPCXVEwY5HehNBJLYqa0f 9kkRZVmBpNpKYbEpdM4nbf86Ms0DzGzwak/qgd0b8Uu8XdJJVLHdSgbbeVypiTy3oLm1 8tvWkMU97dSMsc8GjOw9Fco+bJT56Tj4crs+ICQh0yOh0lOGiBIicCxg53oFokBVqE2T PjUNm4nilaym+JYjSjvhzcQNff2+9C6Z0DSDTIVrQDj/IbEEybYjiTXCpgHVSwePAuFG oowKKOH1LmuKV1X0NZuoX66nOtDqX77EsvYrQEwXM4fcMyJ/0XFQ6Y2XiMMPhnw9db+S TqSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=F27/alWbAdY5pzgWHW1aHA9zMjtd0JKL5T3JVsGe7ps=; b=hChHHLtYZEuHn9HlaChe+vWT4ZWXDkiqbUTbWbg/rTklAi3f2pRu7ggOwRJWFOCXkn 1nr4fj2wbeWkuy+ALaJ1fhkdSYifNPZOYJMSGvkRNOIuoNihwdqbLtSXTieSNadAGyVf KVHf6mnpQXJOVJo7b+OGm0+ONNX5Ze3g821Ce7rZMzFUxfwcP4bcOZhieuv3cGlO5zPE joVoW2dJdUMZVIziWWiSY8kcvk9uLIYBDRj8CgudeFvcLqRuBAqNBJgsgDQMThG9d1Zx 4dYIgMJhwCnvq1M5rniITydkQWW8qn+++QJ21FLJc49K+hfRfsohomjTnWtaNzW5aN6C 2kxA== X-Gm-Message-State: AOAM5316Ojw76DvVJtchqz8wYKFXb2sCj+BPcrZpV/fccJaB4mGzMNp1 tN/Y8RGMyVosmjmqcJ5q4Zs= X-Received: by 2002:aca:d883:: with SMTP id p125mr7090228oig.114.1612064200745; Sat, 30 Jan 2021 19:36:40 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id g13sm3108230otr.74.2021.01.30.19.36.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Jan 2021 19:36:39 -0800 (PST) Sender: Guenter Roeck Subject: Re: [PATCH] tpm_tis: Add missing start/stop_tpm_chip calls To: James Bottomley , Jarkko Sakkinen , =?UTF-8?Q?=c5=81ukasz_Majczak?= Cc: Peter Huewe , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Radoslaw Biernacki , Marcin Wojtas , Alex Levin References: <20210123014247.989368-1-lma@semihalf.com> <20210125171846.GA31929@roeck-us.net> <7a702108-ec9e-b2e2-be89-3590437c0eb5@roeck-us.net> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKk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VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: <57e79e19-fe5c-7d41-ff30-40afbaa7a96d@roeck-us.net> Date: Sat, 30 Jan 2021 19:36:37 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/30/21 4:41 PM, James Bottomley wrote: > On Sat, 2021-01-30 at 15:49 -0800, Guenter Roeck wrote: >> On 1/29/21 2:59 PM, Jarkko Sakkinen wrote: >>> On Tue, Jan 26, 2021 at 04:46:07PM +0100, Ɓukasz Majczak wrote: >>>> Hi Jarkko, Guenter >>>> >>>> Yes, here are the logs when failure occurs - >>>> https://gist.github.com/semihalf-majczak-lukasz/1575461f585f1e7fb1e9366b8eceaab9 >>>> Look for a phrase "TPM returned invalid status" >>>> >>>> Guenter - good suggestion - I will try to keep it as tight as >>>> possible. >>>> >>>> Best regards, >>>> Lukasz >>> >>> Is it possible for you try out with linux-next? Thanks. It's a >>> known issue, which ought to be fixed by now. >>> >>> The log message is harmless, it'a warning not panic, and does not >>> endanger system stability. WARN()'s always dump stack trace. No >>> oops is happening. >>> >> >> There is a note in the kernel documentation which states: >> >> Note that the WARN()-family should only be used for "expected to >> be unreachable" situations. If you want to warn about "reachable >> but undesirable" situations, please use the pr_warn()-family of >> functions. > > It fits the definition. The warning only triggers if the access is in > the wrong locality, which should be impossible, so the warning should > be unreachable. > Thanks a lot for the clarification. So a warning traceback in the kernel doesn't necessarily suggest that there is a serious problem that should be fixed; it only means that some code is executed which should not be reachable (but is otherwise harmless). That makes me wonder, though, if it would make sense to mark such harmless tracebacks differently. The terms "warning" and "harmless" sound like a bit of a contradiction to me (especially for systems where panic_on_warn is set). Thanks, Guenter