===================================== WARNING: bad unlock balance detected! 5.5.0-rc5-syzkaller #0 Not tainted ------------------------------------- syz-executor.1/19099 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: 6 locks held by syz-executor.1/19099: #0: ffff888214414428 (sb_writers#4){.+.+}, at: sb_start_write include/linux/fs.h:1650 [inline] #0: ffff888214414428 (sb_writers#4){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:354 #1: ffffffff89dd4be8 (tomoyo_ss){....}, at: tomoyo_check_open_permission+0xfe/0x3e0 security/tomoyo/file.c:761 #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: ffffffff899a5340 (rcu_read_lock){....}, at: ip6_nd_hdr net/ipv6/ndisc.c:463 [inline] #3: ffffffff899a5340 (rcu_read_lock){....}, at: ndisc_send_skb+0x7fe/0x1490 net/ipv6/ndisc.c:499 #4: ffffffff899a5300 (rcu_read_lock_bh){....}, at: lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline] #4: ffffffff899a5300 (rcu_read_lock_bh){....}, at: ip6_finish_output2+0x214/0x25c0 net/ipv6/ip6_output.c:102 #5: ffffffff899a5300 (rcu_read_lock_bh){....}, at: __dev_queue_xmit+0x20a/0x35c0 net/core/dev.c:3948 stack backtrace: CPU: 0 PID: 19099 Comm: syz-executor.1 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_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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:752 [inline] RIP: 0010:slab_alloc mm/slab.c:3313 [inline] RIP: 0010:__do_kmalloc mm/slab.c:3654 [inline] RIP: 0010:__kmalloc+0x2b8/0x770 mm/slab.c:3665 Code: 7e 0f 85 d6 fe ff ff e8 e7 fb 4d ff e9 cc fe ff ff e8 ac 4e c8 ff 48 83 3d fc c6 e0 07 00 0f 84 4f 03 00 00 48 8b 7d c0 57 9d <0f> 1f 44 00 00 e9 5e fe ff ff 31 d2 be 35 02 00 00 48 c7 c7 96 39 RSP: 0018:ffffc900051f7650 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: 0000000000000c40 RCX: 0000000000000007 RDX: 0000000000000000 RSI: ffff88804a926b00 RDI: 0000000000000282 RBP: ffffc900051f76c8 R08: 1ffffffff165ebb6 R09: fffffbfff165ebb7 R10: fffffbfff165ebb6 R11: ffffffff8b2f5db7 R12: 0000000000001000 R13: 0000000000000c40 R14: ffff8880aa402000 R15: ffff88804b700000 kmalloc include/linux/slab.h:561 [inline] tomoyo_realpath_from_path+0xc5/0x660 security/tomoyo/realpath.c:252 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x2a3/0x3e0 security/tomoyo/file.c:771 tomoyo_file_open security/tomoyo/tomoyo.c:319 [inline] tomoyo_file_open+0xa9/0xd0 security/tomoyo/tomoyo.c:314 security_file_open+0x71/0x300 security/security.c:1497 do_dentry_open+0x37a/0x1380 fs/open.c:784 vfs_open+0xa0/0xd0 fs/open.c:914 do_last fs/namei.c:3420 [inline] path_openat+0x10df/0x4500 fs/namei.c:3537 do_filp_open+0x1a1/0x280 fs/namei.c:3567 do_sys_open+0x3fe/0x5d0 fs/open.c:1097 __do_sys_open fs/open.c:1115 [inline] __se_sys_open fs/open.c:1110 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1110 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:00007fbb6ea47c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49 RDX: 0000000000000000 RSI: 0000000000141042 RDI: 0000000020000080 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fbb6ea486d4 R13: 000000000050047f R14: 00000000004e0ae8 R15: 00000000ffffffff kobject: 'brport' (00000000e244ff69): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (00000000e244ff69): calling ktype release kobject: 'brport': free name kobject: 'brport' (00000000370b5ff6): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (00000000370b5ff6): calling ktype release kobject: 'brport': free name kobject: 'brport' (00000000c01ef171): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (00000000c01ef171): calling ktype release kobject: 'brport': free name kobject: 'brport' (00000000ed5a94fd): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (00000000ed5a94fd): calling ktype release kobject: 'brport': free name kobject: 'brport' (00000000c178a07a): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (00000000c178a07a): calling ktype release kobject: 'brport': free name kobject: 'brport' (0000000083f94b12): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (0000000083f94b12): calling ktype release kobject: 'brport': free name kobject: 'brport' (00000000d7723f7a): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (00000000d7723f7a): calling ktype release kobject: 'brport': free name kobject: 'brport' (00000000e625e405): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (00000000e625e405): calling ktype release kobject: 'brport': free name kobject: 'brport' (000000009e510fc3): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (000000009e510fc3): calling ktype release kobject: 'brport': free name kobject: 'brport' (000000005c4fa94b): kobject_cleanup, parent 0000000085c82380 kobject: 'brport' (000000005c4fa94b): calling ktype release kobject: 'brport': free name