syzbot


INFO: task hung in evdev_flush

Status: auto-closed as invalid on 2019/10/25 08:46
Reported-by: syzbot+3e03dfec4c27999bb98f@syzkaller.appspotmail.com
First crash: 2276d, last: 2023d
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-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
android-44 INFO: task hung in evdev_flush (2) 2 2005d 2011d 0/2 auto-closed as invalid on 2019/10/25 08:52

Sample crash report:
INFO: task syz-executor.2:32704 blocked for more than 140 seconds.
      Not tainted 4.9.141+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2  D28824 32704   2124 0x00000004
 ffff8801cf0c2f80 ffff8801d48e1080 ffff88015d571b80 ffff8801cf4fdf00
 ffff8801db721018 ffff8801472bfcf8 ffffffff828075c2 0000000000000000
 ffff8801cf0c3830 ffffed0039e18705 00ff8801cf0c2f80 ffff8801db7218f0
Call Trace:
 [<ffffffff82808aef>] schedule+0x7f/0x1b0 kernel/sched/core.c:3553
 [<ffffffff828094a3>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3586
 [<ffffffff8280b51d>] __mutex_lock_common kernel/locking/mutex.c:582 [inline]
 [<ffffffff8280b51d>] mutex_lock_nested+0x38d/0x900 kernel/locking/mutex.c:621
 [<ffffffff82053de2>] evdev_flush+0x72/0x120 drivers/input/evdev.c:350
 [<ffffffff81502a77>] filp_close+0xa7/0x140 fs/open.c:1129
 [<ffffffff8156c826>] __close_fd+0x156/0x230 fs/file.c:651
 [<ffffffff81502b5c>] SYSC_close fs/open.c:1148 [inline]
 [<ffffffff81502b5c>] SyS_close+0x4c/0x90 fs/open.c:1146
 [<ffffffff810056ef>] do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285
 [<ffffffff82817893>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

Showing all locks held in the system:
2 locks held by khungtaskd/24:
 #0:  (rcu_read_lock){......}, at: [<ffffffff8131c0cc>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff8131c0cc>] watchdog+0x11c/0xa20 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff813fe63f>] debug_show_all_locks+0x79/0x218 kernel/locking/lockdep.c:4336
2 locks held by getty/2036:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff82815952>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+...}, at: [<ffffffff81d37362>] n_tty_read+0x202/0x16e0 drivers/tty/n_tty.c:2142
2 locks held by syz-executor.4/14026:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff82815952>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+...}, at: [<ffffffff81d37362>] n_tty_read+0x202/0x16e0 drivers/tty/n_tty.c:2142
1 lock held by syz-executor.2/32704:
 #0:  (&evdev->mutex){+.+.+.}, at: [<ffffffff82053de2>] evdev_flush+0x72/0x120 drivers/input/evdev.c:350

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 24 Comm: khungtaskd Not tainted 4.9.141+ #1
 ffff8801d9907d08 ffffffff81b42e79 0000000000000000 0000000000000000
 0000000000000000 0000000000000001 ffffffff810983b0 ffff8801d9907d40
 ffffffff81b4df89 0000000000000000 0000000000000000 0000000000000002
