Message ID | 20230427111125.13769-1-jarkko@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp205989vqo; Thu, 27 Apr 2023 04:48:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7dUaWrYal/G8E4HF9pePpUJOo8VDLy7GmHO1nqYw7K6/MQR0eoaoURRHmb3zKq0rleFbjG X-Received: by 2002:a05:6a20:d90b:b0:f0:7b96:b1a4 with SMTP id jd11-20020a056a20d90b00b000f07b96b1a4mr1435481pzb.27.1682596101731; Thu, 27 Apr 2023 04:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682596101; cv=none; d=google.com; s=arc-20160816; b=TCVCQDIPMVEabtqwWEKaL5TipTWCrCX2Y8vzG/yQDJr7ilCLbHsSujDBd6p4Kve67Y P/5egyXsWWwgtfLjIMCItdpu8aPyxnNptQaEAIBzovGtscVxx3jzM2TnHW8mGgmxANka LVsH/uZMw4ha/U8NgqgQi2C3iKKy+lH9ca5IdGT9+CJ7E2iHMiWhsqePEeD85u4ron7z jsYPXpeZoeR39XkRaKajfnJieZh0lEp8CNE8CKNDnNpKI8XnWcG52jwVbGj5hQwVeCZQ 3qEx8qEY/zZLTWEBoflwt9huBb4P9LqM2EF+dBNbu1v8sO5eYqitWGQCrMwOelznuOTL r0DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=g0YBZoWvEJqQT1yqwsJPNjjG8izXKXh2A7MkUHBbFT4=; b=ZAZJSCoQnhyks3jEUg7tc4KuLsYHFdsOUooDGk1NEtSUTziwRmL/+32EmkjXSPDF87 Sdp5h39eAN6+U/L4d5d8DpXceHG7DQ74mYGB3l2RzKDWcLKoBKjzRDXQyxrXPenSlg/G rQEuYkPUWtyBTnMALuhZxmyMLclwbr1F6jWwJwMgL/7gHLybp7D27yRgdnvH677s2R01 JvjSvAvM9QozWRHtd73mTG67G7jz0cU7ynPQs+BOu1VkGTihYGh+WRZ1pq/XI4Vhl2Iz sxAmxu9QQwlptScKiRCZ1cOxS4hR/QGoeycLEE4ZdkoTDJgUBbu2KidzoEd+wDCKc0FV +YdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PFWd5JcZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a76-20020a621a4f000000b0063b858960fasi18261648pfa.127.2023.04.27.04.48.06; Thu, 27 Apr 2023 04:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PFWd5JcZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243501AbjD0LLd (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Thu, 27 Apr 2023 07:11:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243111AbjD0LLb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Apr 2023 07:11:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 955B010F3; Thu, 27 Apr 2023 04:11:30 -0700 (PDT) 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 2C5DB63C9F; Thu, 27 Apr 2023 11:11:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04595C433D2; Thu, 27 Apr 2023 11:11:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682593889; bh=3qkdGkDVhAzlokV4bH3J7Mc6rEoeNzp0/7iDn+iZF8g=; h=From:To:Cc:Subject:Date:From; b=PFWd5JcZvRwQpmplkE0CStlz9cu42zEE+DSGLQAV0CcG5vJkBfc4moTFJH/MAU6zz x190DKJb/iUtYi4YAffeVihCnlvHgrPcyhKc5y372wirHPnBtW2tFu125ELMPBfIbv invITwIm3UtXn5OrN3Zm4ZSvJ/O6SL7ZCxzwKZq7WAi6rVbyq2LT3zx3c1qItx7vAT G2p61VAhNZm+FkZd5fZNu8M5LPEhVf8TFcH8OhjzH7Ur4rTzqTKvKqfZ6WlGgnPr/Q zkCcheVNUWaINF75+nVJwxhQK7KGXgyTyx4G3KYMDjycOPzgQR0SA3CNDn2gUoDmXi JqjH3Ip+nmWtw== From: Jarkko Sakkinen <jarkko@kernel.org> To: Linus Torvalds <torvalds@linux-foundation.org> Cc: Jarkko Sakkinen <jarkko@kernel.org>, Eric Snowberg <eric.snowberg@oracle.com>, Lino Sanfilippo <l.sanfilippo@kunbus.com>, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] tpmdd: a critical bug fix for v6.4-rc1 Date: Thu, 27 Apr 2023 14:11:25 +0300 Message-Id: <20230427111125.13769-1-jarkko@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764329890124998577?= X-GMAIL-MSGID: =?utf-8?q?1764329890124998577?= |
Series |
[GIT,PULL] tpmdd: a critical bug fix for v6.4-rc1
|
|
Pull-request
git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/ tags/tpmdd-v6.4-rc1-fixMessage
Jarkko Sakkinen
April 27, 2023, 11:11 a.m. UTC
The following changes since commit 6e98b09da931a00bf4e0477d0fa52748bf28fcce: Merge tag 'net-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next (2023-04-26 16:07:23 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/ tags/tpmdd-v6.4-rc1-fix for you to fetch changes up to e2f14081c68395f0b0f9072bbf5e56450b1cb3f8: tpm: Re-enable TPM chip boostrapping non-tpm_tis TPM drivers (2023-04-27 14:01:45 +0300) ---------------------------------------------------------------- This PR fixes a critical bug in my first pull request. Link: https://lore.kernel.org/all/ZEjqhwHWBnxcaRV5@xpf.sh.intel.com/ ---------------------------------------------------------------- Jarkko Sakkinen (1): tpm: Re-enable TPM chip boostrapping non-tpm_tis TPM drivers drivers/char/tpm/tpm-chip.c | 22 +++++++++++++++++++--- drivers/char/tpm/tpm.h | 2 +- drivers/char/tpm/tpm_tis_core.c | 2 +- include/linux/tpm.h | 15 +++++++++------ 4 files changed, 30 insertions(+), 11 deletions(-)
Comments
On Thu, Apr 27, 2023 at 4:11 AM Jarkko Sakkinen <jarkko@kernel.org> wrote: > > This PR fixes a critical bug in my first pull request. That doesn't work AT ALL. You have this duplicated line - TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), + TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), + TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), + TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), in that patch (presumably due to some edit-time fat-fingering), which causes lots and lots of ./include/linux/tpm.h:285:9: error: redeclaration of enumerator ‘TPM_CHIP_FLAG_FIRMWARE_UPGRADE’ 285 | TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/linux/tpm.h:284:9: note: previous definition of ‘TPM_CHIP_FLAG_FIRMWARE_UPGRADE’ with type ‘int’ 284 | TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/linux/tpm.h:286:9: error: redeclaration of enumerator ‘TPM_CHIP_FLAG_FIRMWARE_UPGRADE’ 286 | TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ errors. While I could easily just remove the duplicated lines in my merge, that would make things non-bisectable, so I unpulled this instead. Linus
On Thu Apr 27, 2023 at 6:38 PM EEST, Linus Torvalds wrote: > On Thu, Apr 27, 2023 at 4:11 AM Jarkko Sakkinen <jarkko@kernel.org> wrote: > > > > This PR fixes a critical bug in my first pull request. > > That doesn't work AT ALL. > > You have this duplicated line > > - TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), > + TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), > + TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), > + TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), > > in that patch (presumably due to some edit-time fat-fingering), which > causes lots and lots of > > ./include/linux/tpm.h:285:9: error: redeclaration of enumerator > ‘TPM_CHIP_FLAG_FIRMWARE_UPGRADE’ > 285 | TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ./include/linux/tpm.h:284:9: note: previous definition of > ‘TPM_CHIP_FLAG_FIRMWARE_UPGRADE’ with type ‘int’ > 284 | TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ./include/linux/tpm.h:286:9: error: redeclaration of enumerator > ‘TPM_CHIP_FLAG_FIRMWARE_UPGRADE’ > 286 | TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7), > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > errors. > > While I could easily just remove the duplicated lines in my merge, > that would make things non-bisectable, so I unpulled this instead. > > Linus My bad, please do not. I'll send a new one, cherry pick gone wrong :-( BR, Jarkko