============================================ WARNING: possible recursive locking detected 6.6.0-rc5-syzkaller-00250-g70f8c6f8f880 #0 Not tainted -------------------------------------------- syz-executor.0/5073 is trying to acquire lock: ffff888066100888 (&data->mtx){+.+.}-{3:3}, at: rfkill_send_events+0x228/0x460 net/rfkill/core.c:286 but task is already holding lock: ffff888066126c88 (&data->mtx){+.+.}-{3:3}, at: rfkill_fop_open+0x143/0x860 net/rfkill/core.c:1183 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&data->mtx); lock(&data->mtx); *** DEADLOCK *** May be due to missing lock nesting notation 3 locks held by syz-executor.0/5073: #0: ffffffff8da7bd28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x5c/0x380 drivers/char/misc.c:129 #1: ffffffff8e79d8a8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_open+0x134/0x860 net/rfkill/core.c:1182 #2: ffff888066126c88 (&data->mtx){+.+.}-{3:3}, at: rfkill_fop_open+0x143/0x860 net/rfkill/core.c:1183 stack backtrace: CPU: 0 PID: 5073 Comm: syz-executor.0 Not tainted 6.6.0-rc5-syzkaller-00250-g70f8c6f8f880 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 check_deadlock kernel/locking/lockdep.c:3062 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x6a81/0x7f70 kernel/locking/lockdep.c:5136 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5753 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x136/0xd60 kernel/locking/mutex.c:747 rfkill_send_events+0x228/0x460 net/rfkill/core.c:286 rfkill_sync net/rfkill/core.c:379 [inline] rfkill_fop_open+0x2b9/0x860 net/rfkill/core.c:1193 misc_open+0x30b/0x380 drivers/char/misc.c:165 chrdev_open+0x551/0x630 fs/char_dev.c:414 do_dentry_open+0x80f/0x1430 fs/open.c:929 do_open fs/namei.c:3639 [inline] path_openat+0x27bb/0x3180 fs/namei.c:3796 do_filp_open+0x234/0x490 fs/namei.c:3823 do_sys_openat2+0x13e/0x1d0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2f4387b6e0 Code: 48 89 44 24 20 75 93 44 89 54 24 0c e8 09 82 02 00 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 5c 82 02 00 8b 44 RSP: 002b:00007fff4582d950 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f2f4387b6e0 RDX: 0000000000000002 RSI: 00007f2f438c7787 RDI: 00000000ffffff9c RBP: 00007f2f438c7787 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 00007fff4582e118 R13: 00007fff4582e118 R14: 0000000000000001 R15: 00000000fffffff1 ieee80211 phy12: Selected rate control algorithm 'minstrel_ht'