Call Trace:
 [<ffffffff81b42e79>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81b42e79>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81b4df89>] nmi_cpu_backtrace.cold.0+0x48/0x87 lib/nmi_backtrace.c:99
 [<ffffffff81b4df1c>] nmi_trigger_cpumask_backtrace+0x12c/0x151 lib/nmi_backtrace.c:60
 [<ffffffff810984b4>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37
 [<ffffffff8131c65d>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff8131c65d>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff8131c65d>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff8131c65d>] watchdog+0x6ad/0xa20 kernel/hung_task.c:239
 [<ffffffff81142c3d>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff82817a5c>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 32453 Comm: syz-executor.1 Not tainted 4.9.141+ #1
task: ffff8801cb434740 task.stack: ffff8801cf618000
RIP: 0010:[<ffffffff8120716a>] c [<ffffffff8120716a>] trace_hardirqs_on_caller+0x35a/0x590 kernel/locking/lockdep.c:2737
RSP: 0018:ffff8801cf61fee0  EFLAGS: 00000803
RAX: dffffc0000000000 RBX: ffff8801cb434740 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801cb434fec
RBP: ffff8801cf61fef0 R08: ffff8801cb434ff0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 000000000ba94e8d
R13: 000000000000000c R14: 000000000000000d R15: 00000000ffffffff
FS:  00007fbbdb65f700(0000) GS:ffff8801db700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020ab9000 CR3: 00000001d419b000 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 0000000000000009c 000000000000000bc ffff8801cf61ff48c ffffffff8100226ac
 0000000000000001c 0000000000000000c 0000000000000001c ffff8801cb434ff0c
 0000000000000000c 0000000000000000c 1ffff100396868e9c ffffffff8100584bc
Call Trace:
 [<ffffffff8100226a>] trace_hardirqs_on_thunk+0x1a/0x1c
 [<ffffffff828178c0>] entry_SYSCALL_64_after_swapgs+0x8a/0xdb
Code: c89 ca3 c70 c08 c00 c00 c65 c48 c8b c1c c25 c00 c7e c01 c00 c48 c8d cbb cac c08 c00 c00 c48 cb8 c00 c00 c00 c00 c00 cfc cff cdf c48 c89 cfa c48 cc1 cea c03 c0f cb6 c14 c02 c<48> c89 cf8 c83 ce0 c07 c83 cc0 c03 c38 cd0 c7c c08 c84 cd2 c0f c85 ccd c00 c00 c00 c

Crashes (30):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/05/09 14:35 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 6fc130d3 .config console log report ci-android-49-kasan-gce
2019/05/08 16:49 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 a7383bfa .config console log report ci-android-49-kasan-gce
2019/02/11 15:58 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 73f5f452 .config console log report ci-android-49-kasan-gce
2019/01/30 17:53 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 aa432daf .config console log report ci-android-49-kasan-gce
2019/01/27 08:41 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 c73f090a .config console log report ci-android-49-kasan-gce
2018/11/22 11:03 https://android.googlesource.com/kernel/common android-4.9 c3282d18a9f4 2ee77802 .config console log report ci-android-49-kasan-gce
2018/11/13 15:10 https://android.googlesource.com/kernel/common android-4.9 109a48ed2f69 5f5f6d14 .config console log report ci-android-49-kasan-gce
2018/10/16 15:46 https://android.googlesource.com/kernel/common android-4.9 a144472d407b 1ba7fd7e .config console log report ci-android-49-kasan-gce
2018/10/02 05:09 https://android.googlesource.com/kernel/common android-4.9 cf4085f8a04d e06f7713 .config console log report ci-android-49-kasan-gce
2018/09/23 17:57 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 37079712 .config console log report ci-android-49-kasan-gce
2018/09/23 15:20 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 37079712 .config console log report ci-android-49-kasan-gce
2018/09/23 07:21 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 37079712 .config console log report ci-android-49-kasan-gce
2018/09/22 09:41 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 37079712 .config console log report ci-android-49-kasan-gce-root
2018/09/21 19:09 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 37079712 .config console log report ci-android-49-kasan-gce
2018/09/21 03:04 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 6cee973c .config console log report ci-android-49-kasan-gce
2018/09/21 02:35 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 6cee973c .config console log report ci-android-49-kasan-gce
2018/09/20 18:57 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 6cee973c .config console log report ci-android-49-kasan-gce
2018/09/15 14:47 https://android.googlesource.com/kernel/common android-4.9 be4935d541ab a343a400 .config console log report ci-android-49-kasan-gce
2018/09/14 06:01 https://android.googlesource.com/kernel/common android-4.9 a8c1ea6c63ed 19e9088b .config console log report ci-android-49-kasan-gce-root
2018/09/10 16:16 https://android.googlesource.com/kernel/common android-4.9 a8c1ea6c63ed f167cb6b .config console log report ci-android-49-kasan-gce
2018/09/09 18:44 https://android.googlesource.com/kernel/common android-4.9 dcae9fa1319b 6b5120a4 .config console log report ci-android-49-kasan-gce
2018/09/09 18:10 https://android.googlesource.com/kernel/common android-4.9 dcae9fa1319b 6b5120a4 .config console log report ci-android-49-kasan-gce-root
2018/09/09 15:15 https://android.googlesource.com/kernel/common android-4.9 dcae9fa1319b 6b5120a4 .config console log report ci-android-49-kasan-gce
2018/09/07 00:39 https://android.googlesource.com/kernel/common android-4.9 dcae9fa1319b e30d3b52 .config console log report ci-android-49-kasan-gce
2018/09/04 01:01 https://android.googlesource.com/kernel/common android-4.9 a06ea261bc2a a4718693 .config console log report ci-android-49-kasan-gce
2018/09/03 20:29 https://android.googlesource.com/kernel/common android-4.9 a06ea261bc2a a4718693 .config console log report ci-android-49-kasan-gce
2018/09/03 09:04 https://android.googlesource.com/kernel/common android-4.9 a06ea261bc2a a4718693 .config console log report ci-android-49-kasan-gce
2018/08/28 21:18 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c b771b17e .config console log report ci-android-49-kasan-gce
2019/04/16 01:45 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 505ab413 .config console log report ci-android-49-kasan-gce-386
2018/10/22 18:36 https://android.googlesource.com/kernel/common android-4.9 03fcc2fe7130 ecb386fe .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.