Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp659218lql; Mon, 11 Mar 2024 13:25:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUE2NT3lkrhnV51TIa+j0qNqsZ/qgDwPr5RIpdztJ+VMdPxpLJGFFgCgPP2syknE7vA22iQ73gGKJrWbln/W6HwKAJ2xn8jNMOmIq187g== X-Google-Smtp-Source: AGHT+IFv0Mammz04Syg7m5XhI+SQ64zN7K8eEhfrfScsfQa1mYXRccGVrUG4Ebu4ubUTy+GNYjvX X-Received: by 2002:a05:6512:3188:b0:513:28b3:bd5d with SMTP id i8-20020a056512318800b0051328b3bd5dmr7572lfe.54.1710188747261; Mon, 11 Mar 2024 13:25:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710188747; cv=pass; d=google.com; s=arc-20160816; b=xUoUgdTwS+6AsF25eeDS9aJCQ4VjUG13bYhA4VYe4gNWG0TujICIIK1dCiAIaRYG6G mGNH5WtIp0kHETeuuwlK44dIJI9RKF/cHtYKbt55g7U7LoR+HnpGRLZ9H27xWMSrCH7Z nCO10HIYLoF1qs0umPzClzdhsNESeNIkwBtiUrSnTViksykG5o1MZtbw4T0cLfyRrMNo xOCFKZPD2gWwkplxFzmRqZygw86iXEjoha3l994a42SM4Wk11rhb0KfeSRP5WLBeorXk fOqcF6/H14offymHYK8dg1Bh7rG37mKw/ZbCBUWBLOIj0U/a/a5nM8XKonfJBewLTSqK CfNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=g7a7Yd9Z2FNA7ZNNxwAmkonp9MHBpjW9SwXw2aB1x7Y=; fh=Xbl+Av2giiajvg7+L7p8iEPCvLPwuqAfpJKq2kstcuo=; b=m9biVohWQK1yUsPpemQcPmPfrDnhteKrlWGmdkguQwghtUYrILaPf6ewpmg0epFZjR m6Z2s8uNKrHExwJ5XyceZfaXD9q91vBbcAqjKyv6Ftk1NwWGx4MP9LtA98jHvMJ0KPJ0 64ss2C5alUeuoxaLA1lflT610598Rv19vCcat+x9zvCMiuKYTziHc5uSao844Uhh3P3j P4n4+JJkc1aLW9wFTMuoKgh0LFzRQEvl9AXHD8HfW0Ipk9EpBF4S4GJxGb4CXFNgsWX9 xQ6faPS6rqDdqLmMFmmbj2CjQMxMUQ6U0/UrJrV32sIgTc7KkW1KNoz9Db71VYCT8P5u Z94A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ts5HPB10; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99508-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99508-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ht20-20020a170907609400b00a45ff8278cesi2725668ejc.317.2024.03.11.13.25.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 13:25:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99508-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ts5HPB10; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99508-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99508-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F2DAC1F21D71 for ; Mon, 11 Mar 2024 20:25:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBD6856B62; Mon, 11 Mar 2024 20:25:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ts5HPB10" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E367C56B70; Mon, 11 Mar 2024 20:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710188734; cv=none; b=Ioe9LVk5pON3SnyEnclqvlcSECzzIoJW4kbKhukEQAKf03uwQgmt0G2oL2MkpHoZsKA7FYTy+hGNvtm/PGA5800zpJ1zMKdbMCepbHAH84ZnGI7c3sXAiwc19P2uJs3eBaWkv8+hPWwPEDL4DrADvCvB44HCufv+9f356p3JwO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710188734; c=relaxed/simple; bh=g7a7Yd9Z2FNA7ZNNxwAmkonp9MHBpjW9SwXw2aB1x7Y=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=PGDrYwl8x8TY/xGCvOs8mBuo0bV72woGYYjrVmlRe8wKG3vgyF6zVq0uvelUTPFJq8JhGHOAUqeBbMd5MfgGA/+++Jb7xojZ1umRAmr6L1Z23aFDGrccOCYZaismeYQKopSisKXN7zHs7xDbJwO2TtVYQhdYhM1qio7h1O1Ovpg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ts5HPB10; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E112C433C7; Mon, 11 Mar 2024 20:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710188733; bh=g7a7Yd9Z2FNA7ZNNxwAmkonp9MHBpjW9SwXw2aB1x7Y=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=ts5HPB10Yzocx5ksgB6BXT+IQ91RE0lxy/Cn2rVAmOfCBeg1JKO5qMbDb59q2M/d6 7lOpz73M9iD2r7KBDgSDjbZocgUADPNWhV9Z6CVLLZewE/zuSv91vYPvxcnRgL1XTC rrGy4QHmapS9zrOo6HwBcHMdbP7c0HefCb50lcU5OZQUVqM/PlXmppxU1eGSwZSUbb rKZTD2wjH1vbWvjtiwxSYxMJNnOokgfaqny1AZPdP1ddomWqh1pzICw7ZmOYTZHQwG 9+FG36fiYbDDofOFM4Q/j7GYyLLoTFBxlP3CFjPOZV0a5wAoABPzGegBxJzO8T/6ap nXVQlxNEktOrQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 11 Mar 2024 22:25:29 +0200 Message-Id: Cc: , , , , , Subject: Re: [RFC PATCH v2 3/3] tpm: of: If available use linux,sml-log to get the log and its size From: "Jarkko Sakkinen" To: "Stefan Berger" , , , X-Mailer: aerc 0.17.0 References: <20240311132030.1103122-1-stefanb@linux.ibm.com> <20240311132030.1103122-4-stefanb@linux.ibm.com> In-Reply-To: <20240311132030.1103122-4-stefanb@linux.ibm.com> On Mon Mar 11, 2024 at 3:20 PM EET, Stefan Berger wrote: > If linux,sml-log is available use it to get the TPM log rather than the > pointer found in linux,sml-base. This resolves an issue on PowerVM and KV= M > on Power where after a kexec the memory pointed to by linux,sml-base may > have become inaccessible or corrupted. Also, linux,sml-log has replaced > linux,sml-base and linux,sml-size on these two platforms. > > Keep the handling of linux,sml-base/sml-size for powernv platforms that > provide the two properties via skiboot. > > Fixes: c5df39262dd5 ("drivers/char/tpm: Add securityfs support for event = log") > Signed-off-by: Stefan Berger I'm worried about not being up to date and instead using "cached" values when verifying anything from a security chip. Does this guarantee that TPM log is corrupted and will not get updated somehow? BR, Jarkko