igt@kms_selftest@drm_framebuffer@drm_test_framebuffer_free - abort - WARNING: * at drivers/gpu/drm/drm_framebuffer.c:* drm_framebuffer_free
<6> [45.433597] [IGT] kms_selftest: starting dynamic subtest drm_test_framebuffer_free
<6> [45.528259] KTAP version 1
<6> [45.528268] 1..1
<6> [45.528584] KTAP version 1
<6> [45.528594] # Subtest: drm_framebuffer
<6> [45.528601] # module: drm_framebuffer_test
<6> [45.528640] 1..1
<4> [45.530119] ------------[ cut here ]------------
<4> [45.530126] drm-kunit-mock-device drm_test_framebuffer_free.drm-kunit-mock-device: [drm] drm_WARN_ON(!list_empty(&fb->filp_head))
<4> [45.530154] WARNING: CPU: 5 PID: 1098 at drivers/gpu/drm/drm_framebuffer.c:832 drm_framebuffer_free+0x71/0x80
<4> [45.530168] Modules linked in: drm_framebuffer_test drm_kunit_helpers kunit fuse snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_scodec_component i915 x86_pkg_temp_thermal coretemp kvm_intel kvm snd_hda_intel snd_intel_dspcfg snd_hda_codec smsc75xx prime_numbers usbnet i2c_algo_bit crct10dif_pclmul snd_hwdep mei_hdcp mei_pxp wmi_bmof mii e1000e igc snd_hda_core ttm i2c_i801 crc32_pclmul ghash_clmulni_intel ptp i2c_mux drm_display_helper video mei_me snd_pcm pps_core i2c_smbus mei drm_buddy intel_lpss_pci wmi [last unloaded: drm_framebuffer_test]
<4> [45.530301] CPU: 5 UID: 0 PID: 1098 Comm: kunit_try_catch Tainted: G N 6.11.0-rc7-CI_DRM_15406-g7fc279c7cf79+ #1
<4> [45.530310] Tainted: [N]=TEST
<4> [45.530314] Hardware name: Intel Corporation Rocket Lake Client Platform/RocketLake S SODIMM RVP, BIOS RKLSFWI1.R00.3173.A03.2204210138 04/21/2022
<4> [45.530318] RIP: 0010:drm_framebuffer_free+0x71/0x80
<4> [45.530327] Code: 4c 8b 6f 50 4d 85 ed 75 03 4c 8b 2f e8 48 c5 03 00 48 c7 c1 88 00 4f 82 4c 89 ea 48 c7 c7 53 8f 45 82 48 89 c6 e8 1f be 80 ff <0f> 0b eb ad 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
<4> [45.530333] RSP: 0018:ffffc900006b3d60 EFLAGS: 00010282
<4> [45.530341] RAX: 0000000000000000 RBX: ffffc900006b3dc8 RCX: 0000000000000000
<4> [45.530346] RDX: 0000000000000002 RSI: ffffffff8243ccc2 RDI: 00000000ffffffff
<4> [45.530351] RBP: ffff888111d34000 R08: 0000000000000000 R09: ffffc900006b3b90
<4> [45.530355] R10: 0000000000000001 R11: 0000000000000001 R12: ffffc900006b3da0
<4> [45.530359] R13: ffff888102d99540 R14: ffffffffa0ab4520 R15: ffffc90001fc78e0
<4> [45.530364] FS: 0000000000000000(0000) GS:ffff88844f540000(0000) knlGS:0000000000000000
<4> [45.530370] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [45.530374] CR2: 00007fbf1ed819f0 CR3: 000000010f34a006 CR4: 0000000000770ef0
<4> [45.530380] PKRU: 55555554
<4> [45.530384] Call Trace:
<4> [45.530388] <TASK>
<4> [45.530393] ? __warn+0x8c/0x190
<4> [45.530403] ? drm_framebuffer_free+0x71/0x80
<4> [45.530436] ? report_bug+0x1f8/0x200
<4> [45.530446] ? prb_read_valid+0x16/0x20
<4> [45.530456] ? handle_bug+0x3c/0x70
<4> [45.530464] ? exc_invalid_op+0x18/0x70
<4> [45.530471] ? asm_exc_invalid_op+0x1a/0x20
<4> [45.530479] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [kunit]
<4> [45.530503] ? drm_framebuffer_free+0x71/0x80
<4> [45.530514] drm_test_framebuffer_free+0x88/0x220 [drm_framebuffer_test]
<4> [45.530540] kunit_try_run_case+0x6d/0x150 [kunit]
<4> [45.530555] ? __kthread_parkme+0x31/0xa0
<4> [45.530563] ? lockdep_hardirqs_on+0x7b/0x100
<4> [45.530575] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [kunit]
<4> [45.530587] kunit_generic_run_threadfn_adapter+0x19/0x40 [kunit]
<4> [45.530606] kthread+0xeb/0x120
<4> [45.530616] ? __pfx_kthread+0x10/0x10
<4> [45.530630] ret_from_fork+0x2c/0x50
<4> [45.530641] ? __pfx_kthread+0x10/0x10
<4> [45.530652] ret_from_fork_asm+0x1a/0x30
<4> [45.530682] </TASK>
<4> [45.530689] irq event stamp: 1017
<4> [45.530696] hardirqs last enabled at (1023): [<ffffffff8113ec40>] console_unlock+0x110/0x120
<4> [45.530711] hardirqs last disabled at (1028): [<ffffffff8113ec25>] console_unlock+0xf5/0x120
<4> [45.530723] softirqs last enabled at (902): [<ffffffff810a492c>] handle_softirqs+0x2ec/0x3f0
<4> [45.530737] softirqs last disabled at (897): [<ffffffff810a50a7>] irq_exit_rcu+0x87/0xc0
<4> [45.530749] ---[ end trace 0000000000000000 ]---
<6> [45.543662] ok 1 drm_test_framebuffer_free
<6> [45.543685] ok 1 drm_framebuffer
<6> [45.558090] [IGT] kms_selftest: finished subtest drm_test_framebuffer_free, FAIL
<6> [45.558172] [IGT] kms_selftest: finished subtest drm_framebuffer, FAIL
<6> [45.656084] [IGT] kms_selftest: exiting, ret=98
<6> [45.677285] Console: switching to colour frame buffer device 240x67
Edited by Tejasree Illipilli