From: bugzilla-daemon@freedesktop.org Subject: [Bug 104274] Unable to cleanly unload kernel module: BUG: unable to handle kernel NULL pointer dereference at 0000000000000258 (mutex_lock) Date: Tue, 05 Jun 2018 03:39:16 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1567069814==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 0ACCE6EC6D for ; Tue, 5 Jun 2018 03:39:16 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1567069814== Content-Type: multipart/alternative; boundary="15281699551.CeFAD.5633" Content-Transfer-Encoding: 7bit --15281699551.CeFAD.5633 Date: Tue, 5 Jun 2018 03:39:15 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D104274 --- Comment #15 from Sverd Johnsen --- Seems to be much better or completly (well almost, bug 106820) solved with = 4.17 according to my preliminary tests. Still a problem in 4.16: [16981.789980] [drm] amdgpu: finishing device. [16981.901013] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 [16981.901017] IP: (null) [16981.901018] PGD 0 P4D 0=20 [16981.901020] Oops: 0010 [#1] PREEMPT SMP PTI [16981.901022] Modules linked in: amdgpu(-) chash gpu_sched ttm fuse af_pac= ket macvtap macvlan bonding nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_nat nft_chain_nat_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv6 nf_log_ipv4 nf_log_common nft_log nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nft_ct nf_conntrack xfrm_user xfrm_algo nft_counter nft_meta nft_set_bitmap nft_set_hash nft_set_rbtree cls_u32 nf_tables_inet sch_htb raid0 intel_pmc_core x86_pkg_temp_thermal intel_powerclamp kvm_intel vhost_net tun vhost tap kvm snd_hda_codec_realtek bcache snd_hda_codec_generic intel_cstate intel_uncore snd_hda_codec_hdmi efi_pstore md_mod snd_hda_intel snd_hda_codec intel_rapl_perf efivars snd_h= wdep snd_hda_core mei_me mei plusb snd_pcm input_leds usbnet mii led_class tpm_c= rb binfmt_misc [16981.901045] crypto_user efivarfs algif_skcipher af_alg mousedev joydev psmouse atkbd libps2 tpm_tis crct10dif_pclmul tpm_tis_core crc32_pclmul tpm ghash_clmulni_intel pcspkr rng_core shpchp thermal fan i8042 acpi_pad vfio_= pci irqbypass vfio_virqfd vfio_iommu_type1 vfio [16981.901055] CPU: 1 PID: 23604 Comm: rmmod Not tainted 4.16.12-5-ph #2 [16981.901056] Hardware name: Gigabyte Technology Co., Ltd. Z170X-UD3/Z170X-UD3-CF, BIOS F23d 12/01/2017 [16981.901056] RIP: 0010: (null) [16981.901057] RSP: 0018:ffffb8ac03083d08 EFLAGS: 00010286 [16981.901058] RAX: 0000000000000000 RBX: ffffa16af8c39f00 RCX: 000000018020000e [16981.901059] RDX: 000000018020000f RSI: 0000000000005c02 RDI: ffffa16cc19a8240 [16981.901060] RBP: ffffa16c51c42290 R08: 0000000000000001 R09: ffffa16d0cc01900 [16981.901061] R10: ffffa16b845ef300 R11: ffffe4b3ca133420 R12: ffffa16b89eb4400 [16981.901061] R13: 0000000000000040 R14: ffffffffc09aaf68 R15: dead000000000100 [16981.901062] FS: 00007f3733f98b80(0000) GS:ffffa16d1ec80000(0000) knlGS:0000000000000000 [16981.901063] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [16981.901064] CR2: 0000000000000000 CR3: 00000003df3de006 CR4: 00000000003606e0 [16981.901065] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [16981.901066] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [16981.901066] Call Trace: [16981.901087] ? destroy+0x23/0xb0 [amdgpu] [16981.901100] ? dal_i2caux_destruct+0x6a/0xb0 [amdgpu] [16981.901113] ? destroy+0x10/0x30 [amdgpu] [16981.901126] ? dal_i2caux_destroy+0x1d/0x30 [amdgpu] [16981.901137] ? destruct+0x8e/0x110 [amdgpu] [16981.901148] ? dc_destroy+0xc/0x20 [amdgpu] [16981.901162] ? dm_hw_fini+0x19/0x20 [amdgpu] [16981.901173] ? amdgpu_device_ip_fini+0xef/0x30a [amdgpu] [16981.901184] ? amdgpu_device_fini+0x68/0x177 [amdgpu] [16981.901191] ? amdgpu_driver_unload_kms+0x3d/0x90 [amdgpu] [16981.901193] ? drm_dev_unregister+0x3a/0xf0 [16981.901201] ? amdgpu_pci_remove+0x14/0x40 [amdgpu] [16981.901203] ? pci_device_remove+0x36/0xb0 [16981.901205] ? device_release_driver_internal+0x155/0x220 [16981.901206] ? driver_detach+0x32/0x63 [16981.901208] ? bus_remove_driver+0x6f/0xd0 [16981.901209] ? pci_unregister_driver+0x38/0x90 [16981.901220] ? amdgpu_exit+0x11/0x1029 [amdgpu] [16981.901222] ? SyS_delete_module+0x17f/0x240 [16981.901223] ? do_syscall_64+0x5b/0x100 [16981.901226] ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2 [16981.901226] Code: Bad RIP value. [16981.901230] RIP: (null) RSP: ffffb8ac03083d08 [16981.901230] CR2: 0000000000000000 [16981.901232] ---[ end trace f3ff8fc93836e132 ]--- --=20 You are receiving this mail because: You are the assignee for the bug.= --15281699551.CeFAD.5633 Date: Tue, 5 Jun 2018 03:39:15 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 15 on bug 10427= 4 from Sverd Johnsen
Seems to be much better or completly (well almost, bug 106820) solved with 4.17
according to my preliminary tests. Still a problem in 4.16:

