Hello,
syzbot found the following crash on:
HEAD commit: 815e34f8 Merge 4.14.90 into android-4.14
git tree: android-4.14
console output:
https://syzkaller.appspot.com/x/log.txt?x=1374d4c3400000
kernel config:
https://syzkaller.appspot.com/x/.config?x=608dc5a2664d6079
dashboard link:
https://syzkaller.appspot.com/bug?extid=4ee152e2fab0df969674
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
Unfortunately, I don't have any reproducer for this crash yet.
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+4ee152...@syzkaller.appspotmail.com
IPv6: ADDRCONF(NETDEV_CHANGE): Y�4��`Ҙ: link becomes ready
ip6_tunnel: ip6tnl2 xmit: Local address not yet configured!
ip6_tunnel: ip6tnl1 xmit: Local address not yet configured!
============================================
WARNING: possible recursive locking detected
4.14.90+ #29 Not tainted
--------------------------------------------
syz-executor5/11042 is trying to acquire lock:
(_xmit_TUNNEL6#2){+.-.}, at: [<ffffffff9c5226e8>] spin_lock
include/linux/spinlock.h:317 [inline]
(_xmit_TUNNEL6#2){+.-.}, at: [<ffffffff9c5226e8>] __netif_tx_lock
include/linux/netdevice.h:3527 [inline]
(_xmit_TUNNEL6#2){+.-.}, at: [<ffffffff9c5226e8>]
__dev_queue_xmit+0x1348/0x1f40 net/core/dev.c:3521
but task is already holding lock:
(_xmit_TUNNEL6#2){+.-.}, at: [<ffffffff9c5226e8>] spin_lock
include/linux/spinlock.h:317 [inline]
(_xmit_TUNNEL6#2){+.-.}, at: [<ffffffff9c5226e8>] __netif_tx_lock
include/linux/netdevice.h:3527 [inline]
(_xmit_TUNNEL6#2){+.-.}, at: [<ffffffff9c5226e8>]
__dev_queue_xmit+0x1348/0x1f40 net/core/dev.c:3521
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock(_xmit_TUNNEL6#2);
lock(_xmit_TUNNEL6#2);
*** DEADLOCK ***
May be due to missing lock nesting notation
6 locks held by syz-executor5/11042:
#0: (rcu_read_lock_bh){....}, at: [<ffffffff9c6c5be5>]
ip_finish_output2+0x215/0x12f0 net/ipv4/ip_output.c:199
#1: (rcu_read_lock_bh){....}, at: [<ffffffff9c521585>]
__dev_queue_xmit+0x1e5/0x1f40 net/core/dev.c:3459
#2: (_xmit_TUNNEL6#2){+.-.}, at: [<ffffffff9c5226e8>] spin_lock
include/linux/spinlock.h:317 [inline]
#2: (_xmit_TUNNEL6#2){+.-.}, at: [<ffffffff9c5226e8>] __netif_tx_lock
include/linux/netdevice.h:3527 [inline]
#2: (_xmit_TUNNEL6#2){+.-.}, at: [<ffffffff9c5226e8>]
__dev_queue_xmit+0x1348/0x1f40 net/core/dev.c:3521
#3: (k-slock-AF_INET){+...}, at: [<ffffffff9c79b097>] spin_trylock
include/linux/spinlock.h:327 [inline]
#3: (k-slock-AF_INET){+...}, at: [<ffffffff9c79b097>] icmp_xmit_lock
net/ipv4/icmp.c:219 [inline]
#3: (k-slock-AF_INET){+...}, at: [<ffffffff9c79b097>]
icmp_send+0x4f7/0x12a0 net/ipv4/icmp.c:668
#4: (rcu_read_lock_bh){....}, at: [<ffffffff9c6c5be5>]
ip_finish_output2+0x215/0x12f0 net/ipv4/ip_output.c:199
#5: (rcu_read_lock_bh){....}, at: [<ffffffff9c521585>]
__dev_queue_xmit+0x1e5/0x1f40 net/core/dev.c:3459
stack backtrace:
CPU: 1 PID: 11042 Comm: syz-executor5 Not tainted 4.14.90+ #29
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0xb9/0x11b lib/dump_stack.c:53
print_deadlock_bug kernel/locking/lockdep.c:1796 [inline]
check_deadlock kernel/locking/lockdep.c:1843 [inline]
validate_chain kernel/locking/lockdep.c:2444 [inline]
__lock_acquire.cold.52+0x639/0xa99 kernel/locking/lockdep.c:3487
lock_acquire+0x10f/0x380 kernel/locking/lockdep.c:3991
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:152
spin_lock include/linux/spinlock.h:317 [inline]
__netif_tx_lock include/linux/netdevice.h:3527 [inline]
__dev_queue_xmit+0x1348/0x1f40 net/core/dev.c:3521
neigh_output include/net/neighbour.h:500 [inline]
ip_finish_output2+0x9ac/0x12f0 net/ipv4/ip_output.c:229
ip_finish_output+0x3a5/0xc40 net/ipv4/ip_output.c:317
NF_HOOK_COND include/linux/netfilter.h:239 [inline]
ip_output+0x1c9/0x520 net/ipv4/ip_output.c:405
dst_output include/net/dst.h:459 [inline]
ip_local_out+0x94/0x170 net/ipv4/ip_output.c:124
ip_send_skb+0x37/0xb0 net/ipv4/ip_output.c:1417
ip_push_pending_frames+0x5e/0x80 net/ipv4/ip_output.c:1437
icmp_push_reply+0x38e/0x510 net/ipv4/icmp.c:394
icmp_send+0x9ef/0x12a0 net/ipv4/icmp.c:741
ipv4_link_failure+0x24/0x1b0 net/ipv4/route.c:1196
dst_link_failure include/net/dst.h:442 [inline]
vti6_xmit net/ipv6/ip6_vti.c:521 [inline]
vti6_tnl_xmit+0xac0/0x1580 net/ipv6/ip6_vti.c:560
ip6_tunnel: ip6tnl2 xmit: Local address not yet configured!
__netdev_start_xmit include/linux/netdevice.h:4030 [inline]
netdev_start_xmit include/linux/netdevice.h:4039 [inline]
xmit_one net/core/dev.c:3009 [inline]
dev_hard_start_xmit+0x191/0x890 net/core/dev.c:3025
__dev_queue_xmit+0x13d9/0x1f40 net/core/dev.c:3525
ip6_tunnel: ip6tnl1 xmit: Local address not yet configured!
neigh_output include/net/neighbour.h:500 [inline]
ip_finish_output2+0x9ac/0x12f0 net/ipv4/ip_output.c:229
ip_finish_output+0x3a5/0xc40 net/ipv4/ip_output.c:317
NF_HOOK_COND include/linux/netfilter.h:239 [inline]
ip_output+0x1c9/0x520 net/ipv4/ip_output.c:405
dst_output include/net/dst.h:459 [inline]
ip_local_out+0x94/0x170 net/ipv4/ip_output.c:124
ip_send_skb+0x37/0xb0 net/ipv4/ip_output.c:1417
udp_send_skb+0x533/0xb90 net/ipv4/udp.c:829
udp_sendmsg+0x16ce/0x1da0 net/ipv4/udp.c:1053
udpv6_sendmsg+0x125f/0x2510 net/ipv6/udp.c:1193
inet_sendmsg+0x168/0x540 net/ipv4/af_inet.c:781
sock_sendmsg_nosec net/socket.c:645 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:655
sock_write_iter+0x209/0x350 net/socket.c:924
call_write_iter include/linux/fs.h:1784 [inline]
new_sync_write fs/read_write.c:471 [inline]
__vfs_write+0x417/0x5c0 fs/read_write.c:484
ip6_tunnel: ip6tnl1 xmit: Local address not yet configured!
vfs_write+0x17f/0x4d0 fs/read_write.c:546
SYSC_write fs/read_write.c:593 [inline]
SyS_write+0xc2/0x1a0 fs/read_write.c:585
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x457669
RSP: 002b:00007fe804392c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457669
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe8043936d4
R13: 00000000004c6188 R14: 00000000004dada0 R15: 00000000ffffffff
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
ip6_tunnel: ip6tnl2 xmit: Local address not yet configured!
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
SELinux: security_context_str_to_sid(root) failed for (dev bpf, type bpf)
errno=-22
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 60 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 8 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 8 bytes leftover after parsing attributes in process
`syz-executor0'.
netlink: 8 bytes leftover after parsing attributes in process
`syz-executor0'.
---
This bug is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.