Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2546775lqb; Tue, 28 May 2024 03:29:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGqot+so2zPPNOmzdI+KLUh+9qlfreUrY9DDcnhugabikUxKcAn3qlpvbc1tWasi9ZGcp/83c3Iw3dOZjwEf+RConKgZgWEnLMckYBpg== X-Google-Smtp-Source: AGHT+IEyNiiotiLMf5lbGcgEK2bzyZ/iDliQt3S8/Is4k1wwaRBTxJjaa9qJ0goEETOzZX55QtKC X-Received: by 2002:a05:6830:1d4c:b0:6f8:cb83:1bba with SMTP id 46e09a7af769-6f8d0a7403amr11712886a34.14.1716892147093; Tue, 28 May 2024 03:29:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716892147; cv=pass; d=google.com; s=arc-20160816; b=YA7TT1Venbk9oUyPdHM+4PLhwm6bP5jDZP2lKW6AKKK4jKElmda348/oYXy/rzCpzw bWuzxyKYCpVoXO1ormZ59m/O9pLCX/ttyDDIRFDHP+bcSSW3ZbmZWHCMSBcafE2FiEa5 r4E77F2Gg9ik5/OL4exY3HBfqKxSpOBFlVaLNz9msx2NegCp1IOo0cjSESpdAye8MqCe v+6HEdILrtlf7Kwa2pEgsYZIQy5ckyXqm5dWFyHAZXCmz0QffFQ+OgPp7ZloRr1lX0oh 9c+d8nBeAt4PMFAneURCvJ18UbgAcZKvLjkecQL5u/Qzp9H9T7b9yrtBtkM+VqNzuQyn Vm8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:cc:message-id:date:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=M4t+2mNufsKtGDUGZwtdNVhni5MPlDC5iMwHSCxTksc=; fh=2weMewrA7Ss5pNhKYOcdP49X4jxaTMh1bjDA0tJlB1Q=; b=vsvpz6IDiC5zVR8tHdY2U6dnxSQfiHvpfvgi89en5dt4IECPcnyuRW1u/BD28wGIR3 +vVy4j6cZs9G4Lr+yfPJHjFCDVIAQOXS5mhcc4OACuhZz9tjABr2OkdoPMK4q1YWytN7 beKT/jV5YfeQ8FzsJB1xtfADLOCGpnsindP8xDFNPOTcW5qn8tTgBSro59q9OiSKUKit vkBOIxgGOCouzZyS2JHdVuvR7gUo8X/SuDtz7DHlTYFx5bHr1VFo2QYo7YoYeyCo2ocV 1bY3k2K9m1jB1DqgNCwCmoXXl165ldIY7LtbWYXy0a0NcfyiWUe9ePH76i5k6Z8MyS+S noSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cmZAJ0vr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192117-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192117-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fdbe08318si6587671cf.130.2024.05.28.03.29.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 03:29:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192117-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cmZAJ0vr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192117-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192117-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C0B211C22E1E for ; Tue, 28 May 2024 10:29:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7430316B73C; Tue, 28 May 2024 10:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cmZAJ0vr" 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 97DAB13CABD; Tue, 28 May 2024 10:29:00 +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=1716892140; cv=none; b=Pz4wc+FKkpAAImUAtmudljcCeKYDNX321MAoLGQNxli8NfXPZl7HVdRPT0nuLO4vkXa62ozlVHhZDKb8vTCo9EPvTDm8BK21kiMjEYWSRMAWZxaFLOvrMAzLwGDDLmTRepUiM2vLb0T+OgpGA23CxeXUWUJuKU9/d5B5jCwq7w0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716892140; c=relaxed/simple; bh=2tllxKCFXVlZmMchKrFmmyFaiwTKz5SDQsRsrUjsJUQ=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To; b=fuZ6TsRy3LDqHQA3dP/5GH+B1kvcqD7NIJCvbUwW/3n6XCza5ieXb/6bUHbxPQWB/Q2EMXAUC8eLMI8akwv5awZizQRmDtkE314URuk4uW77Ea0sPrT94CgguNuBtjs7N6AgLbSIbhqrQVjqfMUmw2H2p3RwzETfVXbKfV+7jLA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cmZAJ0vr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D332C3277B; Tue, 28 May 2024 10:28:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716892140; bh=2tllxKCFXVlZmMchKrFmmyFaiwTKz5SDQsRsrUjsJUQ=; h=Date:Cc:Subject:From:To:From; b=cmZAJ0vrr4PVHYgEixnoGK86FFq5NzMMyUA+uvIlXb2LbmFg2ob0NfUT96DYIvD/8 a55kaNvah8aBiqs9pMlKSDBFBwA/SL5Si5NX9f29e46DKxmR6fiM66mpELbU2Rw3Z6 xr29ISTvsz3hs7AejahI82DWK7rGG750/ANXOJM+3EfDZRnLq6NmrfO3TkdTC7jHF2 wK+iuhdOJPDG7Kiuq8HHREHNXf9jPfYGQSawFb0Xrs6vmrXmA1PSgQVdLga3KEQM3M jjhh5VYs90ltkWpQjqq7AJ2it+eqgb/AgVVvSxA2OYMbFD0Vp3FuDiVZbGgxsuhLeA JY72UrxJQyHJA== 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: Tue, 28 May 2024 13:28:57 +0300 Message-Id: Cc: "Peter Huewe" , "Jason Gunthorpe" , "David Howells" , , , Subject: [GIT PULL] TPM DEVICE DRIVER: tpmdd-next-6.10-rc2 From: "Jarkko Sakkinen" To: "Linus Torvalds" X-Mailer: aerc 0.17.0 The following changes since commit 2bfcfd584ff5ccc8bb7acde19b42570414bf880b= : Merge tag 'pmdomain-v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kern= el/git/ulfh/linux-pm (2024-05-27 08:18:31 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git tags= /tpmdd-next-6.10-rc2 for you to fetch changes up to d3e43a8fa43effdbb62c7edc206df7ac67772205: tpm: Enable TCG_TPM2_HMAC by default only for X86_64 (2024-05-28 13:14:29= +0300) ---------------------------------------------------------------- Hi, This PR fixes two unaddressed review comments for the HMAC encryption patch set. They are cosmetic but we are better off, if such unnecessary glitches do not exist in the release. The priority part of this PR is enabling the HMAC encryption by default only on x86-64 because that is the only sufficiently tested arch. Finally, there is a bug fix for SPI transfer buffer allocation, which did not take into account the SPI header size. BR, Jarkko ---------------------------------------------------------------- Jarkko Sakkinen (3): tpm: Open code tpm_buf_parameters() tpm: Rename TPM2_OA_TMPL to TPM2_OA_NULL_KEY and make it local tpm: Enable TCG_TPM2_HMAC by default only for X86_64 Matthew R. Ochs (1): tpm_tis_spi: Account for SPI header when allocating TPM SPI xfer buff= er drivers/char/tpm/Kconfig | 2 +- drivers/char/tpm/tpm-buf.c | 26 -------------------------- drivers/char/tpm/tpm2-cmd.c | 10 +++++++++- drivers/char/tpm/tpm2-sessions.c | 21 +++++++++++++++++++-- drivers/char/tpm/tpm_tis_spi_main.c | 3 ++- include/linux/tpm.h | 17 ----------------- 6 files changed, 31 insertions(+), 48 deletions(-)