Bug 1403444 - Kernel reports page fault on tpm_tcg_write_bytes
Summary: Kernel reports page fault on tpm_tcg_write_bytes
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-10 11:25 UTC by Zdenek Kabelac
Modified: 2019-01-09 12:54 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-04-06 18:22:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Full dmesg 4.9.0-0.rc8.git4.1.fc26.x86_64 (72.13 KB, text/plain)
2016-12-10 11:42 UTC, Zdenek Kabelac
no flags Details

Description Zdenek Kabelac 2016-12-10 11:25:38 UTC
Description of problem:

Seem   4.9-rcX  kernels have troubles to use tpm.

I've already reported on lkml - but no interest so far:

http://www.gossamer-threads.com/lists/engine?do=post_view_printable;post=2550382;list=linux

And my T61 is not able to suspend - assuming it's related.
Also boot is very slow (timeouting udevd)

Unsure - possible related to  extra debug settings for rawhide kernels?


Getting this trace:


systemd[335]: systemd-udev-settle.service: Executing: /usr/bin/udevadm settle
tpm_tis 00:06: 1.2 TPM (device-id 0x3203, rev-id 9)
FUJITSU Extended Socket Network Device Driver - version 1.1 - Copyright (c)
2015 FUJITSU LIMITED
wmi: Mapper loaded
BUG: stack guard page was hit at ffffb62000ae0000 (stack is
ffffb62000adc000..ffffb62000adffff)
kernel stack overflow (page fault): 0000 [#1] SMP
Modules linked in:
systemd[383]: systemd-backlight [at] backligh:intel_backlight.service: Executing:
/usr/lib/systemd/systemd-backlight load backlight:intel_backlight
snd
wmi soundcore fjes rfkill parport_pc parport tpm_tis(+) tpm_tis_core tpm
nfsd auth_rpcgss nfs_acl lockd grace binfmt_misc sunrpc loop dm_multipath i915
i2c_algo_bit drm_kms_helper drm sdhci_pci sdhci mmc_core serio_raw ata_generic
yenta_socket pata_acpi video
CPU: 1 PID: 350 Comm: systemd-udevd Not tainted 4.9.0-0.rc1.git3.2.fc26.x86_64 #1
Hardware name: LENOVO 6464CTO/6464CTO, BIOS 7LETC9WW (2.29 ) 03/18/2011
task: ffff936f73f057c0 task.stack: ffffb62000adc000
RIP: 0010:[<ffffffffc0478140>] [<ffffffffc0478140>]
tpm_tcg_write_bytes+0x30/0x50 [tpm_tis]
RSP: 0000:ffffb62000adf678 EFLAGS: 00010282
RAX: 000000000000ffef RBX: ffffb62000ae0001 RCX: ffffb62000adf83f
RDX: 000000000000fff0 RSI: 0000000000000024 RDI: 0000000000000000
RBP: ffffb62000adf698 R08: 00000000eea8a8a5 R09: 0000000000000000
R10: 0000000000000000 R11: ffff936f76411dc0 R12: 0000000000000024
R13: ffffb62000aef82f R14: ffff936f75555b28 R15: ffffb62000adf83e
FS: 00007ffa019f1680(0000) GS:ffff936f7bb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffb62000ae0000 CR3: 00000001350c0000 CR4: 00000000000006e0
Stack:
0000000000000001 ffff936f745a8000 ffff936f75555b28 00000000fffffff0
ffffb62000adf6f8 ffffffffc0472d03 ffff936f75555b40 0000001500000000
0000000000000015 c8004000000002ee 000000006813cb59 ffff936f745a8000
Call Trace:
[<ffffffffc0472d03>] tpm_tis_send_data+0xd3/0x2b0 [tpm_tis_core]
[<ffffffffc0472f1a>] tpm_tis_send_main+0x3a/0x120 [tpm_tis_core]
[<ffffffffc0473046>] tpm_tis_send+0x46/0x130 [tpm_tis_core]
[<ffffffffc0484453>] tpm_transmit+0x73/0x260 [tpm]
[<ffffffffc048465f>] tpm_transmit_cmd+0x1f/0x70 [tpm]
[<ffffffffc0484fa6>] tpm_get_timeouts.part.1+0x1e6/0x400 [tpm]
[<ffffffff9353bf0f>] ? dev_vprintk_emit+0xbf/0x230
[<ffffffff9353c0ce>] ? dev_printk_emit+0x4e/0x70
[<ffffffffc0486917>] ? tpm2_probe+0x77/0xb0 [tpm]
[<ffffffff9353c43c>] ? __dev_printk+0x3c/0x80
[<ffffffff9353c94c>] ? _dev_info+0x6c/0x90
[<ffffffffc0485227>] tpm_get_timeouts+0x67/0x70 [tpm]
[<ffffffffc04733a7>] tpm_tis_core_init+0x277/0xed0 [tpm_tis_core]
[<ffffffffc0478227>] tpm_tis_init+0x77/0x90 [tpm_tis]
[<ffffffffc0478550>] ? tpm_tis_plat_probe+0x100/0x100 [tpm_tis]
[<ffffffffc0478625>] tpm_tis_pnp_init+0xd5/0x196 [tpm_tis]
[<ffffffff934b9dc5>] pnp_device_probe+0x65/0xc0
[<ffffffff935408d3>] driver_probe_device+0x223/0x430
[<ffffffff93540bbf>] __driver_attach+0xdf/0xf0
[<ffffffff93540ae0>] ? driver_probe_device+0x430/0x430
[<ffffffff9353e2bc>] bus_for_each_dev+0x6c/0xc0
[<ffffffff9354001e>] driver_attach+0x1e/0x20
[<ffffffff9353fa50>] bus_add_driver+0x170/0x270
[<ffffffffc047d000>] ? 0xffffffffc047d000
[<ffffffff935414e0>] driver_register+0x60/0xe0
[<ffffffffc047d000>] ? 0xffffffffc047d000
[<ffffffff934b9c00>] pnp_register_driver+0x20/0x30
[<ffffffffc047d0a1>] init_tis+0xa1/0x1000 [tpm_tis]
[<ffffffff931bb9da>] ? do_init_module+0x27/0x1ef
[<ffffffff93209c05>] ? vunmap_page_range+0x215/0x380
[<ffffffff93002190>] do_one_initcall+0x50/0x180
[<ffffffff9322ad82>] ? kmem_cache_alloc_trace+0x172/0x1b0
[<ffffffff931bb9da>] ? do_init_module+0x27/0x1ef
[<ffffffff931bba12>] do_init_module+0x5f/0x1ef
[<ffffffff9312f5c1>] load_module+0x25b1/0x2980
[<ffffffff9312bea0>] ? __symbol_put+0x60/0x60
[<ffffffff9312fb03>] SYSC_init_module+0x173/0x190
[<ffffffff9312fc3e>] SyS_init_module+0xe/0x10
[<ffffffff93003c17>] do_syscall_64+0x67/0x180
[<ffffffff938112ab>] entry_SYSCALL64_slow_path+0x25/0x25
Code: 8d 42 ff 55 66 85 d2 0f b7 c0 48 89 e5 41 56 41 55 4c 8d 6c 01 01 41 54
53 74 22 49 89 fe 48 89 cb 41 89 f4 48 83 c3 01 4c 89 e6 <0f> b6 7b ff 49 03
76 50 e8 a3 cc f8 d2 49 39 dd 75 e7 5b 31 c0
RIP [<ffffffffc0478140>] tpm_tcg_write_bytes+0x30/0x50 [tpm_tis]
RSP <ffffb62000adf678>
---[ end trace 974f468696d1d0af ]---

Version-Release number of selected component (if applicable):
4.9-rcX


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Zdenek Kabelac 2016-12-10 11:42:12 UTC
Created attachment 1230241 [details]
Full dmesg 4.9.0-0.rc8.git4.1.fc26.x86_64

Adding full DMESG trace with latest available  Fedora Rawhide debug build kernel

Comment 2 T.Paul Lee 2017-01-10 01:02:01 UTC
I ran into the same problem with v4.9.0 also on Thinkpad X61 and gcc 5.4.0.
On boot up, the system panicked at this
tpm_tcg_write_bytes+0x30/0x50 location.

I was hoping to exclude the TPM module, but had no clue how to do that.
But I am able to bypass and move on by disabling (BIOS) the TPM (so-called security chip I think).  Hope that someone can address this problem.

Comment 3 Laura Abbott 2018-04-06 18:22:07 UTC
Doing some pruning, this bug looks to be several kernel versions old. Please test on a newer kernel and reopen if the problem still exists.


Note You need to log in before you can comment on or make changes to this bug.