[Kernel-packages] [Bug 1933547] Re: tpm driver causes non-fatal kernel crash on boot

2022-04-13 Thread Po-Hsu Lin
Closing this with fix-released as per comment #4

** Changed in: linux (Ubuntu Hirsute)
   Status: Won't Fix => Fix Released

** Changed in: linux (Ubuntu)
   Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1933547

Title:
  tpm driver causes non-fatal kernel crash on boot

Status in linux package in Ubuntu:
  Invalid
Status in linux source package in Hirsute:
  Fix Released

Bug description:
  tpm driver appears to be causng a non-fatal crash on boot.

  Trace below

  Jun 24 07:22:45 munin kernel: [1.138595] [ cut here 
]
  Jun 24 07:22:45 munin kernel: [1.138596] TPM returned invalid status
  Jun 24 07:22:45 munin kernel: [1.138611] WARNING: CPU: 8 PID: 1 at 
drivers/char/tpm/tpm_tis_core.c:205 tpm_tis_st
  atus+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138627] Modules linked in:
  Jun 24 07:22:45 munin kernel: [1.138631] CPU: 8 PID: 1 Comm: swapper/0 
Not tainted 5.11.0-22-generic #23-Ubuntu
  Jun 24 07:22:45 munin kernel: [1.138635] Hardware name: IT Channel Pty 
Ltd NH50_70RA /NH50_70
  RA , BIOS 1.07.13TMB1 06/06/2020
  Jun 24 07:22:45 munin kernel: [1.138638] RIP: 
0010:tpm_tis_status+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138644] Code: 25 28 00 00 00 75 2b c9 c3 
31 c0 80 3d 8d df 76 01 00 75 e4 48 c7 
  c7 24 44 04 a2 88 45 ef c6 05 7a df 76 01 01 e8 fb a3 43 00 <0f> 0b 0f b6 45 
ef eb c6 e8 71 77 49 00 90 0f 1f 44 00 0
  0 55 48 89
  Jun 24 07:22:45 munin kernel: [1.138649] RSP: :bfc80007b860 
EFLAGS: 00010286
  Jun 24 07:22:45 munin kernel: [1.138653] RAX:  RBX: 
9a2617bf8000 RCX: a2723528
  Jun 24 07:22:45 munin kernel: [1.138656] RDX: c000dfff RSI: 
 RDI: 0247
  Jun 24 07:22:45 munin kernel: [1.138659] RBP: bfc80007b878 R08: 
 R09: bfc80007b640
  Jun 24 07:22:45 munin kernel: [1.138661] R10: bfc80007b638 R11: 
a2753568 R12: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138663] R13: 9a26032fa558 R14: 
9a260330 R15: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138666] FS:  () 
GS:9a2d5060() knlGS:
  
  Jun 24 07:22:45 munin kernel: [1.138670] CS:  0010 DS:  ES:  CR0: 
80050033
  Jun 24 07:22:45 munin kernel: [1.138673] CR2:  CR3: 
000288e10001 CR4: 003706e0
  Jun 24 07:22:45 munin kernel: [1.138676] Call Trace:
  Jun 24 07:22:45 munin kernel: [1.138680]  tpm_tis_send_data+0x42/0x250
  Jun 24 07:22:45 munin kernel: [1.138688]  tpm_tis_send_main+0x32/0xf0
  Jun 24 07:22:45 munin kernel: [1.138693]  ? 
kernel_init_free_pages+0x4a/0x60
  Jun 24 07:22:45 munin kernel: [1.138699]  tpm_tis_send+0x30/0xa0
  Jun 24 07:22:45 munin kernel: [1.138704]  tpm_try_transmit+0x64/0x1d0
  Jun 24 07:22:45 munin kernel: [1.138709]  tpm_transmit+0x92/0x250
  Jun 24 07:22:45 munin kernel: [1.138713]  tpm_transmit_cmd+0x2a/0x90
  Jun 24 07:22:45 munin kernel: [1.138717]  tpm2_get_tpm_pt+0xe9/0x150
  Jun 24 07:22:45 munin kernel: [1.138722]  
