===================================== WARNING: bad unlock balance detected! 5.5.0-rc5-syzkaller #0 Not tainted ------------------------------------- udevd/23179 is trying to release lock (&dev->qdisc_xmit_lock_key) at: [] spin_unlock include/linux/spinlock.h:378 [inline] [] __netif_tx_unlock include/linux/netdevice.h:3966 [inline] [] __dev_queue_xmit+0x2bbd/0x35c0 net/core/dev.c:4016 but there are no more locks to release! other info that might help us debug this: 5 locks held by udevd/23179: #0: ffffffff89dd37a8 (tomoyo_ss){....}, at: tomoyo_path_perm+0x1cb/0x430 security/tomoyo/file.c:847 #1: ffffc90000da8d50 ((&idev->mc_ifc_timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:172 [inline] #1: ffffc90000da8d50 ((&idev->mc_ifc_timer)){+.-.}, at: call_timer_fn+0xe0/0x780 kernel/time/timer.c:1394 #2: ffffffff899a3f00 (rcu_read_lock){....}, at: dev_net include/linux/netdevice.h:2188 [inline] #2: ffffffff899a3f00 (rcu_read_lock){....}, at: mld_sendpack+0x180/0xed0 net/ipv6/mcast.c:1649 #3: ffffffff899a3ec0 (rcu_read_lock_bh){....}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] #3: ffffffff899a3ec0 (rcu_read_lock_bh){....}, at: ip6_finish_output2+0x214/0x25c0 net/ipv6/ip6_output.c:102 #4: ffffffff899a3ec0 (rcu_read_lock_bh){....}, at: __dev_queue_xmit+0x20a/0x35c0 net/core/dev.c:3948 stack backtrace: CPU: 1 PID: 23179 Comm: udevd Not tainted 5.5.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 print_unlock_imbalance_bug kernel/locking/lockdep.c:4008 [inline] print_unlock_imbalance_bug.cold+0x114/0x123 kernel/locking/lockdep.c:3984 __lock_release kernel/locking/lockdep.c:4242 [inline] lock_release+0x5f2/0x960 kernel/locking/lockdep.c:4503 __raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock+0x16/0x40 kernel/locking/spinlock.c:183 spin_unlock include/linux/spinlock.h:378 [inline] __netif_tx_unlock include/linux/netdevice.h:3966 [inline] __dev_queue_xmit+0x2bbd/0x35c0 net/core/dev.c:4016 dev_queue_xmit+0x18/0x20 net/core/dev.c:4046 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip6_finish_output2+0xfbe/0x25c0 net/ipv6/ip6_output.c:116 __ip6_finish_output+0x444/0xaa0 net/ipv6/ip6_output.c:142 ip6_finish_output+0x38/0x1f0 net/ipv6/ip6_output.c:152 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip6_output+0x25e/0x880 net/ipv6/ip6_output.c:175 dst_output include/net/dst.h:436 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] mld_sendpack+0x9c2/0xed0 net/ipv6/mcast.c:1682 mld_send_cr net/ipv6/mcast.c:1978 [inline] mld_ifc_timer_expire+0x454/0x950 net/ipv6/mcast.c:2477 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x6c3/0x1790 kernel/time/timer.c:1786 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:tomoyo_domain_quota_is_ok+0x30d/0x540 security/tomoyo/util.c:1071 Code: 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 41 bd 01 00 00 00 31 db e8 22 65 10 fe 89 d9 44 89 ee 31 ff d3 fe 83 e6 01 41 89 f7 8e 66 10 fe 45 85 ff 74 09 e8 04 65 10 fe 41 83 c6 01 e8 fb 64 RSP: 0018:ffffc9000311f7e0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff88809e35c100 RBX: 0000000000000002 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000311f820 R08: ffff88809e35c100 R09: fffff52000623f11 R10: fffff52000623f10 R11: 0000000000000000 R12: ffff88809d352680 R13: 0000000000000002 R14: 00000000000001ae R15: 0000000000000000 tomoyo_supervisor+0x2e8/0xef0 security/tomoyo/common.c:2089 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x263/0x360 security/tomoyo/file.c:573 tomoyo_path_perm+0x318/0x430 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x1d/0x30 security/tomoyo/tomoyo.c:129 security_inode_getattr+0xf2/0x150 security/security.c:1222 vfs_getattr+0x25/0x70 fs/stat.c:115 vfs_statx+0x157/0x200 fs/stat.c:191 vfs_lstat include/linux/fs.h:3254 [inline] __do_sys_newlstat+0xa4/0x130 fs/stat.c:354 __se_sys_newlstat fs/stat.c:348 [inline] __x64_sys_newlstat+0x54/0x80 fs/stat.c:348 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f88f5e96d05 Code: f7 d8 64 89 02 83 c8 ff c3 90 90 90 90 90 90 90 90 90 90 90 90 83 ff 01 48 89 f0 77 18 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 17 f3 c3 90 48 8b 05 01 51 2b 00 64 c7 00 16 RSP: 002b:00007fffe8dd5348 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 00000000007dbff0 RCX: 00007f88f5e96d05 RDX: 00007fffe8dd5390 RSI: 00007fffe8dd5390 RDI: 00000000007dbff0 RBP: 00000000007cc250 R08: 0000000000000006 R09: 00007f88f5eed3d0 R10: 00007f88f5edb4c0 R11: 0000000000000246 R12: 00000000000063b0 R13: 0000000000000703 R14: 00000000007ea2b0 R15: 0000000000000000