===================================== WARNING: bad unlock balance detected! 5.5.0-rc5-syzkaller #0 Not tainted ------------------------------------- syz-executor.5/12922 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:3969 [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.5/12922: #0: ffff8880a321cc60 (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:65 [inline] #0: ffff8880a321cc60 (&pipe->mutex/1){+.+.}, at: pipe_lock+0x65/0x80 fs/pipe.c:73 #1: ffff88809f7cb110 (sk_lock-AF_ALG){+.+.}, at: lock_sock include/net/sock.h:1516 [inline] #1: ffff88809f7cb110 (sk_lock-AF_ALG){+.+.}, at: af_alg_wait_for_data+0x244/0x580 crypto/af_alg.c:759 #2: ffffc90000007d50 ((&ndev->rs_timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:172 [inline] #2: ffffc90000007d50 ((&ndev->rs_timer)){+.-.}, at: call_timer_fn+0xe0/0x780 kernel/time/timer.c:1394 #3: ffffffff899a3f40 (rcu_read_lock){....}, at: ip6_nd_hdr net/ipv6/ndisc.c:463 [inline] #3: ffffffff899a3f40 (rcu_read_lock){....}, at: ndisc_send_skb+0x7fe/0x1490 net/ipv6/ndisc.c:499 #4: ffffffff899a3f00 (rcu_read_lock_bh){....}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] #4: ffffffff899a3f00 (rcu_read_lock_bh){....}, at: ip6_finish_output2+0x214/0x25c0 net/ipv6/ip6_output.c:102 #5: ffffffff899a3f00 (rcu_read_lock_bh){....}, at: __dev_queue_xmit+0x20a/0x35c0 net/core/dev.c:3948 #6: ffff888090cad250 (&dev->qdisc_tx_busylock_key#21){+...}, at: spin_trylock include/linux/spinlock.h:348 [inline] #6: ffff888090cad250 (&dev->qdisc_tx_busylock_key#21){+...}, at: qdisc_run_begin include/net/sch_generic.h:159 [inline] #6: ffff888090cad250 (&dev->qdisc_tx_busylock_key#21){+...}, at: __dev_xmit_skb net/core/dev.c:3611 [inline] #6: ffff888090cad250 (&dev->qdisc_tx_busylock_key#21){+...}, at: __dev_queue_xmit+0x2412/0x35c0 net/core/dev.c:3982 #7: ffff888090cad138 (&dev->qdisc_running_key#21){+...}, at: dev_queue_xmit+0x18/0x20 net/core/dev.c:4046 stack backtrace: CPU: 0 PID: 12922 Comm: syz-executor.5 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:3969 [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_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] 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:__sanitizer_cov_trace_const_cmp1+0x1/0x20 kernel/kcov.c:260 Code: c3 0f 1f 84 00 00 00 00 00 55 48 89 f2 48 89 fe bf 06 00 00 00 48 89 e5 48 8b 4d 08 e8 18 ff ff ff 5d c3 66 0f 1f 44 00 00 55 <40> 0f b6 d6 40 0f b6 f7 bf 01 00 00 00 48 89 e5 48 8b 4d 08 e8 f6 RSP: 0018:ffffc90001c87800 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: ffff8880aa400c40 RCX: ffffc90015303000 RDX: 0000000000040000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90001c87828 R08: ffff88808b086040 R09: ffff88808b0868d0 R10: fffffbfff14f7640 R11: ffffffff8a7bb207 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88809f7cb238 R15: 0000000000000400 should_failslab+0x9/0x14 mm/slab_common.c:1810 slab_pre_alloc_hook mm/slab.h:567 [inline] slab_alloc mm/slab.c:3306 [inline] __do_kmalloc mm/slab.c:3654 [inline] __kmalloc+0x2e0/0x770 mm/slab.c:3665 kmalloc include/linux/slab.h:561 [inline] sock_kmalloc net/core/sock.c:2143 [inline] sock_kmalloc+0xc6/0x120 net/core/sock.c:2134 af_alg_alloc_areq+0x24/0x1e0 crypto/af_alg.c:1084 _aead_recvmsg crypto/algif_aead.c:153 [inline] aead_recvmsg+0x45d/0x17c0 crypto/algif_aead.c:330 sock_recvmsg_nosec net/socket.c:886 [inline] sock_recvmsg net/socket.c:904 [inline] sock_recvmsg+0xce/0x110 net/socket.c:900 sock_read_iter+0x2f8/0x420 net/socket.c:982 call_read_iter include/linux/fs.h:1896 [inline] generic_file_splice_read+0x4af/0x800 fs/splice.c:313 sock_splice_read+0xf6/0x140 net/socket.c:960 do_splice_to+0x127/0x180 fs/splice.c:892 do_splice+0x1309/0x1680 fs/splice.c:1205 __do_sys_splice fs/splice.c:1447 [inline] __se_sys_splice fs/splice.c:1427 [inline] __x64_sys_splice+0x2c6/0x330 fs/splice.c:1427 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45aff9 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f200d77ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 00007f200d77b6d4 RCX: 000000000045aff9 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 000000000075bfc8 R08: 000000000d86dac9 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000b28 R14: 00000000004cc76c R15: 000000000075bfd4