Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1461977lqo; Sat, 18 May 2024 04:28:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWNxapUX/wZQ4RWTNi7dYNwaRuUxGBnZC/KGq7Un8v/7M4vrmFE0AK8BXFI1LH25MdesfFguP8zw+xdcm0qVZwAnf302+g3O10M4ZToA== X-Google-Smtp-Source: AGHT+IGPW1P7FYM1LquuFOhUehGgU0OYj+bxRUperYmBDYHdwMkDT55Nht7Fy+Vyw/MtGxd2ePi6 X-Received: by 2002:a05:6a20:5602:b0:1af:acf6:f790 with SMTP id adf61e73a8af0-1afde1b6ebamr26389866637.48.1716031684834; Sat, 18 May 2024 04:28:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716031684; cv=pass; d=google.com; s=arc-20160816; b=CveJZLdFcbcJOckin/co4WMLEoYIbJAcA7meXZmW1LYhCenOXVkB33Wj5QZbMmRB6r 8131o/Kt8Fl/ajG4Bd4oVOudzJN6qhhFTlt0YVq8YIw1/3079jSSy/4i/J5Y3LVOWhCP QQC10PaWKapQEeSInklDp0jrxgpfPyzzkRZtz9r1Gu+euwoZPgOHXg1yF7FZtbUfve7x m59C2ksNgtuLaYKZZmVBWkP7z55fZrezKJUwGoPMbNUsKR53TCNEjOYSG5120cFJIukD GuT0w8WRl6Q1CHGpHasCnN7oTJ+VO4rfvVDyum4O0383F0prt9j1y+i+unu/T4fOaHDA QZjg== 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=9ZNAATV4oJlCZ9s3mcKKz8T1GNNqXp7QRgUnjBYsaeU=; fh=VVWo5b8FSBqt5XBpdAxwlAq8rXwo84cmjz02zmiGhnY=; b=ql+7cFv3EA25sVLG7Oa+rNYYuvc9PO+WcZhR1UkmKRC0xPV7tVYnVT+mzTenWfujqz Wl+O8BlvzI8V45+hqstyWmGvDoWGAnsWeWYBc/yh/+9KpGF33EoFiJ54p7c8nevKuJDV G5+toayVDIiy/LdX8qmuhSu+7I1S1/z/Z64/6lZ80a7eaBgV7qqJPZPvYNb35q7HPX4o G2oAgMKpFUxNta7BaL9J7D0J1f4QJ1Uw3VEgnn+QmuoI/PyN2umNelmv6Wpbhu6V9c95 YWkMosx1p9UeJ6IXAenCjnzOKukurAJQCBp9j02bS6MWkLZ8OR9bUFMTA0F39uP5bQOz sULg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oETXNJqZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182829-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aee5dbsi512997b3a.147.2024.05.18.04.28.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 04:28:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182829-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oETXNJqZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182829-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182829-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 654AC2822DB for ; Sat, 18 May 2024 11:28:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28A1528DDF; Sat, 18 May 2024 11:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oETXNJqZ" 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 4DEBF22079; Sat, 18 May 2024 11:27:57 +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=1716031678; cv=none; b=nU3Pt7099FVh51tr9oJChfa4WtT6UVRlC8r4M8qqAd/kAz8CFK0n8KXKyy+MST4DXnpNgXOd2vKMOHTHnnVUKFJ1wKJ1EJuXYGbtyjK+2IZ+KEc5rPgFQcDUSZkDQq//6cMXoN/omzliGUtBDexHXPRG4DUETP+oG382vkyouTs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716031678; c=relaxed/simple; bh=DSiwIrn4SE/zp/8AK9oz+97KO4hgc4iAT3wlLd/xSWA=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=ifrZSIcSSRHL9dZcy3Mt23V5+vYAjgoiv4jmMIXqbEKl+kBrUn+zE2uO2c/LBk9ZFmRzQU2+kVI1n4Xa1K0bK+YDfPU+xMxbKVRLUJpKDFwMP4yUJWxY5BAkrKpRsoCGggS/8U/XvONE00a5sTg1TjNeUndU/y3fCx3s4vxnFII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oETXNJqZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D982C113CC; Sat, 18 May 2024 11:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716031677; bh=DSiwIrn4SE/zp/8AK9oz+97KO4hgc4iAT3wlLd/xSWA=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=oETXNJqZH76GuSx1Nw5cJwJkm1LspY/0SY7I7t/2jDfrDBnJaFYrEAQS56ekvyL0W 7xGTqg0lMYaaKWGUCtS5cORRAlNgfedNQLqDHf6lDGqYuoOF+JR9piPevT3iqvMV/f EeymFf4zjm8Ocn+CqIWvc9iM4jljVdwn7lfBN4GFM/E2kNsqB5nmtKPv5QypMRZ+XG b71Ew0Gpgo37fYm2q01DNX8lKG1eTLw/yp9FaFSyE0tQBm88Yzh5lH0JR0Wv08i+Cs eqrxsVYNaT1Ii0TKtZDOhn95pCeniUYeAJaeaj2lzOB0YlE5u6o0TJ5ew3pwpg5pe+ bzr2fR/4bJ3yA== 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: Sat, 18 May 2024 14:27:54 +0300 Message-Id: Cc: , , , Subject: Re: SLB9670 TPM module crash From: "Jarkko Sakkinen" To: "Jarkko Sakkinen" , "Parthiban" , X-Mailer: aerc 0.17.0 References: <7955419c-ccc2-4a20-8ff5-07b119258415@linumiz.com> In-Reply-To: On Sat May 18, 2024 at 2:25 PM EEST, Jarkko Sakkinen wrote: > On Sat May 18, 2024 at 2:21 PM EEST, Parthiban wrote: > > Dear James Bottomley, > > > > The following crash is observed in the current mainline kernel and I ha= ve tried the > > git bisect to narrow it down. Bisect points to the below commit, which = got merged as > > part of [1]. I tried reverting the below commit and the TPM loads fine. > > > > commit 1b6d7f9eb150305dcb0da4f7101a8d30dcdf0497 > > Author: James Bottomley > > Date: Mon Apr 29 16:28:07 2024 -0400 > > > > tpm: add session encryption protection to tpm2_get_random() > > =20 > > If some entity is snooping the TPM bus, they can see the random > > numbers we're extracting from the TPM and do prediction attacks > > against their consumers. Foil this attack by using response > > encryption to prevent the attacker from seeing the random sequence. > > =20 > > Signed-off-by: James Bottomley > > Reviewed-by: Jarkko Sakkinen > > Tested-by: Jarkko Sakkinen > > Signed-off-by: Jarkko Sakkinen > > > > drivers/char/tpm/tpm2-cmd.c | 21 +++++++++++++++++---- > > 1 file changed, 17 insertions(+), 4 deletions(-) > > > > [ 11.551988] tpm_tis_spi spi0.1: 2.0 TPM (device-id 0x1B, rev-id 22) > > [ 11.563036] spi_master spi0: will run message pump with realtime pri= ority > > > Explanation and workaround: https://lore.kernel.org/linux-integrity/D1C1K= L7Q27P9.39BH0Z4EMBBUG@kernel.org/ Oops completely wrong for this issue! Sorry I overlooked. So fix is in progress for __request_module() issue. See this discussion for reference: https://lore.kernel.org/linux-integrity/119dc5ed-f159-41be-9dda-1a056f29888= d@notapiano/ BR, Jarkko