tpm_tis_probe_irq_single+0x17f/0x223
  Jun 24 07:22:45 munin kernel: [1.138728]  ? tpm_tcg_write32+0x1a/0x20
  Jun 24 07:22:45 munin kernel: [1.138734]  
tpm_tis_core_init.cold+0x179/0x2e7
  Jun 24 07:22:45 munin kernel: [1.138739]  tpm_tis_init.part.0+0xa0/0x120
  Jun 24 07:22:45 munin kernel: [1.138744]  tpm_tis_plat_probe+0xd4/0x100
  Jun 24 07:22:45 munin kernel: [1.138751]  platform_probe+0x45/0xa0
  Jun 24 07:22:45 munin kernel: [1.138757]  really_probe+0xff/0x460
  Jun 24 07:22:45 munin kernel: [1.138762]  driver_probe_device+0xe9/0x160
  Jun 24 07:22:45 munin kernel: [1.138767]  device_driver_attach+0xab/0xb0
  Jun 24 07:22:45 munin kernel: [1.138772]  __driver_attach+0x8f/0x150
  Jun 24 07:22:45 munin kernel: [1.138776]  ? device_driver_attach+0xb0/0xb0
  Jun 24 07:22:45 munin kernel: [1.138781]  bus_for_each_dev+0x7e/0xc0
  Jun 24 07:22:45 munin kernel: [1.138785]  driver_attach+0x1e/0x20
  Jun 24 07:22:45 munin kernel: [1.138789]  bus_add_driver+0x135/0x1f0
  Jun 24 07:22:45 munin kernel: [1.138793]  driver_register+0x95/0xf0
  Jun 24 07:22:45 munin kernel: [1.138798]  ? tpm_init+0xf6/0xf6
  Jun 24 07:22:45 munin kernel: [1.138805]  
__platform_driver_register+0x1e/0x20
  Jun 24 07:22:45 munin kernel: [1.138811]  init_tis+0x87/0xdd
  Jun 24 07:22:45 munin kernel: [1.138817]  ? kobject_uevent+0xb/0x10
  Jun 24 07:22:45 munin kernel: [1.138823]  ? driver_register+0xcd/0xf0
  Jun 24 07:22:45 munin kernel: [1.138828]  ? agp_intel_init+0x2f/0x2f
  Jun 24 07:22:45 munin kernel: [1.138833]  ? 
__pci_register_driver+0x54/0x60
  Jun 24 07:22:45 munin 

[Kernel-packages] [Bug 1933547] Re: tpm driver causes non-fatal kernel crash on boot

2022-01-26 Thread Brian Murray
The Hirsute Hippo has reached End of Life, so this bug will not be fixed
for that release.

** Changed in: linux (Ubuntu Hirsute)
   Status: Confirmed => Won't Fix

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1933547

Title:
  tpm driver causes non-fatal kernel crash on boot

Status in linux package in Ubuntu:
  Confirmed
Status in linux source package in Hirsute:
  Won't Fix

Bug description:
  tpm driver appears to be causng a non-fatal crash on boot.

  Trace below

  Jun 24 07:22:45 munin kernel: [1.138595] [ cut here 
]
  Jun 24 07:22:45 munin kernel: [1.138596] TPM returned invalid status
  Jun 24 07:22:45 munin kernel: [1.138611] WARNING: CPU: 8 PID: 1 at 
drivers/char/tpm/tpm_tis_core.c:205 tpm_tis_st
  atus+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138627] Modules linked in:
  Jun 24 07:22:45 munin kernel: [1.138631] CPU: 8 PID: 1 Comm: swapper/0 
Not tainted 5.11.0-22-generic #23-Ubuntu
  Jun 24 07:22:45 munin kernel: [1.138635] Hardware name: IT Channel Pty 
Ltd NH50_70RA /NH50_70
  RA , BIOS 1.07.13TMB1 06/06/2020
  Jun 24 07:22:45 munin kernel: [1.138638] RIP: 
