syzbot


INFO: task hung in tun_chr_close

Status: auto-closed as invalid on 2019/02/22 15:23
First crash: 2409d, last: 2409d
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in tun_chr_close 40 20d 263d 0/3 upstream: reported on 2024/03/18 08:54
linux-4.19 INFO: task hung in tun_chr_close 1 1577d 1577d 0/1 auto-closed as invalid on 2020/12/09 18:55
upstream INFO: task hung in tun_chr_close (5) net syz 530 19h06m 81d 0/28 upstream: reported syz repro on 2024/09/15 19:59
upstream INFO: task hung in tun_chr_close (4) net syz unreliable error 14 1119d 1179d 0/28 auto-closed as invalid on 2022/09/18 21:51
upstream INFO: task hung in tun_chr_close net 5 1903d 2485d 0/28 closed as dup on 2018/02/16 08:24
linux-4.19 INFO: task hung in tun_chr_close (3) 1 854d 854d 0/1 auto-obsoleted due to no activity on 2022/12/03 04:48
linux-6.1 INFO: task hung in tun_chr_close 31 132d 199d 0/3 auto-obsoleted due to no activity on 2024/10/04 23:47
upstream INFO: task hung in rtnetlink_rcv_msg net C inconclusive inconclusive 1970 150d 2113d 26/28 fixed on 2024/07/09 19:14
android-49 INFO: task hung in tun_chr_close 1 2399d 2399d 0/3 auto-closed as invalid on 2019/02/22 14:33
linux-4.19 INFO: task hung in tun_chr_close (4) 3 660d 688d 0/1 upstream: reported on 2023/01/18 07:05
linux-4.19 INFO: task hung in tun_chr_close (2) 6 1067d 1161d 0/1 auto-closed as invalid on 2022/05/04 09:03
upstream INFO: task hung in tun_chr_close (3) net 1 1291d 1291d 0/28 auto-closed as invalid on 2021/08/23 13:06
upstream INFO: task hung in tun_chr_close (2) net 7 1399d 1620d 0/28 auto-closed as invalid on 2021/05/17 11:47

Sample crash report:
IPVS: sync thread started: state = BACKUP, mcast_ifn = bridge_slave_0, syncid = 1, id = 0
IPVS: stopping backup sync thread 3182 ...
INFO: task syz-executor0:3187 blocked for more than 120 seconds.
      Not tainted 4.4.131-g834913c #30
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor0   D ffff8801cc3a7858 28528  3187   3915 0x20020002
 ffff8801cc3a7858 0000000000000000 ffff8801bb3488e0 ffffed003766911b
 ffff8801bb348000 ffff8801db31fdb8 ffff8801db31fde0 ffff8801db31f4d8
 ffff8801db31f4c0 ffff8800a2374800 ffff8801bb348000 0000000000000000
