======================================================
WARNING: possible circular locking dependency detected
syzkaller #0 Not tainted
------------------------------------------------------
dhcpcd-run-hook/19958 is trying to acquire lock:
ffff888028aaf958 (_xmit_X25#2){+.-.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline]
ffff888028aaf958 (_xmit_X25#2){+.-.}-{3:3}, at: __netif_tx_lock include/linux/netdevice.h:4865 [inline]
ffff888028aaf958 (_xmit_X25#2){+.-.}-{3:3}, at: __dev_queue_xmit+0xe9d/0x3920 net/core/dev.c:5080
but task is already holding lock:
ffff88807f2631c0 (&lapb->lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:353 [inline]
ffff88807f2631c0 (&lapb->lock){+.-.}-{3:3}, at: lapb_t1timer_expiry+0x33/0xaa0 net/lapb/lapb_timer.c:99
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #2 (&lapb->lock){+.-.}-{3:3}:
__raw_spin_lock_bh include/linux/spinlock_api_smp.h:182 [inline]
_raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:205
spin_lock_bh include/linux/spinlock.h:353 [inline]
lapb_data_received+0xfc/0x1c0 net/lapb/lapb_iface.c:398
lapbeth_rcv+0x34d/0x640 drivers/net/wan/lapbether.c:142
__netif_receive_skb_list_ptype net/core/dev.c:6481 [inline]
__netif_receive_skb_list_core+0x784/0x830 net/core/dev.c:6523
__netif_receive_skb_list net/core/dev.c:6575 [inline]
netif_receive_skb_list_internal+0x995/0xcf0 net/core/dev.c:6666
netif_receive_skb_list+0x67/0x480 net/core/dev.c:6718
ieee80211_rx_napi+0x37f/0x3d0 net/mac80211/rx.c:5794
ieee80211_rx include/net/mac80211.h:5491 [inline]
ieee80211_handle_queued_frames+0xe4/0x1d0 net/mac80211/main.c:452
tasklet_action_common+0x2d7/0x490 kernel/softirq.c:995
handle_softirqs+0x265/0x8d0 kernel/softirq.c:669
do_softirq+0x77/0xd0 kernel/softirq.c:569
__local_bh_enable_ip+0x100/0x140 kernel/softirq.c:473
spin_unlock_bh include/linux/spinlock.h:407 [inline]
lapb_device_event+0x4f3/0x680 net/lapb/lapb_iface.c:527
notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86
netif_state_change+0x27d/0x3a0 net/core/dev.c:1663
netif_set_operstate net/core/rtnetlink.c:1103 [inline]
set_operstate+0x2f4/0x3d0 net/core/rtnetlink.c:1131
do_setlink+0x155a/0x47a0 net/core/rtnetlink.c:3378
rtnl_group_changelink net/core/rtnetlink.c:3956 [inline]
__rtnl_newlink net/core/rtnetlink.c:4122 [inline]
rtnl_newlink+0x147c/0x1c30 net/core/rtnetlink.c:4252
rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7169
netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2584
netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361
netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920
sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800
__sock_sendmsg net/socket.c:818 [inline]
____sys_sendmsg+0x54e/0x850 net/socket.c:2715
___sys_sendmsg+0x2a5/0x360 net/socket.c:2769
__sys_sendmsg net/socket.c:2801 [inline]
__do_sys_sendmsg net/socket.c:2806 [inline]
__se_sys_sendmsg net/socket.c:2804 [inline]
__x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
-> #1 (&lapbeth->up_lock){+.-.}-{3:3}:
__raw_spin_lock_bh include/linux/spinlock_api_smp.h:182 [inline]
_raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:205
spin_lock_bh include/linux/spinlock.h:353 [inline]
lapbeth_xmit+0x32/0x260 drivers/net/wan/lapbether.c:191
__netdev_start_xmit include/linux/netdevice.h:5456 [inline]
netdev_start_xmit include/linux/netdevice.h:5465 [inline]
xmit_one net/core/dev.c:4068 [inline]
dev_hard_start_xmit+0x2cd/0x830 net/core/dev.c:4084
__dev_queue_xmit+0x14d1/0x3920 net/core/dev.c:5086
dev_queue_xmit include/linux/netdevice.h:3483 [inline]
tx+0x6b/0x190 drivers/block/aoe/aoenet.c:62
kthread+0x1ed/0x420 drivers/block/aoe/aoecmd.c:1241
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
-> #0 (_xmit_X25#2){+.-.}-{3:3}:
check_prev_add kernel/locking/lockdep.c:3209 [inline]
check_prevs_add kernel/locking/lockdep.c:3328 [inline]
validate_chain kernel/locking/lockdep.c:3952 [inline]
__lock_acquire+0x164c/0x2de0 kernel/locking/lockdep.c:5288
lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942
__raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline]
_raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173
spin_lock include/linux/spinlock.h:347 [inline]
__netif_tx_lock include/linux/netdevice.h:4865 [inline]
__dev_queue_xmit+0xe9d/0x3920 net/core/dev.c:5080
neigh_output include/net/neighbour.h:554 [inline]
ip_finish_output2+0xc4b/0x10b0 net/ipv4/ip_output.c:236
NF_HOOK_COND include/linux/netfilter.h:314 [inline]
ip_output+0x29f/0x450 net/ipv4/ip_output.c:437
iptunnel_xmit+0x626/0xd10 net/ipv4/ip_tunnel_core.c:97
udp_tunnel_xmit_skb+0x29b/0x3e0 net/ipv4/udp_tunnel_core.c:187
vxlan_xmit_one+0x20d2/0x2f80 drivers/net/vxlan/vxlan_core.c:2607
vxlan_xmit+0x2afc/0x45c0 drivers/net/vxlan/vxlan_core.c:2917
__netdev_start_xmit include/linux/netdevice.h:5456 [inline]
netdev_start_xmit include/linux/netdevice.h:5465 [inline]
xmit_one net/core/dev.c:4068 [inline]
dev_hard_start_xmit+0x2cd/0x830 net/core/dev.c:4084
__dev_queue_xmit+0x14d1/0x3920 net/core/dev.c:5086
lapb_data_transmit+0x90/0xb0 net/lapb/lapb_iface.c:447
lapb_transmit_buffer+0x163/0x200 net/lapb/lapb_out.c:149
lapb_t1timer_expiry+0x68d/0xaa0 net/lapb/lapb_timer.c:-1
call_timer_fn+0x18d/0x5f0 kernel/time/timer.c:1749
expire_timers kernel/time/timer.c:1800 [inline]
__run_timers kernel/time/timer.c:2375 [inline]
__run_timer_base+0x652/0x8b0 kernel/time/timer.c:2387
run_timer_base kernel/time/timer.c:2396 [inline]
run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2406
handle_softirqs+0x265/0x8d0 kernel/softirq.c:669
__do_softirq kernel/softirq.c:703 [inline]
invoke_softirq kernel/softirq.c:542 [inline]
__irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786
irq_exit_rcu+0x9/0x30 kernel/softirq.c:809
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
__debug_check_no_obj_freed lib/debugobjects.c:-1 [inline]
debug_check_no_obj_freed+0x63/0x450 lib/debugobjects.c:1201
slab_free_hook mm/slub.c:2711 [inline]
slab_free mm/slub.c:6630 [inline]
kfree+0x13e/0x650 mm/slub.c:6923
tomoyo_path_perm+0x403/0x560 security/tomoyo/file.c:847
security_inode_getattr+0x12b/0x310 security/security.c:1917
vfs_getattr fs/stat.c:263 [inline]
vfs_fstat fs/stat.c:285 [inline]
__do_sys_newfstat fs/stat.c:555 [inline]
__se_sys_newfstat+0x133/0x440 fs/stat.c:550
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
other info that might help us debug this:
Chain exists of:
_xmit_X25#2 --> &lapbeth->up_lock --> &lapb->lock
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(&lapb->lock);
lock(&lapbeth->up_lock);
lock(&lapb->lock);
lock(_xmit_X25#2);
*** DEADLOCK ***
locks held by dhcpcd-run-hook/19958: 9, last CPU#0:
#0: ffffffff90909798 (tomoyo_ss){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:213 [inline]
#0: ffffffff90909798 (tomoyo_ss){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:320 [inline]
#0: ffffffff90909798 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_read_lock security/tomoyo/common.h:1112 [inline]
#0: ffffffff90909798 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_path_perm+0x251/0x560 security/tomoyo/file.c:826
#1: ffffc90000007ce0 ((&lapb->t1timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x5f0 kernel/time/timer.c:1746
#2: ffff88807f2631c0 (&lapb->lock){+.-.}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:353 [inline]
#2: ffff88807f2631c0 (&lapb->lock){+.-.}-{3:3}, at: lapb_t1timer_expiry+0x33/0xaa0 net/lapb/lapb_timer.c:99
#3: ffffffff9015a300 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline]
#3: ffffffff9015a300 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:902 [inline]
#3: ffffffff9015a300 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x29b/0x3920 net/core/dev.c:5000
#4: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#4: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#4: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: vxlan_xmit+0xd8/0x45c0 drivers/net/vxlan/vxlan_core.c:2804
#5: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#5: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#5: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: vxlan_xmit_one+0x149d/0x2f80 drivers/net/vxlan/vxlan_core.c:2522
#6: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#6: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#6: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: ip_output+0x5a/0x450 net/ipv4/ip_output.c:432
#7: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline]
#7: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#7: ffffffff9015a2a0 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x3de/0x10b0 net/ipv4/ip_output.c:229
#8: ffffffff9015a300 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline]
#8: ffffffff9015a300 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:902 [inline]
#8: ffffffff9015a300 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x29b/0x3920 net/core/dev.c:5000
stack backtrace:
CPU: 0 UID: 0 PID: 19958 Comm: dhcpcd-run-hook Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_circular_bug+0x2e2/0x300 kernel/locking/lockdep.c:2087
check_noncircular+0x12f/0x150 kernel/locking/lockdep.c:2219
check_prev_add kernel/locking/lockdep.c:3209 [inline]
check_prevs_add kernel/locking/lockdep.c:3328 [inline]
validate_chain kernel/locking/lockdep.c:3952 [inline]
__lock_acquire+0x164c/0x2de0 kernel/locking/lockdep.c:5288
lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942
__raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline]
_raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:173
spin_lock include/linux/spinlock.h:347 [inline]
__netif_tx_lock include/linux/netdevice.h:4865 [inline]
__dev_queue_xmit+0xe9d/0x3920 net/core/dev.c:5080
neigh_output include/net/neighbour.h:554 [inline]
ip_finish_output2+0xc4b/0x10b0 net/ipv4/ip_output.c:236
NF_HOOK_COND include/linux/netfilter.h:314 [inline]
ip_output+0x29f/0x450 net/ipv4/ip_output.c:437
iptunnel_xmit+0x626/0xd10 net/ipv4/ip_tunnel_core.c:97
udp_tunnel_xmit_skb+0x29b/0x3e0 net/ipv4/udp_tunnel_core.c:187
vxlan_xmit_one+0x20d2/0x2f80 drivers/net/vxlan/vxlan_core.c:2607
vxlan_xmit+0x2afc/0x45c0 drivers/net/vxlan/vxlan_core.c:2917
__netdev_start_xmit include/linux/netdevice.h:5456 [inline]
netdev_start_xmit include/linux/netdevice.h:5465 [inline]
xmit_one net/core/dev.c:4068 [inline]
dev_hard_start_xmit+0x2cd/0x830 net/core/dev.c:4084
__dev_queue_xmit+0x14d1/0x3920 net/core/dev.c:5086
lapb_data_transmit+0x90/0xb0 net/lapb/lapb_iface.c:447
lapb_transmit_buffer+0x163/0x200 net/lapb/lapb_out.c:149
lapb_t1timer_expiry+0x68d/0xaa0 net/lapb/lapb_timer.c:-1
call_timer_fn+0x18d/0x5f0 kernel/time/timer.c:1749
expire_timers kernel/time/timer.c:1800 [inline]
__run_timers kernel/time/timer.c:2375 [inline]
__run_timer_base+0x652/0x8b0 kernel/time/timer.c:2387
run_timer_base kernel/time/timer.c:2396 [inline]
run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2406
handle_softirqs+0x265/0x8d0 kernel/softirq.c:669
__do_softirq kernel/softirq.c:703 [inline]
invoke_softirq kernel/softirq.c:542 [inline]
__irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786
irq_exit_rcu+0x9/0x30 kernel/softirq.c:809
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__debug_check_no_obj_freed lib/debugobjects.c:1152 [inline]
RIP: 0010:debug_check_no_obj_freed+0x63/0x450 lib/debugobjects.c:1201
Code: e4 ba 28 00 00 00 31 f6 4d 89 c6 48 89 cb e8 94 1f 45 fd 4c 01 f3 4c 89 74 24 38 4d 89 f5 49 81 e5 00 f0 ff ff 48 89 5c 24 40 <4c> 29 eb 48 81 c3 ff 0f 00 00 48 c1 eb 0c 0f 84 40 03 00 00 45 31
RSP: 0018:ffffc9000f49f8f0 EFLAGS: 00000286
RAX: ffffc9000f49f938 RBX: ffff88805657af40 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000f49f960
RBP: 0000000001422008 R08: ffffc9000f49f95f R09: 0000000000000000
R10: ffffc9000f49f938 R11: fffff52001e93f2c R12: 0000000000000000
R13: ffff88805657a000 R14: ffff88805657af00 R15: ffff88813ff268c0
slab_free_hook mm/slub.c:2711 [inline]
slab_free mm/slub.c:6630 [inline]
kfree+0x13e/0x650 mm/slub.c:6923
tomoyo_path_perm+0x403/0x560 security/tomoyo/file.c:847
security_inode_getattr+0x12b/0x310 security/security.c:1917
vfs_getattr fs/stat.c:263 [inline]
vfs_fstat fs/stat.c:285 [inline]
__do_sys_newfstat fs/stat.c:555 [inline]
__se_sys_newfstat+0x133/0x440 fs/stat.c:550
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fea08211ad7
Code: 73 01 c3 48 8b 0d 21 f3 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 05 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 f1 f2 0d 00 f7 d8 64 89 02 b8
RSP: 002b:00007ffd8ec92338 EFLAGS: 00000202 ORIG_RAX: 0000000000000005
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fea08211ad7
RDX: 0000000000090800 RSI: 00007ffd8ec92340 RDI: 0000000000000003
RBP: 00007ffd8ec92340 R08: 00007fea082f1ac0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffd8ec92538
R13: 000055b08eb03658 R14: 0000000000000001 R15: 000055b08eb0dde7
----------------
Code disassembly (best guess):
0: e4 ba in $0xba,%al
2: 28 00 sub %al,(%rax)
4: 00 00 add %al,(%rax)
6: 31 f6 xor %esi,%esi
8: 4d 89 c6 mov %r8,%r14
b: 48 89 cb mov %rcx,%rbx
e: e8 94 1f 45 fd call 0xfd451fa7
13: 4c 01 f3 add %r14,%rbx
16: 4c 89 74 24 38 mov %r14,0x38(%rsp)
1b: 4d 89 f5 mov %r14,%r13
1e: 49 81 e5 00 f0 ff ff and $0xfffffffffffff000,%r13
25: 48 89 5c 24 40 mov %rbx,0x40(%rsp)
* 2a: 4c 29 eb sub %r13,%rbx <-- trapping instruction
2d: 48 81 c3 ff 0f 00 00 add $0xfff,%rbx
34: 48 c1 eb 0c shr $0xc,%rbx
38: 0f 84 40 03 00 00 je 0x37e
3e: 45 rex.RB
3f: 31 .byte 0x31