0010:tpm_tis_status+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138644] Code: 25 28 00 00 00 75 2b c9 c3 
31 c0 80 3d 8d df 76 01 00 75 e4 48 c7 
  c7 24 44 04 a2 88 45 ef c6 05 7a df 76 01 01 e8 fb a3 43 00 <0f> 0b 0f b6 45 
ef eb c6 e8 71 77 49 00 90 0f 1f 44 00 0
  0 55 48 89
  Jun 24 07:22:45 munin kernel: [1.138649] RSP: :bfc80007b860 
EFLAGS: 00010286
  Jun 24 07:22:45 munin kernel: [1.138653] RAX:  RBX: 
9a2617bf8000 RCX: a2723528
  Jun 24 07:22:45 munin kernel: [1.138656] RDX: c000dfff RSI: 
 RDI: 0247
  Jun 24 07:22:45 munin kernel: [1.138659] RBP: bfc80007b878 R08: 
 R09: bfc80007b640
  Jun 24 07:22:45 munin kernel: [1.138661] R10: bfc80007b638 R11: 
a2753568 R12: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138663] R13: 9a26032fa558 R14: 
9a260330 R15: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138666] FS:  () 
GS:9a2d5060() knlGS:
  
  Jun 24 07:22:45 munin kernel: [1.138670] CS:  0010 DS:  ES:  CR0: 
80050033
  Jun 24 07:22:45 munin kernel: [1.138673] CR2:  CR3: 
000288e10001 CR4: 003706e0
  Jun 24 07:22:45 munin kernel: [1.138676] Call Trace:
  Jun 24 07:22:45 munin kernel: [1.138680]  tpm_tis_send_data+0x42/0x250
  Jun 24 07:22:45 munin kernel: [1.138688]  tpm_tis_send_main+0x32/0xf0
  Jun 24 07:22:45 munin kernel: [1.138693]  ? 
kernel_init_free_pages+0x4a/0x60
  Jun 24 07:22:45 munin kernel: [1.138699]  tpm_tis_send+0x30/0xa0
  Jun 24 07:22:45 munin kernel: [1.138704]  tpm_try_transmit+0x64/0x1d0
  Jun 24 07:22:45 munin kernel: [1.138709]  tpm_transmit+0x92/0x250
  Jun 24 07:22:45 munin kernel: [1.138713]  tpm_transmit_cmd+0x2a/0x90
  Jun 24 07:22:45 munin kernel: [1.138717]  tpm2_get_tpm_pt+0xe9/0x150
  Jun 24 07:22:45 munin kernel: [1.138722]  
tpm_tis_probe_irq_single+0x17f/0x223
  Jun 24 07:22:45 munin kernel: [1.138728]  ? tpm_tcg_write32+0x1a/0x20
  Jun 24 07:22:45 munin kernel: [1.138734]  
tpm_tis_core_init.cold+0x179/0x2e7
  Jun 24 07:22:45 munin kernel: [1.138739]  tpm_tis_init.part.0+0xa0/0x120
  Jun 24 07:22:45 munin kernel: [1.138744]  tpm_tis_plat_probe+0xd4/0x100
  Jun 24 07:22:45 munin kernel: [1.138751]  platform_probe+0x45/0xa0
  Jun 24 07:22:45 munin kernel: [1.138757]  really_probe+0xff/0x460
  Jun 24 07:22:45 munin kernel: [1.138762]  driver_probe_device+0xe9/0x160
  Jun 24 07:22:45 munin kernel: [1.138767]  device_driver_attach+0xab/0xb0
  Jun 24 07:22:45 munin kernel: [1.138772]  __driver_attach+0x8f/0x150
  Jun 24 07:22:45 munin kernel: [1.138776]  ? device_driver_attach+0xb0/0xb0
  Jun 24 07:22:45 munin kernel: [1.138781]  bus_for_each_dev+0x7e/0xc0
  Jun 24 07:22:45 munin kernel: [1.138785]  driver_attach+0x1e/0x20
  Jun 24 07:22:45 munin kernel: [1.138789]  bus_add_driver+0x135/0x1f0
  Jun 24 07:22:45 munin kernel: [1.138793]  driver_register+0x95/0xf0
  Jun 24 07:22:45 munin kernel: [1.138798]  ? tpm_init+0xf6/0xf6
  Jun 24 07:22:45 munin kernel: [1.138805]  