Call Trace:
 [<ffffffff838b1e0a>] schedule+0x7a/0x1b0 kernel/sched/core.c:3359
 [<ffffffff838b25a3>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3392
 [<ffffffff838b86e7>] __mutex_lock_common kernel/locking/mutex.c:582 [inline]
 [<ffffffff838b86e7>] mutex_lock_nested+0x307/0x850 kernel/locking/mutex.c:621
 [<ffffffff82fb10b7>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
 [<ffffffff8274cff7>] tun_detach drivers/net/tun.c:556 [inline]
 [<ffffffff8274cff7>] tun_chr_close+0x37/0x60 drivers/net/tun.c:2261
 [<ffffffff81522735>] __fput+0x235/0x6f0 fs/file_table.c:208
 [<ffffffff81522c75>] ____fput+0x15/0x20 fs/file_table.c:244
 [<ffffffff8118bb8f>] task_work_run+0x10f/0x190 kernel/task_work.c:115
 [<ffffffff81135175>] exit_task_work include/linux/task_work.h:21 [inline]
 [<ffffffff81135175>] do_exit+0x9e5/0x26b0 kernel/exit.c:759
 [<ffffffff8113b0c1>] do_group_exit+0x111/0x330 kernel/exit.c:889
 [<ffffffff8115e45c>] get_signal+0x4ec/0x14b0 kernel/signal.c:2317
 [<ffffffff8100e02b>] do_signal+0x8b/0x1d30 arch/x86/kernel/signal.c:712
 [<ffffffff8100360a>] exit_to_usermode_loop+0x11a/0x160 arch/x86/entry/common.c:248
 [<ffffffff81007090>] prepare_exit_to_usermode arch/x86/entry/common.c:283 [inline]
 [<ffffffff81007090>] syscall_return_slowpath arch/x86/entry/common.c:348 [inline]
 [<ffffffff81007090>] do_syscall_32_irqs_on arch/x86/entry/common.c:398 [inline]
 [<ffffffff81007090>] do_fast_syscall_32+0x620/0x8b0 arch/x86/entry/common.c:459
 [<ffffffff838c176a>] sysenter_flags_fixed+0xd/0x17
1 lock held by syz-executor0/3187:
 #0:  (rtnl_mutex){+.+.+.}, at: [<ffffffff82fb10b7>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
Sending NMI to all CPUs:
NMI backtrace for cpu 0
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.131-g834913c #30
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffffffff84417840 task.stack: ffffffff84400000
RIP: 0010:[<ffffffff810cc306>]  [<ffffffff810cc306>] native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:49
RSP: 0018:ffffffff84407dc8  EFLAGS: 00000246
RAX: 0000000000000007 RBX: ffffffff84a05aa8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff8441811c
RBP: ffffffff84407dc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: fffffbfff074890c R15: ffffffff84a05aa8
FS:  0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f052894a140 CR3: 00000001c8977000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffffffff84407e00 ffffffff81025da5 ffffffff84408000 0000000000000000
 0000000000000000 fffffbfff074890c ffffffff84a05aa8 ffffffff84407e10
 ffffffff810272f0 ffffffff84407e28 ffffffff8121b9e7 dffffc0000000000
Call Trace:
 [<ffffffff81025da5>] arch_safe_halt arch/x86/include/asm/paravirt.h:117 [inline]
 [<ffffffff81025da5>] default_idle+0x55/0x3c0 arch/x86/kernel/process.c:290
 [<ffffffff810272f0>] arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:281
 [<ffffffff8121b9e7>] default_idle_call+0x57/0x70 kernel/sched/idle.c:93
 [<ffffffff8121c18f>] cpuidle_idle_call kernel/sched/idle.c:157 [inline]
 [<ffffffff8121c18f>] cpu_idle_loop kernel/sched/idle.c:253 [inline]
 [<ffffffff8121c18f>] cpu_startup_entry+0x6af/0x780 kernel/sched/idle.c:301
 [<ffffffff838acf71>] rest_init+0x188/0x18e init/main.c:410
 [<ffffffff84a4b8a1>] start_kernel+0x6b3/0x6e7 init/main.c:682
 [<ffffffff84a4a30f>] x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:196
 [<ffffffff84a4a450>] x86_64_start_kernel+0x13f/0x162 arch/x86/kernel/head64.c:185
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 
NMI backtrace for cpu 1
CPU: 1 PID: 491 Comm: khungtaskd Not tainted 4.4.131-g834913c #30
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8800bad43000 task.stack: ffff8800bac98000
RIP: 0010:[<ffffffff810bfda6>]  [<ffffffff810bfda6>] native_apic_mem_write arch/x86/include/asm/apic.h:94 [inline]
RIP: 0010:[<ffffffff810bfda6>]  [<ffffffff810bfda6>] __default_send_IPI_dest_field arch/x86/include/asm/ipi.h:119 [inline]
RIP: 0010:[<ffffffff810bfda6>]  [<ffffffff810bfda6>] _flat_send_IPI_mask arch/x86/kernel/apic/apic_flat_64.c:61 [inline]
RIP: 0010:[<ffffffff810bfda6>]  [<ffffffff810bfda6>] flat_send_IPI_mask+0xf6/0x1a0 arch/x86/kernel/apic/apic_flat_64.c:69
RSP: 0018:ffff8800bac9fcc8  EFLAGS: 00000046
RAX: 0000000003000000 RBX: 0000000000000c00 RCX: 0000000000000000
RDX: 0000000000000c00 RSI: 0000000000000000 RDI: ffffffffff5fb300
RBP: ffff8800bac9fcf0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000246
R13: 0000000000000003 R14: 0000000000000002 R15: ffffffff8446f7a0
FS:  0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001f48428 CR3: 00000001c8977000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffffffff8446f7a0 ffffffff84a189e0 0000000000000007 fffffbfff0942bec
 0000000000000040 ffff8800bac9fd10 ffffffff810b5d61 ffffffff83c0b1a0
 0000000000000003 ffff8800bac9fd68 ffffffff81e190e3 ffffffff8140daaf
Call Trace:
 [<ffffffff810b5d61>] nmi_raise_cpu_backtrace+0x61/0x80 arch/x86/kernel/apic/hw_nmi.c:33
 [<ffffffff81e190e3>] nmi_trigger_all_cpu_backtrace.cold.4+0x70/0xad lib/nmi_backtrace.c:85
 [<ffffffff810b5e04>] arch_trigger_all_cpu_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 [<ffffffff8141a199>] trigger_all_cpu_backtrace include/linux/nmi.h:44 [inline]
 [<ffffffff8141a199>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff8141a199>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff8141a199>] watchdog.cold.1+0xd3/0xee kernel/hung_task.c:238
 [<ffffffff81190768>] kthread+0x268/0x300 kernel/kthread.c:211
 [<ffffffff838c0255>] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:510
Code: b3 5f ff f6 c4 10 75 e2 44 89 e8 c1 e0 18 89 04 25 10 b3 5f ff 44 89 f2 09 da 80 cf 04 41 83 fe 02 0f 44 d3 89 14 25 00 b3 5f ff <41> f7 c4 00 02 00 00 75 1a 4c 89 e7 57 9d 0f 1f 44 00 00 e8 62 

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/03 09:42 https://android.googlesource.com/kernel/common android-4.4 834913c4b790 9ce14f4b .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.