igt@i915_selftest@(live|perf) - i915_selftest/\d+ is freeing memory .*, with a lock still held there! (&dev->mutex) at: device_release_driver_internal, lock held by i915_selftest.*, (&dev->mutex), at: device_release_driver_internal
https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7019/shard-glk3/igt@i915_selftest@live.html
<7> [451.291356] i915 0000:00:02.0: HDMI infoframe: Source Product Description (SPD), version 1, length 25
<7> [451.291361] i915 0000:00:02.0: vendor: Intel
<7> [451.291364] i915 0000:00:02.0: product: Integrated gfx
<7> [451.291367] i915 0000:00:02.0: source device information: PC General (0x9)
<7> [451.291371] i915 0000:00:02.0: HDMI infoframe: Vendor, version 1, length 4
<7> [451.291375] i915 0000:00:02.0: empty frame
<7> [451.291380] i915 0000:00:02.0: HDMI infoframe: Auxiliary Video Information (AVI), version 2, length 13
<7> [451.291384] i915 0000:00:02.0: colorspace: RGB
<7> [451.291388] i915 0000:00:02.0: scan mode: Underscan
<7> [451.291391] i915 0000:00:02.0: colorimetry: No Data
<7> [451.291394] i915 0000:00:02.0: picture aspect: No Data
<7> [451.291398] i915 0000:00:02.0: active aspect: Same as Picture
<7> [451.291401] i915 0000:00:02.0: itc: No Data
<7> [451.291404] i915 0000:00:02.0: extended colorimetry: xvYCC 601
<7> [451.291407] i915 0000:00:02.0: quantization range: Full
<7> [451.291411] i915 0000:00:02.0: nups: Unknown Non-uniform Scaling
<7> [451.291414] i915 0000:00:02.0: video code: 0
<7> [451.291417] i915 0000:00:02.0: ycc quantization range: Full
<7> [451.291421] i915 0000:00:02.0: hdmi content type: Graphics
<7> [451.291424] i915 0000:00:02.0: pixel repeat: 0
<7> [451.291427] i915 0000:00:02.0: bar top 0, bottom 0, left 0, right 0
<7> [451.291431] i915 0000:00:02.0: HDMI infoframe: Source Product Description (SPD), version 1, length 25
<7> [451.297491] i915 0000:00:02.0: vendor: Intel
<7> [451.297498] i915 0000:00:02.0: product: Integrated gfx
<7> [451.297502] i915 0000:00:02.0: source device information: PC General (0x9)
<7> [451.297508] i915 0000:00:02.0: HDMI infoframe: Vendor, version 1, length 4
<7> [451.297512] i915 0000:00:02.0: empty frame
<7> [451.567765] intel_gt_set_wedged called from intel_gt_set_wedged_on_fini+0x9/0x30 [i915]
<4> [451.674022]
<4> [451.674035] =========================
<4> [451.674040] WARNING: held lock freed!
<4> [451.674045] 6.1.0-rc1-CI_DRM_12257-gb249abef9f86+ #1 Not tainted
<4> [451.674053] -------------------------
<4> [451.674057] i915_selftest/1741 is freeing memory ffff8881012e9000-ffff8881012e9fff, with a lock still held there!
<4> [451.674069] ffff8881012e91b8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x15/0x160
<4> [451.674093] 1 lock held by i915_selftest/1741:
<4> [451.674099] #0: ffff8881012e91b8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x15/0x160
<4> [451.674116]
stack backtrace:
<4> [451.674122] CPU: 1 PID: 1741 Comm: i915_selftest Not tainted 6.1.0-rc1-CI_DRM_12257-gb249abef9f86+ #1
<4> [451.674133] Hardware name: Intel Corporation NUC7CJYH/NUC7JYB, BIOS JYGLKCPX.86A.0027.2018.0125.1347 01/25/2018
<4> [451.674145] Call Trace:
<4> [451.674150] <TASK>
<4> [451.674154] dump_stack_lvl+0x56/0x7f
<4> [451.674165] debug_check_no_locks_freed.cold.62+0x78/0x7d
<4> [451.674176] ? device_release+0x2b/0x80
<4> [451.674184] __kmem_cache_free+0x75/0x1d0
<4> [451.674194] device_release+0x2b/0x80
<4> [451.674200] kobject_put+0x87/0x1d0
<4> [451.674209] drm_dev_init_release+0x31/0x70
<4> [451.674216] drm_managed_release+0x60/0x150
<4> [451.674225] drm_dev_release+0x26/0x40
<4> [451.674231] release_nodes+0x41/0x130
<4> [451.674239] devres_release_all+0x83/0xc0
<4> [451.674248] device_unbind_cleanup+0x9/0x70
<4> [451.674256] device_release_driver_internal+0xe9/0x160
<4> [451.674265] driver_detach+0x42/0x90
<4> [451.674273] bus_remove_driver+0x53/0xd0
<4> [451.674280] pci_unregister_driver+0x25/0xa0
<4> [451.674289] i915_exit+0x8a/0x2b9 [i915]
<4> [451.674620] __x64_sys_delete_module+0x11a/0x200
<4> [451.674630] ? lockdep_hardirqs_on+0xbf/0x140
<4> [451.674640] do_syscall_64+0x37/0x90
<4> [451.674648] entry_SYSCALL_64_after_hwframe+0x63/0xcd
<4> [451.674659] RIP: 0033:0x7f8a8c996bcb
<4> [451.674667] Code: 73 01 c3 48 8b 0d c5 82 0c 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 95 82 0c 00 f7 d8 64 89 01 48
<4> [451.674685] RSP: 002b:00007ffeb278e108 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
<4> [451.674696] RAX: ffffffffffffffda RBX: 000055e8b508b070 RCX: 00007f8a8c996bcb
<4> [451.674704] RDX: 000000000000001a RSI: 0000000000000800 RDI: 000055e8b508b0d8
<4> [451.674712] RBP: 0000000000000000 R08: 00000000ffffffff R09: 00007ffeb278cec0
<4> [451.674720] R10: 0000000000000000 R11: 0000000000000206 R12: 00007f8a8cb271da
<4> [451.674728] R13: 0000000000000000 R14: 0000000000000000 R15: 000055e8b508b070
<4> [451.674739] </TASK>
<4> [451.675222] general protection fault, probably for non-canonical address 0x1ad998badadad88: 0000 [#1] PREEMPT SMP PTI
<4> [451.675236] CPU: 1 PID: 1741 Comm: i915_selftest Not tainted 6.1.0-rc1-CI_DRM_12257-gb249abef9f86+ #1
<4> [451.675247] Hardware name: Intel Corporation NUC7CJYH/NUC7JYB, BIOS JYGLKCPX.86A.0027.2018.0125.1347 01/25/2018
<4> [451.675256] RIP: 0010:kfree+0x60/0x190
<4> [451.675264] Code: 01 eb 0f 82 44 01 00 00 48 b8 00 00 00 80 7f 77 00 00 48 01 c3 48 b8 00 00 00 00 00 ea ff ff 48 c1 eb 0c 48 c1 e3 06 48 01 c3 <48> 8b 43 08 a8 01 0f 85 00 01 00 00 66 90 48 89 df e8 ba f8 ff ff
<4> [451.675281] RSP: 0018:ffffc9000100fe18 EFLAGS: 00010203
<4> [451.675288] RAX: ffffea0000000000 RBX: 01ad998badadad80 RCX: 0000000000000000
<4> [451.675296] RDX: 0000000080000001 RSI: ffffffff8175cab5 RDI: ffffc9000100fe07
<4> [451.675304] RBP: 6b6b6b6b6b6b6b6b R08: 0000000000000000 R09: 0000000000000000
<4> [451.675311] R10: ffff888276d0e9c8 R11: 0000000000000001 R12: ffffffffa055db58
<4> [451.675318] R13: ffffffffa055dbe8 R14: 0000000000000000 R15: 0000000000000000
<4> [451.675326] FS: 00007f8a8a1bdc00(0000) GS:ffff888277c80000(0000) knlGS:0000000000000000
<4> [451.675334] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [451.675341] CR2: 000055fd3587e758 CR3: 00000001218ec000 CR4: 0000000000350ee0
<4> [451.675349] Call Trace:
<4> [451.675353] <TASK>
<4> [451.675357] device_unbind_cleanup+0x15/0x70
<4> [451.675365] device_release_driver_internal+0xe9/0x160
<4> [451.675373] driver_detach+0x42/0x90
<4> [451.675380] bus_remove_driver+0x53/0xd0
<4> [451.675387] pci_unregister_driver+0x25/0xa0
<4> [451.675396] i915_exit+0x8a/0x2b9 [i915]
<4> [451.675658] __x64_sys_delete_module+0x11a/0x200
<4> [451.675667] ? lockdep_hardirqs_on+0xbf/0x140
<4> [451.675675] do_syscall_64+0x37/0x90
<4> [451.675682] entry_SYSCALL_64_after_hwframe+0x63/0xcd
<4> [451.675690] RIP: 0033:0x7f8a8c996bcb
<4> [451.675695] Code: 73 01 c3 48 8b 0d c5 82 0c 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 95 82 0c 00 f7 d8 64 89 01 48
<4> [451.675712] RSP: 002b:00007ffeb278e108 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0
<4> [451.675721] RAX: ffffffffffffffda RBX: 000055e8b508b070 RCX: 00007f8a8c996bcb
<4> [451.675728] RDX: 000000000000001a RSI: 0000000000000800 RDI: 000055e8b508b0d8
<4> [451.675736] RBP: 0000000000000000 R08: 00000000ffffffff R09: 00007ffeb278cec0
<4> [451.675743] R10: 0000000000000000 R11: 0000000000000206 R12: 00007f8a8cb271da
<4> [451.675750] R13: 0000000000000000 R14: 0000000000000000 R15: 000055e8b508b070
<4> [451.675760] </TASK>
<4> [451.675764] Modules linked in: i915(-) drm_display_helper drm_ttm_helper gpu_sched vgem drm_shmem_helper fuse x86_pkg_temp_thermal coretemp kvm_intel snd_hda_codec_hdmi btusb btrtl btbcm snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio btintel wmi_bmof kvm bluetooth irqbypass ecdh_generic crct10dif_pclmul ecc crc32_pclmul ghash_clmulni_intel r8169 i2c_i801 realtek i2c_smbus snd_intel_dspcfg prime_numbers ttm snd_hda_codec drm_buddy snd_hwdep snd_hda_core drm_kms_helper video mei_me syscopyarea snd_pcm sysfillrect sysimgblt pinctrl_geminilake mei fb_sys_fops wmi [last unloaded: mei_hdcp]
<4> [451.676211] ---[ end trace 0000000000000000 ]---
<4> [451.912334] RIP: 0010:kfree+0x60/0x190
<4> [451.912353] Code: 01 eb 0f 82 44 01 00 00 48 b8 00 00 00 80 7f 77 00 00 48 01 c3 48 b8 00 00 00 00 00 ea ff ff 48 c1 eb 0c 48 c1 e3 06 48 01 c3 <48> 8b 43 08 a8 01 0f 85 00 01 00 00 66 90 48 89 df e8 ba f8 ff ff
<4> [451.912371] RSP: 0018:ffffc9000100fe18 EFLAGS: 00010203
<4> [451.912379] RAX: ffffea0000000000 RBX: 01ad998badadad80 RCX: 0000000000000000
<4> [451.912387] RDX: 0000000080000001 RSI: ffffffff8175cab5 RDI: ffffc9000100fe07
<4> [451.912395] RBP: 6b6b6b6b6b6b6b6b R08: 0000000000000000 R09: 0000000000000000
<4> [451.912402] R10: ffff888276d0e9c8 R11: 0000000000000001 R12: ffffffffa055db58
<4> [451.912410] R13: ffffffffa055dbe8 R14: 0000000000000000 R15: 0000000000000000
<4> [451.912417] FS: 00007f8a8a1bdc00(0000) GS:ffff888277c80000(0000) knlGS:0000000000000000
<4> [451.912426] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [451.912433] CR2: 000055fd3587e758 CR3: 00000001218ec000 CR4: 0000000000350ee0