__platform_driver_register+0x1e/0x20
  Jun 24 07:22:45 munin kernel: [1.138811]  init_tis+0x87/0xdd
  Jun 24 07:22:45 munin kernel: [1.138817]  ? kobject_uevent+0xb/0x10
  Jun 24 07:22:45 munin kernel: [1.138823]  ? driver_register+0xcd/0xf0
  Jun 24 07:22:45 munin kernel: [1.138828]  ? agp_intel_init+0x2f/0x2f
  Jun 24 07:22:45 munin kernel: [1.138833]  ? 
__pci_register_driver+0x54/0x60
  Jun 24 07:22:45 munin kernel: [1.138838]  ? 

[Kernel-packages] [Bug 1933547] Re: tpm driver causes non-fatal kernel crash on boot

2021-06-25 Thread TomaszCiolek
I have installed the following:

linux-headers-5.11.0-23   5.11.0-23.24
linux-headers-5.11.0-23-generic   5.11.0-23.24  
   
linux-image-5.11.0-23-generic 5.11.0-23.24  
   
linux-libc-dev:amd64  5.11.0-23.24  
   
linux-modules-5.11.0-23-generic   5.11.0-23.24  
   
linux-modules-extra-5.11.0-23-generic 5.11.0-23.24

and rebooted

dmesg now shows:

[1.093058] tpm_tis MSFT0101:00: 2.0 TPM (device-id 0x1B, rev-id 22)
[1.109182] tpm tpm0: [Firmware Bug]: TPM interrupt not working, polling 
instead

full dmesg file form boot attached

No stack trace present in dmesg or kern.log

Kind regards

** Attachment added: "dmesg-20210625.txt"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1933547/+attachment/5507035/+files/dmesg-20210625.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1933547

Title:
  tpm driver causes non-fatal kernel crash on boot

Status in linux package in Ubuntu:
  New
Status in linux source package in Hirsute:
  New

Bug description:
  tpm driver appears to be causng a non-fatal crash on boot.

  Trace below

  Jun 24 07:22:45 munin kernel: [1.138595] [ cut here 
]
  Jun 24 07:22:45 munin kernel: [1.138596] TPM returned invalid status
  Jun 24 07:22:45 munin kernel: [1.138611] WARNING: CPU: 8 PID: 1 at 
drivers/char/tpm/tpm_tis_core.c:205 tpm_tis_st
  atus+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138627] Modules linked in:
  Jun 24 07:22:45 munin kernel: [1.138631] CPU: 8 PID: 1 Comm: swapper/0 
Not tainted 5.11.0-22-generic #23-Ubuntu
  Jun 24 07:22:45 munin kernel: [1.138635] Hardware name: IT Channel Pty 
Ltd NH50_70RA /NH50_70
  RA , BIOS 1.07.13TMB1 06/06/2020
  Jun 24 07:22:45 munin kernel: [1.138638] RIP: 
0010:tpm_tis_status+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138644] Code: 25 28 00 00 00 75 2b c9 c3 
31 c0 80 3d 8d df 76 01 00 75 e4 48 c7 
  c7 24 44 04 a2 88 45 ef c6 05 7a df 76 01 01 e8 fb a3 43 00 <0f> 0b 0f b6 45 
ef eb c6 e8 71 77 49 00 90 0f 1f 44 00 0
  0 55 48 89
  Jun 24 07:22:45 munin kernel: [1.138649] RSP: :bfc80007b860 
EFLAGS: 00010286
  Jun 24 07:22:45 munin kernel: [1.138653] RAX:  RBX: 
