------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 2 PID: 831 at lib/refcount.c:28 refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Modules linked in: CPU: 2 UID: 0 PID: 831 Comm: kworker/2:2 Not tainted 6.13.0-rc2-syzkaller-00292-ga446e965a188 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events rfkill_op_handler RIP: 0010:refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Code: ff 89 de e8 98 25 fa fc 84 db 0f 85 66 ff ff ff e8 ab 23 fa fc c6 05 46 ea a7 0b 01 90 48 c7 c7 e0 80 d1 8b e8 f7 6e ba fc 90 <0f> 0b 90 90 e9 43 ff ff ff e8 88 23 fa fc 0f b6 1d 21 ea a7 0b 31 RSP: 0018:ffffc900055c7828 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff815a5079 RDX: ffff8880255ba440 RSI: ffffffff815a5086 RDI: 0000000000000001 RBP: ffff888037e81878 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000007 R12: ffff88804dd05800 R13: ffff888037e81878 R14: ffffffff85c49f30 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff88806a800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb0d5f8cf98 CR3: 000000004517c000 CR4: 0000000000352ef0 DR0: fffffffffffffffb DR1: 0000000000000000 DR2: 0000000000000002 DR3: 0000000000000800 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_sub_and_test include/linux/refcount.h:275 [inline] __refcount_dec_and_test include/linux/refcount.h:307 [inline] refcount_dec_and_test include/linux/refcount.h:325 [inline] kref_put include/linux/kref.h:64 [inline] klist_dec_and_del lib/klist.c:206 [inline] klist_put+0x11b/0x1b0 lib/klist.c:217 klist_del lib/klist.c:230 [inline] klist_remove+0x140/0x2b0 lib/klist.c:249 device_move+0x12d/0x10b0 drivers/base/core.c:4636 hci_conn_del_sysfs+0x81/0x170 net/bluetooth/hci_sysfs.c:75 hci_conn_cleanup net/bluetooth/hci_conn.c:174 [inline] hci_conn_del+0x54e/0xdb0 net/bluetooth/hci_conn.c:1164 hci_conn_hash_flush+0x4bf/0x790 net/bluetooth/hci_conn.c:2699 hci_dev_close_sync+0x603/0x11a0 net/bluetooth/hci_sync.c:5212 hci_dev_do_close+0x2e/0x90 net/bluetooth/hci_core.c:482 hci_rfkill_set_block+0x225/0x360 net/bluetooth/hci_core.c:910 rfkill_set_block+0x203/0x560 net/rfkill/core.c:346 rfkill_epo+0x8e/0x1d0 net/rfkill/core.c:466 __rfkill_handle_global_op net/rfkill/input.c:60 [inline] rfkill_op_handler+0x262/0x280 net/rfkill/input.c:108 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244