syzbot


INFO: task hung in stop_sync_thread

Status: public: reported syz repro on 2019/04/14 00:02
Reported-by: syzbot+7e1968aaf6aa3e9dd346@syzkaller.appspotmail.com
First crash: 2414d, last: 2395d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in stop_sync_thread (2) lvs C 9 2412d 2429d 5/28 fixed on 2018/05/08 18:30
android-49 INFO: task hung in stop_sync_thread 1 2432d 2431d 0/3 closed as invalid on 2018/03/27 11:14
android-49 INFO: task hung in stop_sync_thread (2) 12 2278d 2428d 0/3 auto-closed as invalid on 2019/02/23 02:19
upstream INFO: task hung in stop_sync_thread lvs C 2 2431d 2431d 0/28 closed as invalid on 2018/03/27 11:14

Sample crash report:
IPVS: sync thread started: state = BACKUP, mcast_ifn = lo, syncid = 0, id = 0
IPVS: stopping backup sync thread 4542 ...
INFO: task syz-executor2:4538 blocked for more than 120 seconds.
      Not tainted 4.4.125-g38f41ec #21
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor2   D ffff8801d3bb7790 27896  4538   4207 0x20020004
 ffff8801d3bb7790 ffff8801d3bb77d8 ffffffff8516bcb0 ffff8800b6550920
 ffff8800b6550800 ffff8801db21fdb8 ffff8801db21fde0 ffff8801db21f4d8
 ffff8801db21f4c0 ffff8801d3ff8000 ffff8800b6550000 0000000000000000
Call Trace:
 [<ffffffff8376b82a>] schedule+0x7a/0x1b0 kernel/sched/core.c:3359
 [<ffffffff83776b40>] schedule_timeout+0x3a0/0x970 kernel/time/timer.c:1515
 [<ffffffff8376e919>] do_wait_for_common kernel/sched/completion.c:75 [inline]
 [<ffffffff8376e919>] __wait_for_common kernel/sched/completion.c:93 [inline]
 [<ffffffff8376e919>] wait_for_common kernel/sched/completion.c:101 [inline]
 [<ffffffff8376e919>] wait_for_completion+0x209/0x2e0 kernel/sched/completion.c:122
 [<ffffffff8119165e>] kthread_stop+0x12e/0x790 kernel/kthread.c:497
 [<ffffffff830b5129>] stop_sync_thread+0x3d9/0x740 net/netfilter/ipvs/ip_vs_sync.c:1995
 [<ffffffff8309e088>] do_ip_vs_set_ctl+0x228/0xba0 net/netfilter/ipvs/ip_vs_ctl.c:2362
 [<ffffffff82f9d7da>] compat_nf_sockopt net/netfilter/nf_sockopt.c:145 [inline]
 [<ffffffff82f9d7da>] compat_nf_setsockopt+0xfa/0x130 net/netfilter/nf_sockopt.c:155
 [<ffffffff83104beb>] compat_ip_setsockopt+0x8b/0xd0 net/ipv4/ip_sockglue.c:1251
 [<ffffffff8310ddc5>] inet_csk_compat_setsockopt+0x95/0x120 net/ipv4/inet_connection_sock.c:914
 [<ffffffff831236dd>] compat_tcp_setsockopt+0x3d/0x70 net/ipv4/tcp.c:2652
 [<ffffffff82df7d12>] compat_sock_common_setsockopt+0xb2/0x140 net/core/sock.c:2670
 [<ffffffff82edfde9>] C_SYSC_setsockopt net/compat.c:384 [inline]
 [<ffffffff82edfde9>] compat_SyS_setsockopt+0x149/0x290 net/compat.c:367
 [<ffffffff81006d91>] do_syscall_32_irqs_on arch/x86/entry/common.c:392 [inline]
 [<ffffffff81006d91>] do_fast_syscall_32+0x321/0x8a0 arch/x86/entry/common.c:459
 [<ffffffff8377b2aa>] sysenter_flags_fixed+0xd/0x17
1 lock held by syz-executor2/4538:
 #0:  (ipvs->sync_mutex){+.+.+.}, at: [<ffffffff8309e079>] do_ip_vs_set_ctl+0x219/0xba0 net/netfilter/ipvs/ip_vs_ctl.c:2361
Sending NMI to all CPUs:
NMI backtrace for cpu 0
CPU: 0 PID: 486 Comm: khungtaskd Not tainted 4.4.125-g38f41ec #21
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8800bb23b000 task.stack: ffff8800bac50000
RIP: 0010:[<ffffffff810c3f87>]  [<ffffffff810c3f87>] native_apic_mem_write arch/x86/include/asm/apic.h:94 [inline]
RIP: 0010:[<ffffffff810c3f87>]  [<ffffffff810c3f87>] __default_send_IPI_dest_field arch/x86/include/asm/ipi.h:119 [inline]
RIP: 0010:[<ffffffff810c3f87>]  [<ffffffff810c3f87>] _flat_send_IPI_mask arch/x86/kernel/apic/apic_flat_64.c:61 [inline]
RIP: 0010:[<ffffffff810c3f87>]  [<ffffffff810c3f87>] flat_send_IPI_mask+0xf7/0x1a0 arch/x86/kernel/apic/apic_flat_64.c:69
RSP: 0018:ffff8800bac57cb8  EFLAGS: 00000046
RAX: 0000000003000000 RBX: 0000000000000c00 RCX: 0000000000000000
RDX: 0000000000000c00 RSI: 0000000000000000 RDI: ffffffffff5fb300
RBP: ffff8800bac57ce0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000246
R13: 0000000000000003 R14: ffffffff8426f5a0 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc8b59b5000 CR3: 00000001cacba000 CR4: 0000000000160670
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffffffff8426f5a0 ffffffff847f0b40 fffffbfff08fdc1c dffffc0000000000
 ffff8801db31bca0 ffff8800bac57d00 ffffffff810b9abb ffffffff839f6dc0
 0000000000000003 ffff8800bac57d60 ffffffff81d11764 ffffffff8141b993