9a2617bf8000 RCX: a2723528
  Jun 24 07:22:45 munin kernel: [1.138656] RDX: c000dfff RSI: 
 RDI: 0247
  Jun 24 07:22:45 munin kernel: [1.138659] RBP: bfc80007b878 R08: 
 R09: bfc80007b640
  Jun 24 07:22:45 munin kernel: [1.138661] R10: bfc80007b638 R11: 
a2753568 R12: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138663] R13: 9a26032fa558 R14: 
9a260330 R15: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138666] FS:  () 
GS:9a2d5060() knlGS:
  
  Jun 24 07:22:45 munin kernel: [1.138670] CS:  0010 DS:  ES:  CR0: 
80050033
  Jun 24 07:22:45 munin kernel: [1.138673] CR2:  CR3: 
000288e10001 CR4: 003706e0
  Jun 24 07:22:45 munin kernel: [1.138676] Call Trace:
  Jun 24 07:22:45 munin kernel: [1.138680]  tpm_tis_send_data+0x42/0x250
  Jun 24 07:22:45 munin kernel: [1.138688]  tpm_tis_send_main+0x32/0xf0
  Jun 24 07:22:45 munin kernel: [1.138693]  ? 
kernel_init_free_pages+0x4a/0x60
  Jun 24 07:22:45 munin kernel: [1.138699]  tpm_tis_send+0x30/0xa0
  Jun 24 07:22:45 munin kernel: [1.138704]  tpm_try_transmit+0x64/0x1d0
  Jun 24 07:22:45 munin kernel: [1.138709]  tpm_transmit+0x92/0x250
  Jun 24 07:22:45 munin kernel: [1.138713]  tpm_transmit_cmd+0x2a/0x90
  Jun 24 07:22:45 munin kernel: [1.138717]  tpm2_get_tpm_pt+0xe9/0x150
  Jun 24 07:22:45 munin kernel: [1.138722]  
tpm_tis_probe_irq_single+0x17f/0x223
  Jun 24 07:22:45 munin kernel: [1.138728]  ? tpm_tcg_write32+0x1a/0x20
  Jun 24 07:22:45 munin kernel: [1.138734]  
tpm_tis_core_init.cold+0x179/0x2e7
  Jun 24 07:22:45 munin kernel: [1.138739]  tpm_tis_init.part.0+0xa0/0x120
  Jun 24 07:22:45 munin kernel: [1.138744]  tpm_tis_plat_probe+0xd4/0x100
  Jun 24 07:22:45 munin kernel: [1.138751]  platform_probe+0x45/0xa0
  Jun 24 07:22:45 munin kernel: [1.138757]  really_probe+0xff/0x460
  Jun 24 07:22:45 munin kernel: [1.138762]  driver_probe_device+0xe9/0x160
  Jun 24 07:22:45 munin kernel: [1.138767]  device_driver_attach+0xab/0xb0
  Jun 24 07:22:45 munin kernel: [1.138772]  __driver_attach+0x8f/0x150
  Jun 24 07:22:45 munin kernel: [1.138776]  ? device_driver_attach+0xb0/0xb0
  Jun 24 07:22:45 munin kernel: [1.138781]  

[Kernel-packages] [Bug 1933547] Re: tpm driver causes non-fatal kernel crash on boot

2021-06-25 Thread Ivan Hu
The kernel seems try to set up the interrupt and send data, but failed.
After got error returned, the kernel will disable interrupt and using polling 
instead.

I beleve it will have the following messages in dmesg log
kernel: tpm tpm0: tpm_try_transmit: send(): error -62
kernel: tpm tpm0: [Firmware Bug]: TPM interrupt not working, polling instead

The call trace seems from the patch which add the checking for the invalid 
status,
https://patchwork.kernel.org/project/linux-integrity/patch/9bad3da0c31ae2620aaae0d75748c3387afa3d47.ca...@hansenpartnership.com/#23649371

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1933547

Title:
  tpm driver causes non-fatal kernel crash on boot

Status in linux package in Ubuntu:
  New
Status in linux source package in Hirsute:
  New

Bug description:
  tpm driver appears to be causng a non-fatal crash on boot.

  Trace below

  Jun 24 07:22:45 munin kernel: [1.138595] [ cut here 
]
  Jun 24 07:22:45 munin kernel: [1.138596] TPM returned invalid status
  Jun 24 07:22:45 munin kernel: [1.138611] WARNING: CPU: 8 PID: 1 at 
drivers/char/tpm/tpm_tis_core.c:205 tpm_tis_st
  atus+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138627] Modules linked in:
  Jun 24 07:22:45 munin kernel: [1.138631] CPU: 8 PID: 1 Comm: swapper/0 
Not tainted 5.11.0-22-generic #23-Ubuntu
  Jun 24 07:22:45 munin kernel: [1.138635] Hardware name: IT Channel Pty 
Ltd NH50_70RA /NH50_70
  RA , BIOS 1.07.13TMB1 06/06/2020
  Jun 24 07:22:45 munin kernel: [1.138638] RIP: 
0010:tpm_tis_status+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138644] Code: 25 28 00 00 00 75 2b c9 c3 
31 c0 80 3d 8d df 76 01 00 75 e4 48 c7 
  c7 24 44 04 a2 88 45 ef c6 05 7a df 76 01 01 e8 fb a3 43 00 <0f> 0b 0f b6 45 
ef eb c6 e8 71 77 49 00 90 0f 1f 44 00 0
  0 55 48 89
  Jun 24 07:22:45 munin kernel: [1.138649] RSP: :bfc80007b860 
EFLAGS: 00010286
  Jun 24 07:22:45 munin kernel: [1.138653] RAX:  RBX: 
9a2617bf8000 RCX: a2723528
  Jun 24 07:22:45 munin kernel: [1.138656] RDX: c000dfff RSI: 
 RDI: 0247
  Jun 24 07:22:45 munin kernel: [1.138659] RBP: bfc80007b878 R08: 
 R09: bfc80007b640
  Jun 24 07:22:45 munin kernel: [1.138661] R10: bfc80007b638 R11: 
a2753568 R12: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138663] R13: 9a26032fa558 R14: 
9a260330 R15: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138666] FS:  () 
GS:9a2d5060() knlGS:
  
  Jun 24 07:22:45 munin kernel: [1.138670] CS:  0010 DS:  ES:  CR0: 
80050033
  Jun 24 07:22:45 munin kernel: [1.138673] CR2:  CR3: 
000288e10001 CR4: 003706e0
  Jun 24 07:22:45 munin kernel: [1.138676] Call Trace:
  Jun 24 07:22:45 munin kernel: [1.138680]  tpm_tis_send_data+0x42/0x250
  Jun 24 07:22:45 munin kernel: [1.138688]  tpm_tis_send_main+0x32/0xf0
  Jun 24 07:22:45 munin kernel: [1.138693]  ? 
kernel_init_free_pages+0x4a/0x60
  Jun 24 07:22:45 munin kernel: [1.138699]  tpm_tis_send+0x30/0xa0
  Jun 24 07:22:45 munin kernel: [1.138704]  tpm_try_transmit+0x64/0x1d0
  Jun 24 07:22:45 munin kernel: [1.138709]  tpm_transmit+0x92/0x250
  Jun 24 07:22:45 munin kernel: [1.138713]  tpm_transmit_cmd+0x2a/0x90
  Jun 24 07:22:45 munin kernel: [1.138717]  tpm2_get_tpm_pt+0xe9/0x150
  Jun 24 07:22:45 munin kernel: [1.138722]  
tpm_tis_probe_irq_single+0x17f/0x223
  Jun 24 07:22:45 munin kernel: [1.138728]  ? tpm_tcg_write32+0x1a/0x20
  Jun 24 07:22:45 munin kernel: [1.138734]  
