syzbot


INFO: task hung in evdev_flush (2)

Status: auto-closed as invalid on 2019/10/25 08:52
Reported-by: syzbot+9ffd0d4c94e42125b326@syzkaller.appspotmail.com
First crash: 2011d, last: 2005d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 INFO: task hung in evdev_flush 4 2032d 2048d 0/1 auto-closed as invalid on 2019/10/25 08:39
android-49 INFO: task hung in evdev_flush 30 2023d 2048d 0/3 auto-closed as invalid on 2019/10/25 08:46
android-44 INFO: task hung in evdev_flush 6 2195d 2048d 0/2 auto-closed as invalid on 2019/05/17 03:15
upstream INFO: task hung in evdev_flush input 1 2221d 2215d 0/28 auto-closed as invalid on 2019/04/21 11:45

Sample crash report:
INFO: task syz-executor.5:17965 blocked for more than 140 seconds.
      Not tainted 4.4.174+ #4
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.5  D ffff8801a6f37d08 29096 17965   2144 0x00000004
 ffff8801a6f37d08 ffff88008b9fdf00 71653f11810e3822 ffff88008b9fdf00
 0000000000000000 ffff88008b9fe700 ffff8801db61f180 ffff8801db61f1a8
 ffff8801db61e898 ffff880097a297c0 ffff88008b9fdf00 ffffed0034de6001
Call Trace:
 [<ffffffff82709b79>] schedule+0x99/0x1d0 kernel/sched/core.c:3355
 [<ffffffff8270a333>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3388
 [<ffffffff8270c492>] __mutex_lock_common kernel/locking/mutex.c:582 [inline]
 [<ffffffff8270c492>] mutex_lock_nested+0x3c2/0xb80 kernel/locking/mutex.c:621
 [<ffffffff81f92912>] evdev_flush+0x72/0x120 drivers/input/evdev.c:350
 [<ffffffff81492169>] filp_close+0xa9/0x140 fs/open.c:1095
 [<ffffffff814f3ea1>] __close_fd+0x1a1/0x2b0 fs/file.c:650
 [<ffffffff81492246>] SYSC_close fs/open.c:1114 [inline]
 [<ffffffff81492246>] SyS_close+0x46/0xa0 fs/open.c:1112
 [<ffffffff82718ba1>] entry_SYSCALL_64_fastpath+0x1e/0x9a
1 lock held by syz-executor.5/17965:
 #0:  (&evdev->mutex){+.+.+.}, at: [<ffffffff81f92912>] evdev_flush+0x72/0x120 drivers/input/evdev.c:350
Sending NMI to all CPUs:
NMI backtrace for cpu 0
CPU: 0 PID: 20 Comm: khungtaskd Not tainted 4.4.174+ #4
task: ffff8801da6f4740 task.stack: ffff8800001d0000
RIP: 0010:[<ffffffff8109b617>]  [<ffffffff8109b617>] _flat_send_IPI_mask arch/x86/kernel/apic/apic_flat_64.c:62 [inline]
RIP: 0010:[<ffffffff8109b617>]  [<ffffffff8109b617>] flat_send_IPI_mask+0xf7/0x1b0 arch/x86/kernel/apic/apic_flat_64.c:69
RSP: 0018:ffff8800001d7c88  EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000c00 RCX: 0000000000000000
RDX: 0000000000000c00 RSI: 0000000000000000 RDI: ffffffffff5fc300
RBP: ffff8800001d7cb8 R08: 0000000000000018 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000246
R13: 0000000003000000 R14: ffffffff82e5f2e0 R15: 0000000000000002
FS:  0000000000000000(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000090000003 CR3: 00000000895e5000 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 0000000000000001 ffffffff82e5f2e0 ffffffff831a6ac0 fffffbfff0634c34
 000000000001b6c0 0000000000000008 ffff8800001d7cd8 ffffffff81092bee
 0000000000000008 ffffffff82924260 ffff8800001d7d30 ffffffff81ab8252
Call Trace:
 [<ffffffff81092bee>] nmi_raise_cpu_backtrace+0x5e/0x80 arch/x86/kernel/apic/hw_nmi.c:33
 [<ffffffff81ab8252>] nmi_trigger_all_cpu_backtrace.cold+0xa1/0xae lib/nmi_backtrace.c:85
 [<ffffffff81092ca4>] arch_trigger_all_cpu_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 [<ffffffff813b4762>] trigger_all_cpu_backtrace include/linux/nmi.h:44 [inline]
 [<ffffffff813b4762>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff813b4762>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff813b4762>] watchdog.cold+0xd3/0xee kernel/hung_task.c:238
 [<ffffffff811342c3>] kthread+0x273/0x310 kernel/kthread.c:211
 [<ffffffff82718fc5>] ret_from_fork+0x55/0x80 arch/x86/entry/entry_64.S:537
Code: 00 c3 5f ff 80 e6 10 75 e1 41 c1 e5 18 44 89 2c 25 10 c3 5f ff 44 89 fa 09 da 80 cf 04 41 83 ff 02 0f 44 d3 89 14 25 00 c3 5f ff <41> f7 c4 00 02 00 00 75 1e 4c 89 e7 57 9d 0f 1f 44 00 00 e8 f1 
NMI backtrace for cpu 1
CPU: 1 PID: 1982 Comm: syz-executor.4 Not tainted 4.4.174+ #4
task: ffff880097a297c0 task.stack: ffff8801d14e0000
RIP: 0010:[<ffffffff812067e0>]  [<ffffffff812067e0>] lock_release+0x580/0xcf0 kernel/locking/lockdep.c:3615
RSP: 0018:ffff8801d14e7e40  EFLAGS: 00000282
RAX: 0000000000000007 RBX: 0000000000000100 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000246
RBP: ffff8801d14e7e60 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff880097a2a060 R14: 0000000000000000 R15: ffff880097a2a0aa
FS:  00007f7d1dc75700(0000) GS:ffff8801db700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000050000049 CR3: 00000000b3151000 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffff8801d653cfc0 ffff880090fda4e0 0000000000000000 00000000ffffffe8
 ffff8801d14e7e78 ffffffff82717f5b ffff8801d653cf00 ffff8801d14e7ef8
 ffffffff814f32ea ffff880097a297c0 ffff8801d653cf50 ffff8801d653cff8
Call Trace:
 [<ffffffff82717f5b>] __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline]
 [<ffffffff82717f5b>] _raw_spin_unlock+0x1b/0x50 kernel/locking/spinlock.c:183
 [<ffffffff814f32ea>] spin_unlock include/linux/spinlock.h:347 [inline]
 [<ffffffff814f32ea>] __alloc_fd+0x1ea/0x490 fs/file.c:550
 [<ffffffff814f362e>] get_unused_fd_flags+0x9e/0xd0 fs/file.c:561
 [<ffffffff814f4f66>] SYSC_dup fs/file.c:938 [inline]
 [<ffffffff814f4f66>] SyS_dup+0x36/0xb0 fs/file.c:932
 [<ffffffff82718ba1>] entry_SYSCALL_64_fastpath+0x1e/0x9a
Code: 03 38 d0 7c 09 84 d2 74 05 e8 7d e7 27 00 c7 83 c4 08 00 00 00 00 00 00 48 8b 7d b0 57 9d 0f 1f 44 00 00 48 81 c4 88 00 00 00 5b <41> 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c0 80 7a 05 84 49 bf 00 00 

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/21 00:33 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 8285069f .config console log report ci-android-44-kasan-gce
2019/05/26 20:42 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 85c57315 .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.