4.17.1 BUG: unable to handle kernel paging request at 00000000bfbfbf08 sysfs_kf_seq_show
Submitted by Sverd Johnsen
Assigned to Default DRI bug account
Link to original bug (#106820)
Description
after unloading and loading amdgpu module several times (checking status of bug 104274 with new 4.17 kernel) over some time i noticed that sensors program gets killed reading /sys/class/i2c-adapter/i2c-10/name
seems to be from amdgpu driver (it belongs to 0000:01:00.0 according to the device symlink)
[ 5643.197797] BUG: unable to handle kernel paging request at 00000000bfbfbf08
[ 5643.197801] PGD 0 P4D 0
[ 5643.197802] Oops: 0000 [#1 (closed)] PREEMPT SMP
[ 5643.197803] Modules linked in: amdgpu chash gpu_sched ttm af_packet macvtap macvlan bonding nft_nat nft_chain_nat_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv6 nf_log_ipv4 nf_log_common xfrm_user nft_reject_inet nf_reject_ipv4 xfrm_algo nf_reject_ipv6 nft_reject nft_log nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nft_ct nf_conntrack cls_u32 nft_counter nft_meta nft_set_bitmap sch_htb nft_set_hash nft_set_rbtree raid0 x86_pkg_temp_thermal intel_powerclamp kvm_intel vhost_net tun vhost tap kvm deflate efi_pstore intel_cstate intel_uncore md_mod snd_hda_codec_realtek bcache snd_hda_codec_generic intel_rapl_perf efivars snd_hda_codec_hdmi snd_hda_intel snd_hda_codec plusb input_leds usbnet led_class snd_hwdep snd_hda_core mii mei_me snd_pcm mei tpm_crb crypto_user efivarfs algif_skcipher
[ 5643.197824] af_alg mousedev joydev psmouse atkbd crct10dif_pclmul crc32_pclmul libps2 ghash_clmulni_intel pcspkr tpm_tis tpm_tis_core shpchp fan thermal tpm i8042 rng_core acpi_pad vfio_pci irqbypass vfio_virqfd vfio_iommu_type1 vfio [last unloaded: amdgpu]
[ 5643.197836] CPU: 0 PID: 5587 Comm: sensors Not tainted 4.17.0-1-vfio #2
[ 5643.197837] Hardware name: Gigabyte Technology Co., Ltd. Z170X-UD3/Z170X-UD3-CF, BIOS F23d 12/01/2017
[ 5643.197840] RIP: 0010:sysfs_kf_seq_show+0x1e/0x100
[ 5643.197841] RSP: 0018:ffff952b854efd98 EFLAGS: 00010206
[ 5643.197841] RAX: 00000000bfbfbf00 RBX: 0000000000000000 RCX: 0000000000000001
[ 5643.197842] RDX: ffff8ef36cb509c0 RSI: 0000000000000001 RDI: ffff8ef27e8f2e80
[ 5643.197843] RBP: 00000000ffffffff R08: ffff8ef39379f928 R09: ffff8ef36cb509c0
[ 5643.197843] R10: 0000000000000000 R11: 0000000000000001 R12: ffff952b854efec0
[ 5643.197844] R13: ffff8ef3773d9200 R14: 0000000000000001 R15: ffff8ef27e8f2e80
[ 5643.197844] FS: 00007fb4230b9740(0000) GS:ffff8ef3dec00000(0000) knlGS:0000000000000000
[ 5643.197845] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5643.197846] CR2: 00000000bfbfbf08 CR3: 00000003bbde7004 CR4: 00000000003606f0
[ 5643.197846] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 5643.197847] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 5643.197847] Call Trace:
[ 5643.197850] seq_read+0x13b/0x3c0
[ 5643.197852] __vfs_read+0x1e/0x130
[ 5643.197854] ? common_file_perm+0xcf/0x130
[ 5643.197855] vfs_read+0x85/0x110
[ 5643.197856] ksys_read+0x3a/0x90
[ 5643.197858] do_syscall_64+0x53/0x300
[ 5643.197860] ? page_fault+0x8/0x30
[ 5643.197861] ? do_page_fault+0x1b/0x5e
[ 5643.197862] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 5643.197864] RIP: 0033:0x7fb4229b8901
[ 5643.197864] RSP: 002b:00007fff9fe0e068 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[ 5643.197865] RAX: ffffffffffffffda RBX: 00005648e71aa330 RCX: 00007fb4229b8901
[ 5643.197865] RDX: 0000000000001000 RSI: 00005648e71aa7f0 RDI: 0000000000000004
[ 5643.197866] RBP: 0000000000000d68 R08: 0000000000000003 R09: 0000000000000000
[ 5643.197866] R10: 00005648e71a1010 R11: 0000000000000246 R12: 00007fb422c815c0
[ 5643.197867] R13: 00007fb422c82100 R14: 000000000000007f R15: 00005648e71aa330
[ 5643.197868] Code: de ff ff eb b8 5b 5d 41 5c c3 0f 1f 00 55 53 4c 8b 4f 78 49 8b 01 48 8b 40 08 4c 8b 40 60 49 8b 40 28 48 85 c0 0f 84 b0 00 00 00 <48>
8b 68 08 48 8b 4f 18 48 8b 47 08 48 39 c1 0f 87 ae 00 00 00
[ 5643.197881] RIP: sysfs_kf_seq_show+0x1e/0x100 RSP: ffff952b854efd98
[ 5643.197881] CR2: 00000000bfbfbf08
[ 5643.197882] ---[ end trace 1347051bc2a6e340 ]---
can add more info if needed with debug kernel options, patches or whatever.