===================================== WARNING: bad unlock balance detected! 5.5.0-rc6-syzkaller #0 Not tainted ------------------------------------- syz-executor.0/14490 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] [] sch_direct_xmit+0x3fa/0xd30 net/sched/sch_generic.c:315 but there are no more locks to release! other info that might help us debug this: 7 locks held by syz-executor.0/14490: #0: ffffffff89dd3868 (tomoyo_ss){....}, at: tomoyo_path_number_perm+0x193/0x520 security/tomoyo/file.c:720 #1: ffffc90000007d50 ((&ndev->rs_timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:172 [inline] #1: ffffc90000007d50 ((&ndev->rs_timer)){+.-.}, at: call_timer_fn+0xe0/0x780 kernel/time/timer.c:1394 #2: ffffffff899a3f00 (rcu_read_lock){....}, at: ip6_nd_hdr net/ipv6/ndisc.c:463 [inline] #2: ffffffff899a3f00 (rcu_read_lock){....}, at: ndisc_send_skb+0x7fe/0x1490 net/ipv6/ndisc.c:499 #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 #5: ffff88808c430250 (&dev->qdisc_tx_busylock_key#14){+...}, at: spin_trylock include/linux/spinlock.h:348 [inline] #5: ffff88808c430250 (&dev->qdisc_tx_busylock_key#14){+...}, at: qdisc_run_begin include/net/sch_generic.h:159 [inline] #5: ffff88808c430250 (&dev->qdisc_tx_busylock_key#14){+...}, at: __dev_xmit_skb net/core/dev.c:3611 [inline] #5: ffff88808c430250 (&dev->qdisc_tx_busylock_key#14){+...}, at: __dev_queue_xmit+0x2412/0x35c0 net/core/dev.c:3982 #6: ffff88808c430138 (&dev->qdisc_running_key#14){+...}, at: dev_queue_xmit+0x18/0x20 net/core/dev.c:4046 stack backtrace: CPU: 0 PID: 14490 Comm: syz-executor.0 Not tainted 5.5.0-rc6-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] sch_direct_xmit+0x3fa/0xd30 net/sched/sch_generic.c:315 __dev_xmit_skb net/core/dev.c:3621 [inline] __dev_queue_xmit+0x2707/0x35c0 net/core/dev.c:3982 dev_queue_xmit+0x18/0x20 net/core/dev.c:4046 neigh_resolve_output net/core/neighbour.c:1487 [inline] neigh_resolve_output+0x5c4/0x990 net/core/neighbour.c:1467 neigh_output include/net/neighbour.h:510 [inline] ip6_finish_output2+0x109a/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] ndisc_send_skb+0xf1f/0x1490 net/ipv6/ndisc.c:505 ndisc_send_rs+0x134/0x720 net/ipv6/ndisc.c:699 addrconf_rs_timer+0x30f/0x6e0 net/ipv6/addrconf.c:3879 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:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:write_comp_data+0x0/0x70 kernel/kcov.c:207 Code: 83 fa 02 75 20 48 8b 88 88 13 00 00 8b 80 84 13 00 00 48 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 5d c3 0f 1f 00 <65> 4c 8b 04 25 c0 1e 02 00 65 8b 05 a8 28 8d 7e a9 00 01 1f 00 75 RSP: 0018:ffffc90001607898 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: 00000000fffffff9 RCX: ffffffff87ceaf37 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffffc900016078a0 R08: ffff888059ac6100 R09: fffff520002c0fb5 R10: fffff520002c0fb4 R11: ffffc90001607da1 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000003 R15: ffffc90001607da2 number+0x697/0xc70 lib/vsprintf.c:507 vsnprintf+0x26b/0x19a0 lib/vsprintf.c:2640 snprintf+0xbb/0xf0 lib/vsprintf.c:2707 tomoyo_print_ulong+0xa2/0x100 security/tomoyo/util.c:232 tomoyo_audit_path_number_log security/tomoyo/file.c:233 [inline] tomoyo_path_number_perm+0x389/0x520 security/tomoyo/file.c:734 tomoyo_file_ioctl+0x23/0x30 security/tomoyo/tomoyo.c:335 security_file_ioctl+0x77/0xc0 security/security.c:1409 __do_compat_sys_ioctl fs/compat_ioctl.c:152 [inline] __se_compat_sys_ioctl fs/compat_ioctl.c:142 [inline] __ia32_compat_sys_ioctl+0xcc/0x610 fs/compat_ioctl.c:142 do_syscall_32_irqs_on arch/x86/entry/common.c:337 [inline] do_fast_syscall_32+0x27b/0xe16 arch/x86/entry/common.c:408 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fbda39 Code: 00 00 00 89 d3 5b 5e 5f 5d c3 b8 80 96 98 00 eb c4 8b 04 24 c3 8b 1c 24 c3 8b 34 24 c3 8b 3c 24 c3 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5db90cc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000008933 RDX: 0000000020000340 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000