tpm_tis_core_init.cold+0x179/0x2e7
  Jun 24 07:22:45 munin kernel: [1.138739]  tpm_tis_init.part.0+0xa0/0x120
  Jun 24 07:22:45 munin kernel: [1.138744]  tpm_tis_plat_probe+0xd4/0x100
  Jun 24 07:22:45 munin kernel: [1.138751]  platform_probe+0x45/0xa0
  Jun 24 07:22:45 munin kernel: [1.138757]  really_probe+0xff/0x460
  Jun 24 07:22:45 munin kernel: [1.138762]  driver_probe_device+0xe9/0x160
  Jun 24 07:22:45 munin kernel: [1.138767]  device_driver_attach+0xab/0xb0
  Jun 24 07:22:45 munin kernel: [1.138772]  __driver_attach+0x8f/0x150
  Jun 24 07:22:45 munin kernel: [1.138776]  ? device_driver_attach+0xb0/0xb0
  Jun 24 07:22:45 munin kernel: [1.138781]  bus_for_each_dev+0x7e/0xc0
  Jun 24 07:22:45 munin kernel: [1.138785]  driver_attach+0x1e/0x20
  Jun 24 07:22:45 munin kernel: [1.138789]  bus_add_driver+0x135/0x1f0
  Jun 24 07:22:45 munin kernel: [1.138793]  driver_register+0x95/0xf0
  Jun 24 07:22:45 munin kernel: [1.138798]  ? tpm_init+0xf6/0xf6
  Jun 24 07:22:45 munin kernel: [1.138805]  
__platform_driver_register+0x1e/0x20
  Jun 24 07:22:45 munin kernel: [

[Kernel-packages] [Bug 1933547] Re: tpm driver causes non-fatal kernel crash on boot

2021-06-25 Thread Kleber Sacilotto de Souza
Hello TomaszCiolek,

There is a Hirsute 21.04 kernel update in -proposed with some tpm fixes
applied. Could you please try kernel version 5.11.0-23.24 to check
whether the issue is resolved with this kernel?

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!

** Also affects: linux (Ubuntu Hirsute)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1933547

Title:
  tpm driver causes non-fatal kernel crash on boot

Status in linux package in Ubuntu:
  New
Status in linux source package in Hirsute:
  New

Bug description:
  tpm driver appears to be causng a non-fatal crash on boot.

  Trace below

  Jun 24 07:22:45 munin kernel: [1.138595] [ cut here 
]
  Jun 24 07:22:45 munin kernel: [1.138596] TPM returned invalid status
  Jun 24 07:22:45 munin kernel: [1.138611] WARNING: CPU: 8 PID: 1 at 
drivers/char/tpm/tpm_tis_core.c:205 tpm_tis_st
  atus+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138627] Modules linked in:
  Jun 24 07:22:45 munin kernel: [1.138631] CPU: 8 PID: 1 Comm: swapper/0 
Not tainted 5.11.0-22-generic #23-Ubuntu
  Jun 24 07:22:45 munin kernel: [1.138635] Hardware name: IT Channel Pty 
Ltd NH50_70RA /NH50_70
  RA , BIOS 1.07.13TMB1 06/06/2020
  Jun 24 07:22:45 munin kernel: [1.138638] RIP: 
0010:tpm_tis_status+0x82/0x90
  Jun 24 07:22:45 munin kernel: [1.138644] Code: 25 28 00 00 00 75 2b c9 c3 
31 c0 80 3d 8d df 76 01 00 75 e4 48 c7 
  c7 24 44 04 a2 88 45 ef c6 05 7a df 76 01 01 e8 fb a3 43 00 <0f> 0b 0f b6 45 
ef eb c6 e8 71 77 49 00 90 0f 1f 44 00 0
  0 55 48 89
  Jun 24 07:22:45 munin kernel: [1.138649] RSP: :bfc80007b860 
EFLAGS: 00010286
  Jun 24 07:22:45 munin kernel: [1.138653] RAX:  RBX: 
