===================================== WARNING: bad unlock balance detected! 5.5.0-rc5-syzkaller #0 Not tainted ------------------------------------- syz-executor.2/21434 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.2/21434: #0: ffff888097e6eb18 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: spin_lock include/linux/spinlock.h:338 [inline] #0: ffff888097e6eb18 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pte_range mm/memory.c:1038 [inline] #0: ffff888097e6eb18 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pmd_range mm/memory.c:1184 [inline] #0: ffff888097e6eb18 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_pud_range mm/memory.c:1213 [inline] #0: ffff888097e6eb18 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: zap_p4d_range mm/memory.c:1234 [inline] #0: ffff888097e6eb18 (&(ptlock_ptr(page))->rlock#2){+.+.}, at: unmap_page_range+0x885/0x28a0 mm/memory.c:1255 #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: ffffffff899a5340 (rcu_read_lock){....}, at: ip6_nd_hdr net/ipv6/ndisc.c:463 [inline] #2: ffffffff899a5340 (rcu_read_lock){....}, at: ndisc_send_skb+0x7fe/0x1490 net/ipv6/ndisc.c:499 #3: ffffffff899a5300 (rcu_read_lock_bh){....}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] #3: ffffffff899a5300 (rcu_read_lock_bh){....}, at: ip6_finish_output2+0x214/0x25c0 net/ipv6/ip6_output.c:102 #4: ffffffff899a5300 (rcu_read_lock_bh){....}, at: __dev_queue_xmit+0x20a/0x35c0 net/core/dev.c:3948 #5: ffff8880534fa250 (&dev->qdisc_tx_busylock_key#8){+...}, at: spin_trylock include/linux/spinlock.h:348 [inline] #5: ffff8880534fa250 (&dev->qdisc_tx_busylock_key#8){+...}, at: qdisc_run_begin include/net/sch_generic.h:159 [inline] #5: ffff8880534fa250 (&dev->qdisc_tx_busylock_key#8){+...}, at: __dev_xmit_skb net/core/dev.c:3611 [inline] #5: ffff8880534fa250 (&dev->qdisc_tx_busylock_key#8){+...}, at: __dev_queue_xmit+0x2412/0x35c0 net/core/dev.c:3982 #6: ffff8880534fa138 (&dev->qdisc_running_key#8){+...}, at: dev_queue_xmit+0x18/0x20 net/core/dev.c:4046 stack backtrace: CPU: 0 PID: 21434 Comm: syz-executor.2 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] 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:compound_head include/linux/page-flags.h:176 [inline] RIP: 0010:PageSwapBacked include/linux/page-flags.h:340 [inline] RIP: 0010:mm_counter_file include/linux/mm.h:1657 [inline] RIP: 0010:mm_counter include/linux/mm.h:1666 [inline] RIP: 0010:zap_pte_range mm/memory.c:1079 [inline] RIP: 0010:zap_pmd_range mm/memory.c:1184 [inline] RIP: 0010:zap_pud_range mm/memory.c:1213 [inline] RIP: 0010:zap_p4d_range mm/memory.c:1234 [inline] RIP: 0010:unmap_page_range+0xccc/0x28a0 mm/memory.c:1255 Code: 00 49 8b 47 08 31 ff 4d 89 fc 48 89 c6 48 89 85 b0 fe ff ff 83 e6 01 48 89 b5 d8 fe ff ff e8 1b cd d2 ff 48 8b b5 d8 fe ff ff <48> 85 f6 0f 85 38 13 00 00 e8 66 cb d2 ff 4c 89 e0 48 c1 e8 03 42 RSP: 0018:ffffc9000cc07998 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 00007f26b5574000 RCX: ffffffff81a25b75 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: ffffc9000cc07af0 R08: ffff888031d66540 R09: ffffed10063acca9 R10: ffffed10063acca8 R11: ffff888031d66547 R12: ffffea0001864e00 R13: ffff888033fb0b98 R14: dffffc0000000000 R15: ffffea0001864e00 unmap_single_vma+0x19d/0x300 mm/memory.c:1300 unmap_vmas+0x184/0x2f0 mm/memory.c:1332 exit_mmap+0x2ba/0x530 mm/mmap.c:3134 __mmput kernel/fork.c:1082 [inline] mmput+0x179/0x4d0 kernel/fork.c:1103 exit_mm kernel/exit.c:485 [inline] do_exit+0xac2/0x2f50 kernel/exit.c:788 do_group_exit+0x135/0x360 kernel/exit.c:899 __do_sys_exit_group kernel/exit.c:910 [inline] __se_sys_exit_group kernel/exit.c:908 [inline] __x64_sys_exit_group+0x44/0x50 kernel/exit.c:908 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45af49 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:00007ffc4f3f37e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 000000000000001e RCX: 000000000045af49 RDX: 0000000000414ac0 RSI: 0000000000000146 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000004 R09: 00007ffc4f3f3840 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc4f3f3840 R14: 0000000000000000 R15: 00007ffc4f3f3850 kobject: 'brport' (0000000079b3b458): kobject_cleanup, parent 000000006f44b1c6 kobject: 'brport' (0000000079b3b458): calling ktype release kobject: 'brport': free name