BUG: soft lockup in tcp_write_timer

17 views
Skip to first unread message

syzbot

unread,
Feb 19, 2020, 4:47:13 AM2/19/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 98db2bf2 Linux 4.14.171
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14432779e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=365f8162d5a0794b
dashboard link: https://syzkaller.appspot.com/bug?extid=e48013d86223d2ce3c18
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+e48013...@syzkaller.appspotmail.com

SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7685 comm=syz-executor.3
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=7685 comm=syz-executor.3
watchdog: BUG: soft lockup - CPU#0 stuck for 123s! [syz-executor.5:7639]
Modules linked in:
irq event stamp: 25033129
hardirqs last enabled at (25033128): [<ffffffff86800979>] restore_regs_and_return_to_kernel+0x0/0x27
hardirqs last disabled at (25033129): [<ffffffff86801b01>] apic_timer_interrupt+0x91/0xa0 arch/x86/entry/entry_64.S:792
softirqs last enabled at (92098): [<ffffffff86a00645>] __do_softirq+0x645/0x9a0 kernel/softirq.c:314
softirqs last disabled at (92743): [<ffffffff8138aa10>] invoke_softirq kernel/softirq.c:368 [inline]
softirqs last disabled at (92743): [<ffffffff8138aa10>] irq_exit+0x160/0x1b0 kernel/softirq.c:409
CPU: 0 PID: 7639 Comm: syz-executor.5 Not tainted 4.14.171-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888050c585c0 task.stack: ffff888050c60000
RIP: 0010:kfree_skbmem+0x2b/0x110 net/core/skbuff.c:584
RSP: 0018:ffff8880aec07bf8 EFLAGS: 00000a03 ORIG_RAX: ffffffffffffff10
RAX: 0000000000000000 RBX: ffff8880538ce250 RCX: 1ffff1100a18b1d6
RDX: 1ffff110150a5ac1 RSI: ffff888050c58e90 RDI: ffff8880a852d60e
RBP: ffff8880aec07c00 R08: 00000000e724d588 R09: ffff888050c58eb0
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a852d580
R13: ffff8880a852d580 R14: ffff8880538ce000 R15: dffffc0000000000
FS: 00007f328add8700(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3242c000 CR3: 000000008c6c9000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
__kfree_skb+0x1e/0x30 net/core/skbuff.c:646
sk_wmem_free_skb include/net/sock.h:1421 [inline]
tcp_write_queue_purge include/net/tcp.h:1631 [inline]
tcp_write_err+0x2ad/0x640 net/ipv4/tcp_timer.c:39
tcp_fastopen_synack_timer net/ipv4/tcp_timer.c:384 [inline]
tcp_retransmit_timer+0x351/0x25c0 net/ipv4/tcp_timer.c:421
tcp_write_timer_handler+0x479/0x7e0 net/ipv4/tcp_timer.c:583
tcp_write_timer+0xd6/0x180 net/ipv4/tcp_timer.c:601
call_timer_fn+0x161/0x670 kernel/time/timer.c:1279
expire_timers kernel/time/timer.c:1318 [inline]
__run_timers kernel/time/timer.c:1636 [inline]
__run_timers kernel/time/timer.c:1604 [inline]
run_timer_softirq+0x5b7/0x1520 kernel/time/timer.c:1649
__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:find_stack lib/stackdepot.c:174 [inline]
RIP: 0010:depot_save_stack+0x106/0x410 lib/stackdepot.c:225
RSP: 0018:ffff888050c67290 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
RAX: 00000000000e1cd8 RBX: 000000002a0e1cd8 RCX: 0000000076bedd8f
RDX: 0000000000000088 RSI: 0000000000000001 RDI: ffff888050c672e8
RBP: ffff888050c672d8 R08: 00000000a0142dd2 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888050c672e8
R13: ffff888050c67300 R14: 0000000000000011 R15: ffff88809a5c5360
save_stack+0xa9/0xd0 mm/kasan/kasan.c:453
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
__d_alloc+0x2d/0x9f0 fs/dcache.c:1623
d_alloc+0x4d/0x270 fs/dcache.c:1710
d_alloc_parallel+0xe5/0x1800 fs/dcache.c:2492
lookup_slow+0x188/0x440 fs/namei.c:1679
walk_component+0x698/0x1d00 fs/namei.c:1825
link_path_walk+0x81f/0x10a0 fs/namei.c:2154
path_openat+0x194/0x3e50 fs/namei.c:3568
do_filp_open+0x18e/0x250 fs/namei.c:3603
do_sys_open+0x2c5/0x430 fs/open.c:1084
SYSC_open fs/open.c:1102 [inline]
SyS_open+0x2d/0x40 fs/open.c:1097
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4161e1
RSP: 002b:00007f328add7bb0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f328add86d4 RCX: 00000000004161e1
RDX: 00007f328add7be4 RSI: 0000000000000002 RDI: 00007f328add7bd0
RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000014
R10: 0000000000000009 R11: 0000000000000293 R12: 00000000ffffffff
R13: 0000000000000bec R14: 00000000004cddd1 R15: 000000000076bf2c
Code: 55 48 89 e5 41 54 49 89 fc e8 f2 92 44 fc 49 8d bc 24 8e 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 <48> 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 b7 00 00 00 41 0f b6
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7384 Comm: kworker/u4:6 Not tainted 4.14.171-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
task: ffff888055536480 task.stack: ffff888055538000
RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline]
RIP: 0010:csd_lock_wait kernel/smp.c:108 [inline]
RIP: 0010:smp_call_function_single+0xfd/0x370 kernel/smp.c:302
RSP: 0018:ffff88805553eea0 EFLAGS: 00000297
RAX: ffff888055536480 RBX: 1ffff1100aaa7dd8 RCX: 0000000000000830
RDX: 0000000000000000 RSI: 00000000000000fb RDI: 0000000000000830
RBP: ffff88805553ef58 R08: 0000000000003fbd R09: 0000000000000001
R10: ffff888055536dc8 R11: ffff888055536480 R12: 0000000000000000
R13: ffff88805553f060 R14: 0000000000000001 R15: 0000000000000040
FS: 0000000000000000(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32431000 CR3: 000000009a6c0000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
smp_call_function_many+0x638/0x7c0 kernel/smp.c:434
native_flush_tlb_others+0x81/0x4a0 arch/x86/mm/tlb.c:660
flush_tlb_others arch/x86/include/asm/paravirt.h:309 [inline]
flush_tlb_mm_range+0x1ce/0x340 arch/x86/mm/tlb.c:709
flush_tlb_page arch/x86/include/asm/tlbflush.h:573 [inline]
ptep_clear_flush+0xe6/0x110 mm/pgtable-generic.c:87
page_mkclean_one+0x267/0x5c0 mm/rmap.c:915
rmap_walk_file+0x38d/0x8b0 mm/rmap.c:1829
rmap_walk+0xed/0x190 mm/rmap.c:1847
page_mkclean+0x162/0x1a0 mm/rmap.c:981
clear_page_dirty_for_io+0x1fb/0x7f0 mm/page-writeback.c:2704
mpage_submit_page+0x77/0x240 fs/ext4/inode.c:2202
mpage_map_and_submit_buffers+0x45a/0x750 fs/ext4/inode.c:2418
mpage_map_and_submit_extent fs/ext4/inode.c:2556 [inline]
ext4_writepages+0x1bb3/0x2fd0 fs/ext4/inode.c:2898
do_writepages+0xd0/0x250 mm/page-writeback.c:2361
__writeback_single_inode+0xe6/0x1120 fs/fs-writeback.c:1367
writeback_sb_inodes+0x4ce/0xeb0 fs/fs-writeback.c:1631
__writeback_inodes_wb+0xc3/0x210 fs/fs-writeback.c:1700
wb_writeback+0x735/0xba0 fs/fs-writeback.c:1809
wb_check_old_data_flush fs/fs-writeback.c:1922 [inline]
wb_do_writeback fs/fs-writeback.c:1946 [inline]
wb_workfn+0x943/0xf70 fs/fs-writeback.c:1975
process_one_work+0x863/0x1600 kernel/workqueue.c:2114
worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248
kthread+0x319/0x430 kernel/kthread.c:232
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Code: 13 09 00 48 8b 54 24 10 4c 89 e9 8b 7c 24 1c 48 8d 74 24 40 e8 d5 fa ff ff 41 89 c4 8b 44 24 58 a8 01 74 10 e8 a5 13 09 00 f3 90 <8b> 54 24 58 83 e2 01 75 f0 e8 95 13 09 00 e8 90 13 09 00 bf 01


---
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 5, 2020, 8:42:18 AM9/5/20
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages