ADL: BUG: kernel NULL pointer dereference on driver removal
on ALD using DP1
00:02.0 VGA compatible controller [0300]: Intel Corporation AlderLake-S GT1 [8086:4680] (rev 0c)
root@ALD:/sys/kernel/debug/dri/0# cat info
graphics_verx100 1200
media_verx100 1200
stepping G:D0 M:D0 D:C0 B:**
is_dgfx no
platform 6
subplatform 0
devid 0x4680
revid 12
tile_count 1
vm_max_level 3
enable_guc yes
supports_usm no
has_flat_ccs no
gt0 force wake 0
gt0 engine_mask 0x41403
[CRTC:80:pipe A]:
uapi: enable=yes, active=yes, mode="3840x2160": 30 262750 3840 3888 3920 4000 2160 2163 2168 2191 0x40 0x9
hw: enable=yes, active=yes
adjusted_mode="3840x2160": 30 262750 3840 3888 3920 4000 2160 2163 2168 2191 0x40 0x9
pipe__mode="3840x2160": 30 262750 3840 3888 3920 4000 2160 2163 2168 2191 0x40 0x9
pipe src=3840x2160+0+0, dither=no, bpp=30
num_scalers=2, scaler_users=0 scaler_id=-1 scaling_filter=0, scalers[0]: use=no, mode=0, scalers[1]: use=no, mode=0
[ENCODER:194:DDI TC2/PHY C]: connectors:
[CONNECTOR:195:DP-1]
[PLANE:31:plane 1A]: type=PRI
uapi: [FB:219] XR24 little-endian (0x34325258),0x0,3840x2160, visible=visible, src=3840.000000x2160.000000+0.000000+0.000000, dst=3840x2160+0+0, rotation=0 (0x00000001)
hw: [FB:219] XR24 little-endian (0x34325258),0x0,3840x2160, visible=yes, src=3840.000000x2160.000000+0.000000+0.000000, dst=3840x2160+0+0, rotation=0 (0x00000001)
[PLANE:40:plane 2A]: type=OVL
uapi: [FB:0] n/a,0x0,0x0,, visible=hidden, src=0.000000x0.000000+0.000000+0.000000, dst=0x0+0+0, rotation=0 (0x00000001)
[PLANE:49:plane 3A]: type=OVL
uapi: [FB:0] n/a,0x0,0x0,, visible=hidden, src=0.000000x0.000000+0.000000+0.000000, dst=0x0+0+0, rotation=0 (0x00000001)
[PLANE:58:plane 4A]: type=OVL
uapi: [FB:0] n/a,0x0,0x0,, visible=hidden, src=0.000000x0.000000+0.000000+0.000000, dst=0x0+0+0, rotation=0 (0x00000001)
[PLANE:67:plane 5A]: type=OVL
uapi: [FB:0] n/a,0x0,0x0,, visible=hidden, src=0.000000x0.000000+0.000000+0.000000, dst=0x0+0+0, rotation=0 (0x00000001)
[PLANE:76:cursor A]: type=CUR
uapi: [FB:0] n/a,0x0,0x0,, visible=hidden, src=0.000000x0.000000+0.000000+0.000000, dst=0x0+0+0, rotation=0 (0x00000001)
[ 301.162758] Console: switching to colour dummy device 80x25
[ 302.168420] BUG: kernel NULL pointer dereference, address: 0000000000000030
[ 302.175431] #PF: supervisor read access in kernel mode
[ 302.180600] #PF: error_code(0x0000) - not-present page
[ 302.185778] PGD 0 P4D 0
[ 302.188334] Oops: 0000 [#1] PREEMPT SMP NOPTI
[ 302.192724] CPU: 10 PID: 7139 Comm: rmmod Not tainted 6.1.0-rc1-0712+ #2
[ 302.199469] Hardware name: Gigabyte Technology Co., Ltd. H610M S2H DDR4/H610M S2H DDR4, BIOS F20 10/26/2022
[ 302.209254] RIP: 0010:drm_connector_list_iter_next+0x55/0xb0 [drm]
[ 302.215499] Code: 4d 8d 87 68 02 00 00 49 8d 54 24 20 4d 85 e4 49 0f 44 d0 49 89 c5 48 8b 12 4c 39 c2 74 5a 48 8d 42 e0 48 8d 7a 30 48 89 43 08 <8b> 4a 30 85 c9 74 e5 8d 71 01 89 c8 f0 0f b1 37 75 38 09 f1 78 2b
[ 302.234342] RSP: 0018:ffffa8c3498efd10 EFLAGS: 00010013
[ 302.239604] RAX: ffffffffffffffe0 RBX: ffffa8c3498efd48 RCX: 0000000000000000
[ 302.246797] RDX: 0000000000000000 RSI: ffffa8c3498efd48 RDI: 0000000000000030
[ 302.253976] RBP: ffffa8c3498efd38 R08: ffff8cab61890268 R09: 000000000000ffff
[ 302.261151] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
[ 302.268325] R13: 0000000000000246 R14: ffff8cab61890250 R15: ffff8cab61890000
[ 302.275506] FS: 00007efd0fba6c40(0000) GS:ffff8cb29f880000(0000) knlGS:0000000000000000
[ 302.283635] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 302.289422] CR2: 0000000000000030 CR3: 000000010c57c004 CR4: 0000000000770ee0
[ 302.296598] PKRU: 55555554
[ 302.299331] Call Trace:
[ 302.301806] <TASK>
[ 302.303932] intel_hpd_poll_fini+0x51/0xa0 [xe]
[ 302.308534] xe_device_remove+0x43/0x70 [xe]
[ 302.312852] xe_pci_remove+0x1e/0x40 [xe]
[ 302.316907] pci_device_remove+0x36/0xb0
[ 302.320859] device_remove+0x43/0x70
[ 302.324468] device_release_driver_internal+0x1b8/0x230
[ 302.329725] driver_detach+0x4a/0x90
[ 302.333323] bus_remove_driver+0x59/0xe0
[ 302.337277] driver_unregister+0x31/0x60
[ 302.341232] pci_unregister_driver+0x40/0x90
[ 302.345534] xe_unregister_pci_driver+0x15/0x20 [xe]
[ 302.350551] xe_exit+0x9/0x1a [xe]
[ 302.354004] __x64_sys_delete_module+0x188/0x2f0
[ 302.358650] ? debug_smp_processor_id+0x17/0x20
[ 302.363209] ? exit_to_user_mode_prepare+0x45/0x1a0
[ 302.368124] do_syscall_64+0x38/0x90
[ 302.371722] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 302.376808] RIP: 0033:0x7efd0f326c9b
[ 302.380416] Code: 73 01 c3 48 8b 0d 95 21 0f 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 65 21 0f 00 f7 d8 64 89 01 48
[ 302.399256] RSP: 002b:00007ffe640077c8 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
[ 302.406871] RAX: ffffffffffffffda RBX: 0000561951cf17c0 RCX: 00007efd0f326c9b
[ 302.414042] RDX: 000000000000000a RSI: 0000000000000800 RDI: 0000561951cf1828
[ 302.421217] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[ 302.428396] R10: 00007efd0f3beac0 R11: 0000000000000206 R12: 00007ffe64007a20
[ 302.435568] R13: 0000561951cf12a0 R14: 00007ffe64009745 R15: 0000561951cf17c0
[ 302.442743] </TASK>
[ 302.444959] Modules linked in: xe(-) drm_ttm_helper drm_suballoc_helper gpu_sched drm_buddy ttm drm_display_helper cec rc_core drm_kms_helper i2c_algo_bit fb_sys_fops syscopyarea sysfillrect sysimgblt xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c bpfilter br_netfilter bridge stp llc overlay binfmt_misc nls_iso8859_1 intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul ghash_clmulni_intel sha512_ssse3 aesni_intel crypto_simd cryptd mei_hdcp rapl intel_cstate input_leds wmi_bmof efi_pstore ee1004 mei_me mei intel_hid mac_hid sparse_keymap acpi_pad acpi_tad sch_fq_codel ipmi_devintf ipmi_msghandler msr parport_pc ppdev lp parport drm nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables x_tables autofs4 hid_generic usbhid hid nvme intel_lpss_pci i2c_i801 ahci intel_lpss crc32_pclmul e1000e nvme_core
[ 302.444992] i2c_smbus idma64 libahci xhci_pci virt_dma xhci_pci_renesas video wmi pinctrl_alderlake
[ 302.541386] CR2: 0000000000000030
[ 302.544732] ---[ end trace 0000000000000000 ]---
[ 302.590522] RIP: 0010:drm_connector_list_iter_next+0x55/0xb0 [drm]
[ 302.596761] Code: 4d 8d 87 68 02 00 00 49 8d 54 24 20 4d 85 e4 49 0f 44 d0 49 89 c5 48 8b 12 4c 39 c2 74 5a 48 8d 42 e0 48 8d 7a 30 48 89 43 08 <8b> 4a 30 85 c9 74 e5 8d 71 01 89 c8 f0 0f b1 37 75 38 09 f1 78 2b
[ 302.615606] RSP: 0018:ffffa8c3498efd10 EFLAGS: 00010013
[ 302.620866] RAX: ffffffffffffffe0 RBX: ffffa8c3498efd48 RCX: 0000000000000000
[ 302.628039] RDX: 0000000000000000 RSI: ffffa8c3498efd48 RDI: 0000000000000030
[ 302.635214] RBP: ffffa8c3498efd38 R08: ffff8cab61890268 R09: 000000000000ffff
[ 302.642399] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
[ 302.649575] R13: 0000000000000246 R14: ffff8cab61890250 R15: ffff8cab61890000
[ 302.656754] FS: 00007efd0fba6c40(0000) GS:ffff8cb29f880000(0000) knlGS:0000000000000000
[ 302.664882] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 302.670664] CR2: 0000000000000030 CR3: 000000010c57c004 CR4: 0000000000770ee0
[ 302.677837] PKRU: 55555554