Call Trace:
 [<ffffffff810b9abb>] nmi_raise_cpu_backtrace+0x5b/0x70 arch/x86/kernel/apic/hw_nmi.c:33
 [<ffffffff81d11764>] nmi_trigger_all_cpu_backtrace+0x4a4/0x550 lib/nmi_backtrace.c:85
 [<ffffffff810b9b54>] arch_trigger_all_cpu_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 [<ffffffff813695ca>] trigger_all_cpu_backtrace include/linux/nmi.h:44 [inline]
 [<ffffffff813695ca>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff813695ca>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff813695ca>] watchdog+0x6fa/0xae0 kernel/hung_task.c:238
 [<ffffffff81190b48>] kthread+0x268/0x300 kernel/kthread.c:211
 [<ffffffff83779d95>] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:510
Code: b3 5f ff f6 c4 10 75 e1 44 89 e8 c1 e0 18 89 04 25 10 b3 5f ff 44 89 fa 09 da 80 cf 04 41 83 ff 02 0f 44 d3 89 14 25 00 b3 5f ff <41> f7 c4 00 02 00 00 74 1a e8 2b 33 17 00 4c 89 e7 57 9d 0f 1f 
NMI backtrace for cpu 1
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.125-g38f41ec #21
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801d9b49800 task.stack: ffff8801d9b58000
RIP: 0010:[<ffffffff810d0666>]  [<ffffffff810d0666>] native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:49
RSP: 0018:ffff8801d9b5fd98  EFLAGS: 00000246
RAX: 0000000000000007 RBX: ffffffff847dec48 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801d9b4a0dc
RBP: ffff8801d9b5fd98 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: fffffbfff07088c0 R14: ffffffff847ecfb8 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000a4b000 CR3: 00000001cacba000 CR4: 0000000000160670
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffff8801d9b5fdd0 ffffffff81027e65 ffff8801d9b60000 ffffffff847dec48
 fffffbfff07088c0 ffffffff847ecfb8 0000000000000000 ffff8801d9b5fde0
 ffffffff810293da ffff8801d9b5fdf8 ffffffff81221948 dffffc0000000000
Call Trace:
 [<ffffffff81027e65>] arch_safe_halt arch/x86/include/asm/paravirt.h:117 [inline]
 [<ffffffff81027e65>] default_idle+0x55/0x3c0 arch/x86/kernel/process.c:290
 [<ffffffff810293da>] arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:281
 [<ffffffff81221948>] default_idle_call+0x48/0x70 kernel/sched/idle.c:93
 [<ffffffff8122204d>] cpuidle_idle_call kernel/sched/idle.c:157 [inline]
 [<ffffffff8122204d>] cpu_idle_loop kernel/sched/idle.c:253 [inline]
 [<ffffffff8122204d>] cpu_startup_entry+0x5fd/0x8f0 kernel/sched/idle.c:301
 [<ffffffff810adcd4>] start_secondary+0x304/0x3e0 arch/x86/kernel/smpboot.c:242
Code: 00 00 00 00 00 55 48 89 e5 fa 5d c3 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 fb 5d c3 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 fb f4 <5d> c3 0f 1f 84 00 00 00 00 00 55 48 89 e5 f4 5d c3 66 0f 1f 84 

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/15 06:41 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 7a67784c .config console log report syz ci-android-44-kasan-gce-386
2018/04/14 22:45 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 7a67784c .config console log report syz ci-android-44-kasan-gce-386
2018/04/13 11:19 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 0a0c5db6 .config console log report syz ci-android-44-kasan-gce-386
2018/05/02 08:20 https://android.googlesource.com/kernel/common android-4.4 c4fcb01762a4 d5b114b4 .config console log report ci-android-44-kasan-gce-386
2018/04/18 17:57 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 52643b44 .config console log report ci-android-44-kasan-gce-386
2018/04/16 06:45 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 7a67784c .config console log report ci-android-44-kasan-gce-386
2018/04/16 03:56 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 7a67784c .config console log report ci-android-44-kasan-gce-386
2018/04/16 01:05 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 7a67784c .config console log report ci-android-44-kasan-gce-386
2018/04/15 12:13 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 7a67784c .config console log report ci-android-44-kasan-gce-386
2018/04/14 21:25 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 7a67784c .config console log report ci-android-44-kasan-gce-386
2018/04/14 03:01 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 7a67784c .config console log report ci-android-44-kasan-gce-386
2018/04/13 13:52 https://android.googlesource.com/kernel/common android-4.4 38f41ec1cb31 0a0c5db6 .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.