===================================== WARNING: bad unlock balance detected! 5.4.0-syzkaller #0 Not tainted ------------------------------------- syz-executor.4/15104 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:3961 [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: 8 locks held by syz-executor.4/15104: #0: ffff8880a79ca428 (sb_writers#3){.+.+}, at: sb_start_write include/linux/fs.h:1650 [inline] #0: ffff8880a79ca428 (sb_writers#3){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:354 #1: ffff888099151788 (&type->i_mutex_dir_key#3/1){+.+.}, at: inode_lock_nested include/linux/fs.h:826 [inline] #1: ffff888099151788 (&type->i_mutex_dir_key#3/1){+.+.}, at: filename_create+0x17c/0x4f0 fs/namei.c:3630 #2: ffffc90000da8d50 ((&ndev->rs_timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:172 [inline] #2: ffffc90000da8d50 ((&ndev->rs_timer)){+.-.}, at: call_timer_fn+0xe0/0x780 kernel/time/timer.c:1394 #3: ffffffff897a4080 (rcu_read_lock){....}, at: ip6_nd_hdr net/ipv6/ndisc.c:463 [inline] #3: ffffffff897a4080 (rcu_read_lock){....}, at: ndisc_send_skb+0x7fe/0x1490 net/ipv6/ndisc.c:499 #4: ffffffff897a4040 (rcu_read_lock_bh){....}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] #4: ffffffff897a4040 (rcu_read_lock_bh){....}, at: ip6_finish_output2+0x214/0x25c0 net/ipv6/ip6_output.c:102 #5: ffffffff897a4040 (rcu_read_lock_bh){....}, at: __dev_queue_xmit+0x20a/0x35c0 net/core/dev.c:3948 #6: ffff8880a7f29250 (&dev->qdisc_tx_busylock_key#24){+...}, at: spin_trylock include/linux/spinlock.h:348 [inline] #6: ffff8880a7f29250 (&dev->qdisc_tx_busylock_key#24){+...}, at: qdisc_run_begin include/net/sch_generic.h:159 [inline] #6: ffff8880a7f29250 (&dev->qdisc_tx_busylock_key#24){+...}, at: __dev_xmit_skb net/core/dev.c:3611 [inline] #6: ffff8880a7f29250 (&dev->qdisc_tx_busylock_key#24){+...}, at: __dev_queue_xmit+0x2412/0x35c0 net/core/dev.c:3982 #7: ffff8880a7f29138 (&dev->qdisc_running_key#24){+...}, at: dev_queue_xmit+0x18/0x20 net/core/dev.c:4046 stack backtrace: CPU: 1 PID: 15104 Comm: syz-executor.4 Not tainted 5.4.0-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:3961 [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:1490 [inline] neigh_resolve_output+0x5c4/0x990 net/core/neighbour.c:1470 neigh_output include/net/neighbour.h:511 [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:find_next_zero_bit_le include/asm-generic/bitops/le.h:15 [inline] RIP: 0010:find_inode_bit.isra.0+0xd7/0x520 fs/ext4/ialloc.c:710 Code: 48 c1 e8 03 4c 01 e0 48 89 45 c8 e8 b3 e5 74 ff 48 8b 45 b0 80 38 00 0f 85 54 03 00 00 48 8b 45 b8 48 89 de 4c 89 fa 48 8b 38 74 1e 8d 01 48 89 c3 48 8b 45 c8 80 38 00 0f 85 88 03 00 00 48 RSP: 0018:ffffc90001bc7ac8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff8880a3cc54c0 RBX: 0000000000002000 RCX: ffffffff820018dd RDX: 0000000000000188 RSI: 0000000000002000 RDI: ffff88808e885000 RBP: ffffc90001bc7b28 R08: ffff888056c36580 R09: ffffed1014b79d33 R10: ffffed1014b79d32 R11: ffff8880a5bce993 R12: dffffc0000000000 R13: ffff8880a79ca000 R14: ffffc90001bc7c60 R15: 0000000000000188 __ext4_new_inode+0x16eb/0x4f30 fs/ext4/ialloc.c:909 ext4_symlink+0x4b7/0xf50 fs/ext4/namei.c:3275 vfs_symlink fs/namei.c:4123 [inline] vfs_symlink+0x373/0x5a0 fs/namei.c:4109 do_symlinkat+0x22b/0x290 fs/namei.c:4150 __do_sys_symlink fs/namei.c:4169 [inline] __se_sys_symlink fs/namei.c:4167 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4167 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a3a7 Code: 0f 1f 00 b8 5c 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 6d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 58 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 4d b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fff532294c8 EFLAGS: 00000202 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045a3a7 RDX: 00007fff53229567 RSI: 00000000004c00d3 RDI: 00007fff53229550 RBP: 0000000000000000 R08: 0000000000000220 R09: 0000000000000017 R10: 0000000000000075 R11: 0000000000000202 R12: 0000000000000000 R13: 00007fff53229500 R14: 0000000000000000 R15: 00007fff53229510 kobject: 'brport' (00000000c2d9c4f1): kobject_cleanup, parent 000000003334492b kobject: 'brport' (00000000c2d9c4f1): calling ktype release kobject: 'brport': free name kobject: 'brport' (000000005eb7ccd8): kobject_cleanup, parent 000000003334492b kobject: 'brport' (000000005eb7ccd8): calling ktype release kobject: 'brport': free name kobject: 'brport' (00000000a4d965b0): kobject_cleanup, parent 000000003334492b kobject: 'brport' (00000000a4d965b0): calling ktype release kobject: 'brport': free name kobject: 'brport' (00000000cc5b0ec6): kobject_cleanup, parent 000000003334492b kobject: 'brport' (00000000cc5b0ec6): calling ktype release kobject: 'brport': free name kobject: 'brport' (0000000010c4f57d): kobject_cleanup, parent 000000003334492b kobject: 'brport' (0000000010c4f57d): calling ktype release kobject: 'brport': free name kobject: 'brport' (0000000096cdb471): kobject_cleanup, parent 000000003334492b kobject: 'brport' (0000000096cdb471): calling ktype release kobject: 'brport': free name kobject: 'brport' (000000005f98b49c): kobject_cleanup, parent 000000003334492b kobject: 'brport' (000000005f98b49c): calling ktype release kobject: 'brport': free name kobject: 'brport' (0000000068dac5cf): kobject_cleanup, parent 000000003334492b kobject: 'brport' (0000000068dac5cf): calling ktype release kobject: 'brport': free name kobject: 'brport' (0000000078dcf3ee): kobject_cleanup, parent 000000003334492b kobject: 'brport' (0000000078dcf3ee): calling ktype release kobject: 'brport': free name kobject: 'brport' (00000000a4c040e2): kobject_cleanup, parent 000000003334492b kobject: 'brport' (00000000a4c040e2): calling ktype release kobject: 'brport': free name