WARNING in tcp_send_loss_probe

14 views
Skip to first unread message

syzbot

unread,
Sep 10, 2019, 9:28:09 AM9/10/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: e2cd24b6 Linux 4.14.143
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17be42a5600000
kernel config: https://syzkaller.appspot.com/x/.config?x=dcb6107bcdc0039
dashboard link: https://syzkaller.appspot.com/bug?extid=41d858b879cd4d0585ce
compiler: gcc (GCC) 9.0.0 20181231 (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+41d858...@syzkaller.appspotmail.com

protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
invalid inflight: 1 state 4 cwnd 10 mss 1428
------------[ cut here ]------------
WARNING: CPU: 1 PID: 9381 at net/ipv4/tcp_output.c:2507
tcp_send_loss_probe.cold+0x83/0xa2 net/ipv4/tcp_output.c:2507
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 9381 Comm: syz-executor.4 Not tainted 4.14.143 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x138/0x197 lib/dump_stack.c:53
panic+0x1f2/0x426 kernel/panic.c:182
kobject: 'loop5' (ffff8880a4b221a0): kobject_uevent_env
kobject: 'loop5' (ffff8880a4b221a0): fill_kobj_path: path
= '/devices/virtual/block/loop5'
__warn.cold+0x2f/0x36 kernel/panic.c:546
report_bug+0x216/0x254 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x1bb/0x310 arch/x86/kernel/traps.c:295
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:tcp_send_loss_probe.cold+0x83/0xa2 net/ipv4/tcp_output.c:2507
kobject: 'loop0' (ffff8880a49745e0): kobject_uevent_env
RSP: 0018:ffff8880aef07cb8 EFLAGS: 00010282
RAX: 000000000000002c RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000100 RSI: ffffffff866d10e0 RDI: ffffed1015de0f8d
RBP: ffff8880aef07ce8 R08: 000000000000002c R09: ffff88806229eed8
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a7c76a80
R13: 0000000000000001 R14: 0000000000000594 R15: 000000000000000a
tcp_write_timer_handler+0x4a8/0x7e0 net/ipv4/tcp_timer.c:575
tcp_write_timer+0xd8/0x180 net/ipv4/tcp_timer.c:597
call_timer_fn+0x161/0x670 kernel/time/timer.c:1279
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
kobject: 'loop0' (ffff8880a49745e0): fill_kobj_path: path
= '/devices/virtual/block/loop0'
__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
apic_timer_interrupt+0x96/0xa0 arch/x86/entry/entry_64.S:792
</IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779
[inline]
RIP: 0010:lock_acquire+0x1ea/0x430 kernel/locking/lockdep.c:3994
RSP: 0018:ffff888060e0f698 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10
RAX: 1ffffffff0ee2a81 RBX: ffff88806229e5c0 RCX: 000000006259a93d
RDX: dffffc0000000000 RSI: ffff88806229ee68 RDI: 0000000000000286
RBP: ffff888060e0f6e0 R08: 0000000000000000 R09: ffff88806229ee88
R10: ffff88806229ee68 R11: ffff88806229e5c0 R12: ffffffff8778f7a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000002
rcu_lock_acquire include/linux/rcupdate.h:242 [inline]
rcu_read_lock include/linux/rcupdate.h:629 [inline]
lock_page_memcg+0x39/0x220 mm/memcontrol.c:1669
page_remove_file_rmap mm/rmap.c:1211 [inline]
page_remove_rmap+0x19f/0x940 mm/rmap.c:1296
zap_pte_range mm/memory.c:1342 [inline]
zap_pmd_range mm/memory.c:1444 [inline]
zap_pud_range mm/memory.c:1473 [inline]
zap_p4d_range mm/memory.c:1494 [inline]
unmap_page_range+0xa2d/0x1770 mm/memory.c:1515
kobject: 'loop3' (ffff8880a4a980a0): kobject_uevent_env
unmap_single_vma+0x15d/0x2c0 mm/memory.c:1560
unmap_vmas+0xac/0x170 mm/memory.c:1590
kobject: 'loop3' (ffff8880a4a980a0): fill_kobj_path: path
= '/devices/virtual/block/loop3'
exit_mmap+0x285/0x4e0 mm/mmap.c:3062
__mmput kernel/fork.c:935 [inline]
mmput+0x114/0x440 kernel/fork.c:956
exit_mm kernel/exit.c:545 [inline]
do_exit+0x71d/0x2c10 kernel/exit.c:861
do_group_exit+0x111/0x330 kernel/exit.c:977
get_signal+0x381/0x1cd0 kernel/signal.c:2409
do_signal+0x86/0x19a0 arch/x86/kernel/signal.c:814
exit_to_usermode_loop+0x15c/0x220 arch/x86/entry/common.c:160
prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
do_syscall_64+0x4bc/0x640 arch/x86/entry/common.c:297
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4598e9
RSP: 002b:00007fbc9f7dccf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 000000000075c078 RCX: 00000000004598e9
RDX: 00000000004c8640 RSI: 0000000000000081 RDI: 000000000075c07c
RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000006 R11: 0000000000000246 R12: 000000000075c07c
R13: 00007ffc2e6f2fef R14: 00007fbc9f7dd9c0 R15: 000000000075c07c
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
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.

syzbot

unread,
Sep 10, 2019, 9:29:07 AM9/10/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: e2cd24b6 Linux 4.14.143
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1071b8f1600000
kernel config: https://syzkaller.appspot.com/x/.config?x=dcb6107bcdc0039
dashboard link: https://syzkaller.appspot.com/bug?extid=41d858b879cd4d0585ce
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10d92269600000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+41d858...@syzkaller.appspotmail.com

protocol 88fb is buggy, dev hsr_slave_1
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
invalid inflight: 1 state 4 cwnd 10 mss 1428
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9406 at net/ipv4/tcp_output.c:2507
tcp_send_loss_probe.cold+0x83/0xa2 net/ipv4/tcp_output.c:2507
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 9406 Comm: blkid Not tainted 4.14.143 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x138/0x197 lib/dump_stack.c:53
panic+0x1f2/0x426 kernel/panic.c:182
__warn.cold+0x2f/0x36 kernel/panic.c:546
report_bug+0x216/0x254 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x1bb/0x310 arch/x86/kernel/traps.c:295
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:tcp_send_loss_probe.cold+0x83/0xa2 net/ipv4/tcp_output.c:2507
RSP: 0018:ffff8880aee07cb8 EFLAGS: 00010282
RAX: 000000000000002c RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000100 RSI: ffffffff866d10e0 RDI: ffffed1015dc0f8d
RBP: ffff8880aee07ce8 R08: 000000000000002c R09: ffff88808c56b018
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a9bd0a80
R13: 0000000000000001 R14: 0000000000000594 R15: 000000000000000a
tcp_write_timer_handler+0x4a8/0x7e0 net/ipv4/tcp_timer.c:575
tcp_write_timer+0xd8/0x180 net/ipv4/tcp_timer.c:597
call_timer_fn+0x161/0x670 kernel/time/timer.c:1279
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
__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
apic_timer_interrupt+0x96/0xa0 arch/x86/entry/entry_64.S:792
</IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779
[inline]
RIP: 0010:lock_acquire+0x1ea/0x430 kernel/locking/lockdep.c:3994
RSP: 0018:ffff888084507560 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10
RAX: 1ffffffff0ee2a81 RBX: ffff88808c56a700 RCX: 000000002ca6e308
RDX: dffffc0000000000 RSI: ffff88808c56afa8 RDI: 0000000000000286
RBP: ffff8880845075a8 R08: 0000000000000000 R09: ffff88808c56afc8
R10: ffff88808c56afa8 R11: ffff88808c56a700 R12: ffffffff8778f7a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000002
rcu_lock_acquire include/linux/rcupdate.h:242 [inline]
rcu_read_lock include/linux/rcupdate.h:629 [inline]
is_bpf_text_address+0x38/0x120 kernel/bpf/core.c:456
kernel_text_address+0x73/0xf0 kernel/extable.c:150
__kernel_text_address+0xd/0x40 kernel/extable.c:105
unwind_get_return_address arch/x86/kernel/unwind_frame.c:18 [inline]
unwind_get_return_address+0x61/0xa0 arch/x86/kernel/unwind_frame.c:13
__save_stack_trace+0x7b/0xd0 arch/x86/kernel/stacktrace.c:45
save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59
save_stack+0x45/0xd0 mm/kasan/kasan.c:447
set_track mm/kasan/kasan.c:459 [inline]
kasan_kmalloc mm/kasan/kasan.c:551 [inline]
kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529
kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:489
slab_post_alloc_hook mm/slab.h:442 [inline]
slab_alloc mm/slab.c:3390 [inline]
kmem_cache_alloc+0x11b/0x780 mm/slab.c:3550
kmem_cache_zalloc include/linux/slab.h:651 [inline]
mmap_region+0x602/0x1030 mm/mmap.c:1691
do_mmap+0x5b8/0xcd0 mm/mmap.c:1501
do_mmap_pgoff include/linux/mm.h:2178 [inline]
vm_mmap_pgoff+0x17a/0x1d0 mm/util.c:333
vm_mmap+0x6a/0x90 mm/util.c:352
elf_map+0x1d0/0x230 fs/binfmt_elf.c:373
load_elf_interp fs/binfmt_elf.c:576 [inline]
load_elf_binary+0x1935/0x4ba0 fs/binfmt_elf.c:1066
search_binary_handler fs/exec.c:1638 [inline]
search_binary_handler+0x149/0x6f0 fs/exec.c:1616
exec_binprm fs/exec.c:1680 [inline]
do_execveat_common.isra.0+0x1000/0x1dd0 fs/exec.c:1802
do_execve fs/exec.c:1847 [inline]
SYSC_execve fs/exec.c:1928 [inline]
SyS_execve+0x39/0x50 fs/exec.c:1923
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x7fb0608b0207
RSP: 002b:00007ffd6cd12078 EFLAGS: 00000206 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007fb0608b0207
RDX: 0000000001248d50 RSI: 00007ffd6cd12170 RDI: 00007ffd6cd13180
RBP: 0000000000625500 R08: 0000000000001a6b R09: 0000000000001a6b
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000001248d50
R13: 0000000000000007 R14: 00000000010b7030 R15: 0000000000000005

syzbot

unread,
Sep 13, 2019, 7:44:07 PM9/13/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: e2cd24b6 Linux 4.14.143
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=139cfe11600000
kernel config: https://syzkaller.appspot.com/x/.config?x=dcb6107bcdc0039
dashboard link: https://syzkaller.appspot.com/bug?extid=41d858b879cd4d0585ce
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10116f4e600000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11df11f1600000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+41d858...@syzkaller.appspotmail.com

invalid inflight: 1 state 4 cwnd 10 mss 1448
------------[ cut here ]------------
WARNING: CPU: 1 PID: 9694 at net/ipv4/tcp_output.c:2507
tcp_send_loss_probe.cold+0x83/0xa2 net/ipv4/tcp_output.c:2507
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 9694 Comm: syz-executor019 Not tainted 4.14.143 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x138/0x197 lib/dump_stack.c:53
panic+0x1f2/0x426 kernel/panic.c:182
__warn.cold+0x2f/0x36 kernel/panic.c:546
report_bug+0x216/0x254 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x1bb/0x310 arch/x86/kernel/traps.c:295
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:tcp_send_loss_probe.cold+0x83/0xa2 net/ipv4/tcp_output.c:2507
RSP: 0000:ffff8880aef07cb8 EFLAGS: 00010282
RAX: 000000000000002c RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000100 RSI: ffffffff866d10e0 RDI: ffffed1015de0f8d
RBP: ffff8880aef07ce8 R08: 000000000000002c R09: ffff88809a7b0930
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888084c96a80
R13: 0000000000000001 R14: 00000000000005a8 R15: 000000000000000a
tcp_write_timer_handler+0x4a8/0x7e0 net/ipv4/tcp_timer.c:575
tcp_write_timer+0xd8/0x180 net/ipv4/tcp_timer.c:597
call_timer_fn+0x161/0x670 kernel/time/timer.c:1279
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
__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
apic_timer_interrupt+0x96/0xa0 arch/x86/entry/entry_64.S:792
</IRQ>
RIP: 0010:clear_page_erms+0x9/0x10 arch/x86/lib/clear_page_64.S:51
RSP: 0000:ffff888083e57a90 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
RAX: 0000000000000000 RBX: ffffea000246f080 RCX: 0000000000000000
RDX: 1ffff110134f623d RSI: 0000000000000001 RDI: ffff888091bc3000
RBP: ffff888083e57b80 R08: ffffea000246f080 R09: ffffed1012378400
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809a7b0040
R13: ffffea000246f0c0 R14: ffffed10134f626a R15: ffffea000246f080
__alloc_pages_nodemask+0x33f/0x7a0 mm/page_alloc.c:4178
alloc_pages_current+0xec/0x1e0 mm/mempolicy.c:2113
alloc_pages include/linux/gfp.h:497 [inline]
pte_alloc_one+0x1a/0x100 arch/x86/mm/pgtable.c:30
do_fault_around mm/memory.c:3587 [inline]
do_read_fault mm/memory.c:3628 [inline]
do_fault mm/memory.c:3759 [inline]
handle_pte_fault mm/memory.c:3989 [inline]
__handle_mm_fault+0x2c19/0x3470 mm/memory.c:4113
handle_mm_fault+0x293/0x7c0 mm/memory.c:4150
__do_page_fault+0x4c1/0xb80 arch/x86/mm/fault.c:1420
do_page_fault+0x71/0x511 arch/x86/mm/fault.c:1495
page_fault+0x45/0x50 arch/x86/entry/entry_64.S:1122
RIP: 0033:0x4460fa
RSP: 002b:00007ffe70d697e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00007ffe70d697e0 RCX: 00000000004460fa
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffe70d69820 R08: 0000000000000001 R09: 00000000007c3880
R10: 00000000007c3b50 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

syzbot

unread,
Dec 7, 2019, 6:46:02 PM12/7/19
to syzkaller...@googlegroups.com
syzbot suspects this bug was fixed by commit:

commit ba2ddb43f270e6492ccce4fc42fc32c611de8f68
Author: Christoph Paasch <cpa...@apple.com>
Date: Fri Sep 13 20:08:19 2019 +0000

tcp: Don't dequeue SYN/FIN-segments from write-queue

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1509a42ae00000
start commit: e2cd24b6 Linux 4.14.143
git tree: linux-4.14.y
If the result looks correct, please mark the bug fixed by replying with:

#syz fix: tcp: Don't dequeue SYN/FIN-segments from write-queue

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages