syzbot


kernel BUG at ./include/linux/skbuff.h:LINE!

Status: fixed on 2019/12/05 10:31
Reported-by: syzbot+0c2e9310a117c98192b8@syzkaller.appspotmail.com
Fix commit: e5df4baea324 tcp: fix tcp_rtx_queue_tail in case of empty retransmit queue
First crash: 1930d, last: 1904d
Fix bisection: fixed by (bisect log) :
commit e5df4baea324d3c21dc48f86ad24e5d9aed67c65
Author: Tim Froidcoeur <tim.froidcoeur@tessares.net>
Date: Sat Aug 24 06:03:51 2019 +0000

  tcp: fix tcp_rtx_queue_tail in case of empty retransmit queue

  
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 kernel BUG at ./include/linux/skbuff.h:LINE! syz 27 1904d 1930d 0/1 public: reported syz repro on 2019/08/10 08:48
upstream kernel BUG at ./include/linux/skbuff.h:LINE! (2) net C 5 2457d 2435d 5/28 fixed on 2018/04/06 16:37
android-49 kernel BUG at ./include/linux/skbuff.h:LINE! C 3 2462d 2615d 0/3 closed as invalid on 2019/03/06 00:11
upstream kernel BUG at ./include/linux/skbuff.h:LINE! net C 4502 2500d 2512d 4/28 fixed on 2018/01/22 13:19
android-49 kernel BUG at ./include/linux/skbuff.h:LINE! (2) syz 16 1904d 1924d 0/3 public: reported syz repro on 2019/08/16 10:13

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready
IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready
------------[ cut here ]------------
IPv6: ADDRCONF(NETDEV_UP): veth0_to_hsr: link is not ready
kernel BUG at ./include/linux/skbuff.h:1406!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.141 #37
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network
task: ffffffff87676240 task.stack: ffffffff87600000
RIP: 0010:skb_queue_prev include/linux/skbuff.h:1406 [inline]
RIP: 0010:tcp_write_queue_prev include/net/tcp.h:1650 [inline]
RIP: 0010:tcp_write_queue_prev include/net/tcp.h:1647 [inline]
RIP: 0010:tcp_rtx_queue_tail include/net/tcp.h:1705 [inline]
RIP: 0010:tcp_fragment+0x12a7/0x13e0 net/ipv4/tcp_output.c:1284
RSP: 0018:ffff8880aee07c00 EFLAGS: 00010206
hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network
RAX: ffffffff87676240 RBX: ffff888081a457c0 RCX: 1ffff110149ba599
RDX: 0000000000000100 RSI: ffff888081a457c0 RDI: ffff888081a457c8
RBP: ffff8880aee07c58 R08: 0000000001080020 R09: ffff888081a457e8
R10: ffff88821fff8010 R11: 0000000000000001 R12: 0000000000000000
IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready
R13: 0000000000006880 R14: ffff8880a4dd2cd0 R15: 0000000001080020
FS:  0000000000000000(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faffdbbae78 CR3: 00000000a93b3000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready
Call Trace:
 <IRQ>
 tcp_write_wakeup+0x34c/0x5b0 net/ipv4/tcp_output.c:3708
 tcp_send_probe0+0x4b/0x3fe net/ipv4/tcp_output.c:3736
8021q: adding VLAN 0 to HW filter on device batadv0
 tcp_probe_timer net/ipv4/tcp_timer.c:365 [inline]
 tcp_write_timer_handler+0x6da/0x7e0 net/ipv4/tcp_timer.c:583
 tcp_write_timer+0xd8/0x180 net/ipv4/tcp_timer.c:597
 call_timer_fn+0x161/0x670 kernel/time/timer.c:1279
kobject: 'vlan0' (ffff8880a60a4980): kobject_add_internal: parent: 'mesh', set: '<NULL>'
IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready
 expire_timers kernel/time/timer.c:1318 [inline]
 __run_timers kernel/time/timer.c:1634 [inline]
 __run_timers kernel/time/timer.c:1602 [inline]
 run_timer_softirq+0x5b4/0x1570 kernel/time/timer.c:1647
IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready
 __do_softirq+0x244/0x9a0 kernel/softirq.c:288
 invoke_softirq kernel/softirq.c:368 [inline]
 irq_exit+0x160/0x1b0 kernel/softirq.c:409
 exiting_irq arch/x86/include/asm/apic.h:648 [inline]
 smp_apic_timer_interrupt+0x146/0x5e0 arch/x86/kernel/apic/apic.c:1102
IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready
 apic_timer_interrupt+0x96/0xa0 arch/x86/entry/entry_64.S:792
IPv6: ADDRCONF(NETDEV_UP): veth0_to_hsr: link is not ready
 </IRQ>
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
RSP: 0018:ffffffff87607de8 EFLAGS: 00000282
IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready
 ORIG_RAX: ffffffffffffff10
RAX: 1ffffffff0ee2a84 RBX: ffffffff87676240 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffffffff87676abc
RBP: ffffffff87607e10 R08: 1ffffffff104a601 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff87715410
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff87676240
hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network
 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:557
hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network
 default_idle_call+0x36/0x90 kernel/sched/idle.c:98
 cpuidle_idle_call kernel/sched/idle.c:156 [inline]
 do_idle+0x262/0x3d0 kernel/sched/idle.c:246
 cpu_startup_entry+0x1b/0x20 kernel/sched/idle.c:351
 rest_init+0x1d9/0x1e2 init/main.c:435
IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready
 start_kernel+0x6df/0x6fd init/main.c:709
IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready
 x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:381
 x86_64_start_kernel+0x77/0x7b arch/x86/kernel/head64.c:362
 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:240
Code: 3c 
8021q: adding VLAN 0 to HW filter on device batadv0
02 00 0f 85 4f 01 00 00 48 
kobject: 'vlan0' (ffff8880a6d7e780): kobject_add_internal: parent: 'mesh', set: '<NULL>'
8b 45 d0 ba 00 00 00 00 4c 8b b0 58 02 00 00 4c 3b 75 c0 4c 0f 44 f2 e9 e6 fc ff ff e8 29 53 35 fc <0f> 0b e8 f2 03 5f fc e9 31 fa ff ff 48 89 df e8 45 03 5f fc e9 
RIP: skb_queue_prev include/linux/skbuff.h:1406 [inline] RSP: ffff8880aee07c00
RIP: tcp_write_queue_prev include/net/tcp.h:1650 [inline] RSP: ffff8880aee07c00
RIP: tcp_write_queue_prev include/net/tcp.h:1647 [inline] RSP: ffff8880aee07c00
RIP: tcp_rtx_queue_tail include/net/tcp.h:1705 [inline] RSP: ffff8880aee07c00
RIP: tcp_fragment+0x12a7/0x13e0 net/ipv4/tcp_output.c:1284 RSP: ffff8880aee07c00
---[ end trace ebcf8031b36364b1 ]---

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/05 03:48 linux-4.14.y 01fd1694b93c 040fda58 .config console log report syz C ci2-linux-4-14
2019/09/03 08:35 linux-4.14.y 01fd1694b93c 14544a56 .config console log report syz C ci2-linux-4-14
2019/08/25 02:54 linux-4.14.y 45f092f9e9cb d21c5d9d .config console log report syz C ci2-linux-4-14
2019/08/21 16:22 linux-4.14.y 45f092f9e9cb 4ea67ff8 .config console log report syz C ci2-linux-4-14
2019/08/19 20:59 linux-4.14.y 45f092f9e9cb ae348fb7 .config console log report syz C ci2-linux-4-14
2019/08/19 01:50 linux-4.14.y 45f092f9e9cb b8ceabfc .config console log report syz C ci2-linux-4-14
2019/08/18 08:17 linux-4.14.y 45f092f9e9cb 55bf8926 .config console log report syz C ci2-linux-4-14
2019/08/16 15:20 linux-4.14.y 45f092f9e9cb 8fd428a1 .config console log report syz C ci2-linux-4-14
2019/08/11 23:26 linux-4.14.y 3ffe1e79c174 acb51638 .config console log report syz C ci2-linux-4-14
2019/08/25 18:23 linux-4.14.y b5260801526c d21c5d9d .config console log report syz ci2-linux-4-14
2019/08/10 08:47 linux-4.14.y 3ffe1e79c174 acb51638 .config console log report syz ci2-linux-4-14
2019/08/27 09:37 linux-4.14.y b5260801526c d21c5d9d .config console log report ci2-linux-4-14
2019/08/23 12:37 linux-4.14.y 45f092f9e9cb ca6f3cfa .config console log report ci2-linux-4-14
2019/08/19 10:41 linux-4.14.y 45f092f9e9cb b8ceabfc .config console log report ci2-linux-4-14
2019/08/12 05:03 linux-4.14.y 3ffe1e79c174 acb51638 .config console log report ci2-linux-4-14
2019/08/11 23:03 linux-4.14.y 3ffe1e79c174 acb51638 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.