9a2617bf8000 RCX: a2723528
  Jun 24 07:22:45 munin kernel: [1.138656] RDX: c000dfff RSI: 
 RDI: 0247
  Jun 24 07:22:45 munin kernel: [1.138659] RBP: bfc80007b878 R08: 
 R09: bfc80007b640
  Jun 24 07:22:45 munin kernel: [1.138661] R10: bfc80007b638 R11: 
a2753568 R12: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138663] R13: 9a26032fa558 R14: 
9a260330 R15: 9a2617bf8000
  Jun 24 07:22:45 munin kernel: [1.138666] FS:  () 
GS:9a2d5060() knlGS:
  
  Jun 24 07:22:45 munin kernel: [1.138670] CS:  0010 DS:  ES:  CR0: 
80050033
  Jun 24 07:22:45 munin kernel: [1.138673] CR2:  CR3: 
000288e10001 CR4: 003706e0
  Jun 24 07:22:45 munin kernel: [1.138676] Call Trace:
  Jun 24 07:22:45 munin kernel: [1.138680]  tpm_tis_send_data+0x42/0x250
  Jun 24 07:22:45 munin kernel: [1.138688]  tpm_tis_send_main+0x32/0xf0
  Jun 24 07:22:45 munin kernel: [1.138693]  ? 
kernel_init_free_pages+0x4a/0x60
  Jun 24 07:22:45 munin kernel: [1.138699]  tpm_tis_send+0x30/0xa0
  Jun 24 07:22:45 munin kernel: [1.138704]  tpm_try_transmit+0x64/0x1d0
  Jun 24 07:22:45 munin kernel: [1.138709]  tpm_transmit+0x92/0x250
  Jun 24 07:22:45 munin kernel: [1.138713]  tpm_transmit_cmd+0x2a/0x90
  Jun 24 07:22:45 munin kernel: [1.138717]  tpm2_get_tpm_pt+0xe9/0x150
  Jun 24 07:22:45 munin kernel: [1.138722]  
tpm_tis_probe_irq_single+0x17f/0x223
  Jun 24 07:22:45 munin kernel: [1.138728]  ? tpm_tcg_write32+0x1a/0x20
  Jun 24 07:22:45 munin kernel: [1.138734]  
tpm_tis_core_init.cold+0x179/0x2e7
  Jun 24 07:22:45 munin kernel: [1.138739]  tpm_tis_init.part.0+0xa0/0x120
  Jun 24 07:22:45 munin kernel: [1.138744]  tpm_tis_plat_probe+0xd4/0x100
  Jun 24 07:22:45 munin kernel: [1.138751]  platform_probe+0x45/0xa0
  Jun 24 07:22:45 munin kernel: [1.138757]  really_probe+0xff/0x460
  Jun 24 07:22:45 munin kernel: [1.138762]  driver_probe_device+0xe9/0x160
  Jun 24 07:22:45 munin kernel: [1.138767]  device_driver_attach+0xab/0xb0
  Jun 24 07:22:45 munin kernel: [1.138772]  __driver_attach+0x8f/0x150
  Jun 24 07:22:45 munin kernel: [1.138776]  ? device_driver_attach+0xb0/0xb0
  Jun 24 07:22:45 munin kernel: [1.138781]  bus_for_each_dev+0x7e/0xc0
  Jun 24 07:22:45 munin kernel: [1.138785]  driver_attach+0x1e/0x20
  Jun 24 07:22:45 munin kernel: [1.138789]  bus_add_driver+0x135/0x1f0
  Jun 24 07:22:45 munin kernel: [1.138793]  driver_register+0x95/0xf0
  Jun 24 07:22:45 munin kernel: [1.138798]  ? tpm_init+0xf6/0xf6
  Jun 24 07:22:45 munin kernel: [1.138805]  
__platform_driver_register+0x1e/0x20
  Jun 24 07:22:45 munin kernel: [1.138811]  init_tis+0x87/0xdd
  Jun 24 07:22:45 munin kernel: [1.138817]  ? kobject_uevent+0xb/0x10
  Jun 24 07:22:45 munin kernel: [1.138823]  ?