[16981.789980] [drm] amdgpu: finishing device.
[16981.901013] BUG: unable to handle kernel NULL pointer dereference at
0000000000000000
[16981.901017] IP:           (null)
[16981.901018] PGD 0 P4D 0=20
[16981.901020] Oops: 0010 [#1] PREEMPT SMP PTI
[16981.901022] Modules linked in: amdgpu(-) chash gpu_sched ttm fuse af_pac=
ket
macvtap macvlan bonding nft_reject_inet nf_reject_ipv4 nf_reject_ipv6
nft_reject nft_nat nft_chain_nat_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv6
nf_log_ipv4 nf_log_common nft_log nf_conntrack_ipv6 nf_defrag_ipv6
nf_conntrack_ipv4 nf_defrag_ipv4 nft_ct nf_conntrack xfrm_user xfrm_algo
nft_counter nft_meta nft_set_bitmap nft_set_hash nft_set_rbtree cls_u32
nf_tables_inet sch_htb raid0 intel_pmc_core x86_pkg_temp_thermal
intel_powerclamp kvm_intel vhost_net tun vhost tap kvm snd_hda_codec_realtek
bcache snd_hda_codec_generic intel_cstate intel_uncore snd_hda_codec_hdmi
efi_pstore md_mod snd_hda_intel snd_hda_codec intel_rapl_perf efivars snd_h=
wdep
snd_hda_core mei_me mei plusb snd_pcm input_leds usbnet mii led_class tpm_c=
rb
binfmt_misc
[16981.901045]  crypto_user efivarfs algif_skcipher af_alg mousedev joydev
psmouse atkbd libps2 tpm_tis crct10dif_pclmul tpm_tis_core crc32_pclmul tpm
ghash_clmulni_intel pcspkr rng_core shpchp thermal fan i8042 acpi_pad vfio_=
pci
irqbypass vfio_virqfd vfio_iommu_type1 vfio
[16981.901055] CPU: 1 PID: 23604 Comm: rmmod Not tainted 4.16.12-5-ph #2
[16981.901056] Hardware name: Gigabyte Technology Co., Ltd.
Z170X-UD3/Z170X-UD3-CF, BIOS F23d 12/01/2017
[16981.901056] RIP: 0010:          (null)
[16981.901057] RSP: 0018:ffffb8ac03083d08 EFLAGS: 00010286
[16981.901058] RAX: 0000000000000000 RBX: ffffa16af8c39f00 RCX:
000000018020000e
[16981.901059] RDX: 000000018020000f RSI: 0000000000005c02 RDI:
ffffa16cc19a8240
[16981.901060] RBP: ffffa16c51c42290 R08: 0000000000000001 R09:
ffffa16d0cc01900
[16981.901061] R10: ffffa16b845ef300 R11: ffffe4b3ca133420 R12:
ffffa16b89eb4400
[16981.901061] R13: 0000000000000040 R14: ffffffffc09aaf68 R15:
dead000000000100
[16981.901062] FS:  00007f3733f98b80(0000) GS:ffffa16d1ec80000(0000)
knlGS:0000000000000000
[16981.901063] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16981.901064] CR2: 0000000000000000 CR3: 00000003df3de006 CR4:
00000000003606e0
[16981.901065] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
0000000000000000
[16981.901066] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7:
0000000000000400
[16981.901066] Call Trace:
[16981.901087]  ? destroy+0x23/0xb0 [amdgpu]
[16981.901100]  ? dal_i2caux_destruct+0x6a/0xb0 [amdgpu]
[16981.901113]  ? destroy+0x10/0x30 [amdgpu]
[16981.901126]  ? dal_i2caux_destroy+0x1d/0x30 [amdgpu]
[16981.901137]  ? destruct+0x8e/0x110 [amdgpu]
[16981.901148]  ? dc_destroy+0xc/0x20 [amdgpu]
[16981.901162]  ? dm_hw_fini+0x19/0x20 [amdgpu]
[16981.901173]  ? amdgpu_device_ip_fini+0xef/0x30a [amdgpu]
[16981.901184]  ? amdgpu_device_fini+0x68/0x177 [amdgpu]
[16981.901191]  ? amdgpu_driver_unload_kms+0x3d/0x90 [amdgpu]
[16981.901193]  ? drm_dev_unregister+0x3a/0xf0
[16981.901201]  ? amdgpu_pci_remove+0x14/0x40 [amdgpu]
[16981.901203]  ? pci_device_remove+0x36/0xb0
[16981.901205]  ? device_release_driver_internal+0x155/0x220
[16981.901206]  ? driver_detach+0x32/0x63
[16981.901208]  ? bus_remove_driver+0x6f/0xd0
[16981.901209]  ? pci_unregister_driver+0x38/0x90
[16981.901220]  ? amdgpu_exit+0x11/0x1029 [amdgpu]
[16981.901222]  ? SyS_delete_module+0x17f/0x240
[16981.901223]  ? do_syscall_64+0x5b/0x100
[16981.901226]  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[16981.901226] Code:  Bad RIP value.
[16981.901230] RIP:           (null) RSP: ffffb8ac03083d08
[16981.901230] CR2: 0000000000000000
[16981.901232] ---[ end trace f3ff8fc93836e132 ]---


You are receiving this mail because:
  • You are the assignee for the bug.
= --15281699551.CeFAD.5633-- --===============1567069814== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1567069814==--