------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 1 PID: 16678 at kernel/locking/lockdep.c:5196 __lock_acquire+0x165b/0x2100 kernel/locking/lockdep.c:5196 Modules linked in: CPU: 1 UID: 0 PID: 16678 Comm: syz-executor Not tainted 6.13.0-rc6-syzkaller-00213-ge0daef7de1ac #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__lock_acquire+0x165b/0x2100 kernel/locking/lockdep.c:5196 Code: 0f b6 04 08 84 c0 0f 85 31 0a 00 00 83 3d f0 d9 9e 0e 00 75 19 90 48 c7 c7 80 97 0a 8c 48 c7 c6 60 c0 0a 8c e8 76 4c e5 ff 90 <0f> 0b 90 90 90 e9 be fd ff ff 90 0f 0b 90 e9 16 fd ff ff 90 e8 5c RSP: 0018:ffffc90003d0f0f0 EFLAGS: 00010046 RAX: b72f87a4a9175900 RBX: 000000000b346abc RCX: ffff888044bf3c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff888044bf4708 R08: ffffffff81602a82 R09: 1ffffffff2033056 R10: dffffc0000000000 R11: fffffbfff2033057 R12: ffff888044bf46c4 R13: ffff888044bf3c00 R14: 0000000000000000 R15: ffff888044bf4728 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32b1aff8 CR3: 0000000053d80000 CR4: 0000000000350ef0 Call Trace: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 down+0x39/0xc0 kernel/locking/semaphore.c:59 __dev_close_many+0x107/0x300 net/core/dev.c:1562 dev_close_many+0x24e/0x4c0 net/core/dev.c:1615 unregister_netdevice_many_notify+0x530/0x1da0 net/core/dev.c:11519 unregister_netdevice_many net/core/dev.c:11609 [inline] unregister_netdevice_queue+0x303/0x370 net/core/dev.c:11481 unregister_netdevice include/linux/netdevice.h:3192 [inline] __tun_detach+0x6b9/0x1600 drivers/net/tun.c:685 tun_detach drivers/net/tun.c:701 [inline] tun_chr_close+0x105/0x1b0 drivers/net/tun.c:3517 __fput+0x23e/0xa50 fs/file_table.c:450 task_work_run+0x251/0x310 kernel/task_work.c:239 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0xa2a/0x28e0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16b2/0x1750 kernel/signal.c:3017 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f65ae98473c Code: Unable to access opcode bytes at 0x7f65ae984712. RSP: 002b:00007ffcbc13d200 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffe00 RBX: 00000000ffffffff RCX: 00007f65ae98473c RDX: 0000000000000030 RSI: 00007ffcbc13d2b0 RDI: 00000000000000f9 RBP: 00007ffcbc13d25c R08: 0000000000000000 R09: 0079746972756365 R10: 00007f65aeb487e0 R11: 0000000000000246 R12: 0000000000000032 R13: 00000000001cf72c R14: 00007ffcbc13d2b0 R15: 0000000000000258