stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo
@ 2023-08-10 18:24 Jarkko Sakkinen
  2023-08-11  7:21 ` Takashi Iwai
  2023-08-14 22:39 ` Jerry Snitselaar
  0 siblings, 2 replies; 8+ messages in thread
From: Jarkko Sakkinen @ 2023-08-10 18:24 UTC (permalink / raw)
  To: linux-integrity
  Cc: Linus Torvalds, Jarkko Sakkinen, stable, Takashi Iwai,
	Lino Sanfilippo, linux-kernel

By large most of the entries in tpm_tis_dmi_table[] are for Lenovo laptops,
and they keep on coming. Therefore, disable IRQs categorically for Lenovo.

Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test")
Cc: <stable@vger.kernel.org> # v6.4+
Reported-by: "Takashi Iwai" <tiwai@suse.de>
Closes: https://lore.kernel.org/linux-integrity/87il9qhxjq.wl-tiwai@suse.de/
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
---
This will be included into v6.5-rc6 PR, as long as Takashi ack's it. I'm
planning to send tomorrow morning (GMT+3).

BR, Jarkko
 drivers/char/tpm/tpm_tis.c | 34 ----------------------------------
 1 file changed, 34 deletions(-)

diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
index 3c0f68b9e44f..dd0f52d35073 100644
--- a/drivers/char/tpm/tpm_tis.c
+++ b/drivers/char/tpm/tpm_tis.c
@@ -132,42 +132,8 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = {
 	},
 	{
 		.callback = tpm_tis_disable_irq,
-		.ident = "ThinkPad T490s",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T490s"),
-		},
-	},
-	{
-		.callback = tpm_tis_disable_irq,
-		.ident = "ThinkStation P360 Tiny",
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkStation P360 Tiny"),
-		},
-	},
-	{
-		.callback = tpm_tis_disable_irq,
-		.ident = "ThinkPad L490",
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L490"),
-		},
-	},
-	{
-		.callback = tpm_tis_disable_irq,
-		.ident = "ThinkPad L590",
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L590"),
-		},
-	},
-	{
-		.callback = tpm_tis_disable_irq,
-		.ident = "ThinkStation P620",
-		.matches = {
-			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkStation P620"),
 		},
 	},
 	{
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo
  2023-08-10 18:24 [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo Jarkko Sakkinen
@ 2023-08-11  7:21 ` Takashi Iwai
  2023-08-11  7:22   ` Takashi Iwai
                     ` (2 more replies)
  2023-08-14 22:39 ` Jerry Snitselaar
  1 sibling, 3 replies; 8+ messages in thread
From: Takashi Iwai @ 2023-08-11  7:21 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: linux-integrity, Linus Torvalds, stable, Takashi Iwai,
	Lino Sanfilippo, linux-kernel

On Thu, 10 Aug 2023 20:24:33 +0200,
Jarkko Sakkinen wrote:
> 
> By large most of the entries in tpm_tis_dmi_table[] are for Lenovo laptops,
> and they keep on coming. Therefore, disable IRQs categorically for Lenovo.
> 
> Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test")
> Cc: <stable@vger.kernel.org> # v6.4+
> Reported-by: "Takashi Iwai" <tiwai@suse.de>
> Closes: https://lore.kernel.org/linux-integrity/87il9qhxjq.wl-tiwai@suse.de/
> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
> ---
> This will be included into v6.5-rc6 PR, as long as Takashi ack's it. I'm
> planning to send tomorrow morning (GMT+3).

Feel free to take my ack:

Acked-by: Takashi Iwai <tiwai@suse.de>

I'll build a test kernel and ask reporters for testing the fix, too.

Thanks!


Takashi

> 
> BR, Jarkko
>  drivers/char/tpm/tpm_tis.c | 34 ----------------------------------
>  1 file changed, 34 deletions(-)
> 
> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
> index 3c0f68b9e44f..dd0f52d35073 100644
> --- a/drivers/char/tpm/tpm_tis.c
> +++ b/drivers/char/tpm/tpm_tis.c
> @@ -132,42 +132,8 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = {
>  	},
>  	{
>  		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkPad T490s",
>  		.matches = {
>  			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T490s"),
> -		},
> -	},
> -	{
> -		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkStation P360 Tiny",
> -		.matches = {
> -			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkStation P360 Tiny"),
> -		},
> -	},
> -	{
> -		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkPad L490",
> -		.matches = {
> -			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L490"),
> -		},
> -	},
> -	{
> -		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkPad L590",
> -		.matches = {
> -			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L590"),
> -		},
> -	},
> -	{
> -		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkStation P620",
> -		.matches = {
> -			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkStation P620"),
>  		},
>  	},
>  	{
> -- 
> 2.39.2
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo
  2023-08-11  7:21 ` Takashi Iwai
@ 2023-08-11  7:22   ` Takashi Iwai
  2023-08-11 16:49     ` Jarkko Sakkinen
  2023-08-11 15:26   ` Takashi Iwai
  2023-08-11 16:47   ` Jarkko Sakkinen
  2 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2023-08-11  7:22 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: linux-integrity, Linus Torvalds, stable, Lino Sanfilippo,
	linux-kernel

On Fri, 11 Aug 2023 09:21:09 +0200,
Takashi Iwai wrote:
> 
> On Thu, 10 Aug 2023 20:24:33 +0200,
> Jarkko Sakkinen wrote:
> > 
> > By large most of the entries in tpm_tis_dmi_table[] are for Lenovo laptops,
> > and they keep on coming. Therefore, disable IRQs categorically for Lenovo.
> > 
> > Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test")
> > Cc: <stable@vger.kernel.org> # v6.4+
> > Reported-by: "Takashi Iwai" <tiwai@suse.de>
> > Closes: https://lore.kernel.org/linux-integrity/87il9qhxjq.wl-tiwai@suse.de/
> > Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
> > ---
> > This will be included into v6.5-rc6 PR, as long as Takashi ack's it. I'm
> > planning to send tomorrow morning (GMT+3).
> 
> Feel free to take my ack:
> 
> Acked-by: Takashi Iwai <tiwai@suse.de>
> 
> I'll build a test kernel and ask reporters for testing the fix, too.

Also, it's worth to put the link to the original bug report:

Link: https://bugzilla.suse.com/show_bug.cgi?id=1213779


Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo
  2023-08-11  7:21 ` Takashi Iwai
  2023-08-11  7:22   ` Takashi Iwai
@ 2023-08-11 15:26   ` Takashi Iwai
  2023-08-11 16:51     ` Jarkko Sakkinen
  2023-08-11 16:47   ` Jarkko Sakkinen
  2 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2023-08-11 15:26 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: linux-integrity, Linus Torvalds, stable, Lino Sanfilippo,
	linux-kernel

On Fri, 11 Aug 2023 09:21:09 +0200,
Takashi Iwai wrote:
> 
> On Thu, 10 Aug 2023 20:24:33 +0200,
> Jarkko Sakkinen wrote:
> > 
> > By large most of the entries in tpm_tis_dmi_table[] are for Lenovo laptops,
> > and they keep on coming. Therefore, disable IRQs categorically for Lenovo.
> > 
> > Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test")
> > Cc: <stable@vger.kernel.org> # v6.4+
> > Reported-by: "Takashi Iwai" <tiwai@suse.de>
> > Closes: https://lore.kernel.org/linux-integrity/87il9qhxjq.wl-tiwai@suse.de/
> > Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
> > ---
> > This will be included into v6.5-rc6 PR, as long as Takashi ack's it. I'm
> > planning to send tomorrow morning (GMT+3).
> 
> Feel free to take my ack:
> 
> Acked-by: Takashi Iwai <tiwai@suse.de>
> 
> I'll build a test kernel and ask reporters for testing the fix, too.

FYI, the test results are all positive, so far.


Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo
  2023-08-11  7:21 ` Takashi Iwai
  2023-08-11  7:22   ` Takashi Iwai
  2023-08-11 15:26   ` Takashi Iwai
@ 2023-08-11 16:47   ` Jarkko Sakkinen
  2 siblings, 0 replies; 8+ messages in thread
From: Jarkko Sakkinen @ 2023-08-11 16:47 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: linux-integrity, Linus Torvalds, stable, Lino Sanfilippo,
	linux-kernel

On Fri Aug 11, 2023 at 10:21 AM EEST, Takashi Iwai wrote:
> On Thu, 10 Aug 2023 20:24:33 +0200,
> Jarkko Sakkinen wrote:
> > 
> > By large most of the entries in tpm_tis_dmi_table[] are for Lenovo laptops,
> > and they keep on coming. Therefore, disable IRQs categorically for Lenovo.
> > 
> > Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test")
> > Cc: <stable@vger.kernel.org> # v6.4+
> > Reported-by: "Takashi Iwai" <tiwai@suse.de>
> > Closes: https://lore.kernel.org/linux-integrity/87il9qhxjq.wl-tiwai@suse.de/
> > Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
> > ---
> > This will be included into v6.5-rc6 PR, as long as Takashi ack's it. I'm
> > planning to send tomorrow morning (GMT+3).
>
> Feel free to take my ack:
>
> Acked-by: Takashi Iwai <tiwai@suse.de>
>
> I'll build a test kernel and ask reporters for testing the fix, too.

Added, thanks!

BR, Jarkko

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo
  2023-08-11  7:22   ` Takashi Iwai
@ 2023-08-11 16:49     ` Jarkko Sakkinen
  0 siblings, 0 replies; 8+ messages in thread
From: Jarkko Sakkinen @ 2023-08-11 16:49 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: linux-integrity, Linus Torvalds, stable, Lino Sanfilippo,
	linux-kernel

On Fri Aug 11, 2023 at 10:22 AM EEST, Takashi Iwai wrote:
> On Fri, 11 Aug 2023 09:21:09 +0200,
> Takashi Iwai wrote:
> > 
> > On Thu, 10 Aug 2023 20:24:33 +0200,
> > Jarkko Sakkinen wrote:
> > > 
> > > By large most of the entries in tpm_tis_dmi_table[] are for Lenovo laptops,
> > > and they keep on coming. Therefore, disable IRQs categorically for Lenovo.
> > > 
> > > Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test")
> > > Cc: <stable@vger.kernel.org> # v6.4+
> > > Reported-by: "Takashi Iwai" <tiwai@suse.de>
> > > Closes: https://lore.kernel.org/linux-integrity/87il9qhxjq.wl-tiwai@suse.de/
> > > Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
> > > ---
> > > This will be included into v6.5-rc6 PR, as long as Takashi ack's it. I'm
> > > planning to send tomorrow morning (GMT+3).
> > 
> > Feel free to take my ack:
> > 
> > Acked-by: Takashi Iwai <tiwai@suse.de>
> > 
> > I'll build a test kernel and ask reporters for testing the fix, too.
>
> Also, it's worth to put the link to the original bug report:
>
> Link: https://bugzilla.suse.com/show_bug.cgi?id=1213779

These days it is recommended afaik to use "Closes:" so I used that
(checkpatch even complains if it does not exist when you have a
reported-by tag).

BR, Jarkko

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo
  2023-08-11 15:26   ` Takashi Iwai
@ 2023-08-11 16:51     ` Jarkko Sakkinen
  0 siblings, 0 replies; 8+ messages in thread
From: Jarkko Sakkinen @ 2023-08-11 16:51 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: linux-integrity, Linus Torvalds, stable, Lino Sanfilippo,
	linux-kernel

On Fri Aug 11, 2023 at 6:26 PM EEST, Takashi Iwai wrote:
> On Fri, 11 Aug 2023 09:21:09 +0200,
> Takashi Iwai wrote:
> > 
> > On Thu, 10 Aug 2023 20:24:33 +0200,
> > Jarkko Sakkinen wrote:
> > > 
> > > By large most of the entries in tpm_tis_dmi_table[] are for Lenovo laptops,
> > > and they keep on coming. Therefore, disable IRQs categorically for Lenovo.
> > > 
> > > Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test")
> > > Cc: <stable@vger.kernel.org> # v6.4+
> > > Reported-by: "Takashi Iwai" <tiwai@suse.de>
> > > Closes: https://lore.kernel.org/linux-integrity/87il9qhxjq.wl-tiwai@suse.de/
> > > Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
> > > ---
> > > This will be included into v6.5-rc6 PR, as long as Takashi ack's it. I'm
> > > planning to send tomorrow morning (GMT+3).
> > 
> > Feel free to take my ack:
> > 
> > Acked-by: Takashi Iwai <tiwai@suse.de>
> > 
> > I'll build a test kernel and ask reporters for testing the fix, too.
>
> FYI, the test results are all positive, so far.

Thanks a lot.

Can you check this that it looks good to you:

https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/commit/?h=next&id=bfc4b8c073a6dcfd39d413a7fa1c5ce1ede9f326

Tested-by?

BR, Jarkko

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo
  2023-08-10 18:24 [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo Jarkko Sakkinen
  2023-08-11  7:21 ` Takashi Iwai
@ 2023-08-14 22:39 ` Jerry Snitselaar
  1 sibling, 0 replies; 8+ messages in thread
From: Jerry Snitselaar @ 2023-08-14 22:39 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: linux-integrity, Linus Torvalds, stable, Takashi Iwai,
	Lino Sanfilippo, linux-kernel

On Thu, Aug 10, 2023 at 09:24:33PM +0300, Jarkko Sakkinen wrote:
> By large most of the entries in tpm_tis_dmi_table[] are for Lenovo laptops,
> and they keep on coming. Therefore, disable IRQs categorically for Lenovo.
> 
> Fixes: e644b2f498d2 ("tpm, tpm_tis: Enable interrupt test")
> Cc: <stable@vger.kernel.org> # v6.4+
> Reported-by: "Takashi Iwai" <tiwai@suse.de>
> Closes: https://lore.kernel.org/linux-integrity/87il9qhxjq.wl-tiwai@suse.de/
> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

Acked-by: Jerry Snitselaar <jsnitsel@redhat.com>

> ---
> This will be included into v6.5-rc6 PR, as long as Takashi ack's it. I'm
> planning to send tomorrow morning (GMT+3).
> 
> BR, Jarkko
>  drivers/char/tpm/tpm_tis.c | 34 ----------------------------------
>  1 file changed, 34 deletions(-)
> 
> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
> index 3c0f68b9e44f..dd0f52d35073 100644
> --- a/drivers/char/tpm/tpm_tis.c
> +++ b/drivers/char/tpm/tpm_tis.c
> @@ -132,42 +132,8 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = {
>  	},
>  	{
>  		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkPad T490s",
>  		.matches = {
>  			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T490s"),
> -		},
> -	},
> -	{
> -		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkStation P360 Tiny",
> -		.matches = {
> -			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkStation P360 Tiny"),
> -		},
> -	},
> -	{
> -		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkPad L490",
> -		.matches = {
> -			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L490"),
> -		},
> -	},
> -	{
> -		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkPad L590",
> -		.matches = {
> -			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L590"),
> -		},
> -	},
> -	{
> -		.callback = tpm_tis_disable_irq,
> -		.ident = "ThinkStation P620",
> -		.matches = {
> -			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -			DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkStation P620"),
>  		},
>  	},
>  	{
> -- 
> 2.39.2
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-14 22:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10 18:24 [PATCH] tpm/tpm_tis: Disable interrupts categorically for Lenovo Jarkko Sakkinen
2023-08-11  7:21 ` Takashi Iwai
2023-08-11  7:22   ` Takashi Iwai
2023-08-11 16:49     ` Jarkko Sakkinen
2023-08-11 15:26   ` Takashi Iwai
2023-08-11 16:51     ` Jarkko Sakkinen
2023-08-11 16:47   ` Jarkko Sakkinen
2023-08-14 22:39 ` Jerry Snitselaar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).