syzbot


INFO: task hung in mousedev_detach_client

Status: auto-closed as invalid on 2019/03/28 14:00
Subsystems: input
[Documentation on labels]
Reported-by: syzbot+0b8369d7f8f40421ff05@syzkaller.appspotmail.com
First crash: 2035d, last: 2035d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: task hung in mousedev_detach_client 1 1684d 1684d 0/3 auto-closed as invalid on 2020/01/13 19:53

Sample crash report:
INFO: task syz-executor1:17465 blocked for more than 140 seconds.
      Not tainted 4.19.0-rc5+ #259
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor1   D23400 17465   5362 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2825 [inline]
 __schedule+0x86c/0x1ed0 kernel/sched/core.c:3473
 schedule+0xfe/0x460 kernel/sched/core.c:3517
 exp_funnel_lock kernel/rcu/tree_exp.h:320 [inline]
 _synchronize_rcu_expedited+0xc68/0xfd0 kernel/rcu/tree_exp.h:667
 synchronize_rcu_expedited+0x35/0xb0 kernel/rcu/tree_exp.h:795
 synchronize_rcu.part.65+0x84/0x120 kernel/rcu/tree_plugin.h:818
 synchronize_rcu+0x27/0xa0 kernel/rcu/tree_plugin.h:821
 mousedev_detach_client+0x1a3/0x290 drivers/input/mousedev.c:520
 mousedev_release+0x60/0xc0 drivers/input/mousedev.c:528
 __fput+0x385/0xa30 fs/file_table.c:278
 ____fput+0x15/0x20 fs/file_table.c:309
 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166
 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
 do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x411051
Code: 00 00 00 e8 91 a8 01 00 0f 0b e8 1a 8f 04 00 e9 c5 fe ff ff cc cc cc cc cc 64 48 8b 0c 25 f8 ff ff ff 48 3b 61 10 76 3d 48 83 <ec> 28 48 89 6c 24 20 48 8d 6c 24 20 48 8b 44 24 30 48 8b 08 48 89
RSP: 002b:00007ffdffea57d0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000411051
RDX: 0000000000000000 RSI: 00000000007302a0 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 00007ffdffea56f0 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 000000000000063d R15: 0000000000000001

Showing all locks held in the system:
1 lock held by khungtaskd/983:
 #0: 00000000f11e8c6d (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4435
1 lock held by rsyslogd/5224:
 #0: 00000000e1a25791 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766
2 locks held by getty/5313:
 #0: 00000000c30dda44 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000134e8bbb (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5314:
 #0: 0000000015a78bd7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000e495596f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5315:
 #0: 000000006c8066cc (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000506e5b0e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5316:
 #0: 00000000ae40fa2a (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 000000004f28c639 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5317:
 #0: 0000000070e2cb43 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000436872d2 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5318:
 #0: 00000000d9167f31 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 000000002433717e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
2 locks held by getty/5319:
 #0: 00000000963ce50f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353
 #1: 00000000d7fa80bd (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ce0 drivers/tty/n_tty.c:2140
1 lock held by syz-fuzzer/5341:
 #0: 00000000941c63ec (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1821 [inline]
 #0: 00000000941c63ec (&rq->lock){-.-.}, at: __schedule+0x236/0x1ed0 kernel/sched/core.c:3411

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

NMI backtrace for cpu 0
CPU: 0 PID: 983 Comm: khungtaskd Not tainted 4.19.0-rc5+ #259
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c4/0x2b4 lib/dump_stack.c:113
 nmi_cpu_backtrace.cold.3+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1b3/0x1ed lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace include/linux/nmi.h:144 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:204 [inline]
 watchdog+0xb3e/0x1050 kernel/hung_task.c:265
 kthread+0x35a/0x420 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.19.0-rc5+ #259
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:lock_is_held_type+0x10/0x210 kernel/locking/lockdep.c:3927
Code: c8 e8 14 2c 62 00 e9 63 ff ff ff e8 0a 2c 62 00 eb ad 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 41 55 <49> 89 fd 41 54 53 65 48 8b 1c 25 40 ee 01 00 48 8d bb 7c 08 00 00
RSP: 0018:ffff8801daf07ab8 EFLAGS: 00000202
RAX: dffffc0000000000 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 1ffffffff12dfcb8 RSI: 00000000ffffffff RDI: ffffffff8939a760
RBP: ffff8801daf07ac0 R08: 0000000000000002 R09: 1ffffffff1273955
R10: ffffed003b5e4732 R11: ffff8801daf23993 R12: 0000000000000008
R13: ffff8801d9adc3c0 R14: dffffc0000000000 R15: 0000000000000007
FS:  0000000000000000(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92641bc000 CR3: 00000001be47c000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 lock_is_held include/linux/lockdep.h:344 [inline]
 rcu_read_lock_sched_held+0x108/0x120 kernel/rcu/update.c:117
 trace_softirq_entry include/trace/events/irq.h:128 [inline]
 __do_softirq+0x8fe/0xad8 kernel/softirq.c:291
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x17f/0x1c0 kernel/softirq.c:412
 scheduler_ipi+0x55a/0xad0 kernel/sched/core.c:1780
 smp_reschedule_interrupt+0x109/0x650 arch/x86/kernel/smp.c:278
 reschedule_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:888
 </IRQ>
RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:57
Code: e9 2c ff ff ff 48 89 c7 48 89 45 d8 e8 43 37 12 fa 48 8b 45 d8 e9 ca fe ff ff 48 89 df e8 32 37 12 fa eb 82 55 48 89 e5 fb f4 <5d> c3 0f 1f 84 00 00 00 00 00 55 48 89 e5 f4 5d c3 90 90 90 90 90
RSP: 0018:ffff8801d9aefc30 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff02
RAX: dffffc0000000000 RBX: 1ffff1003b35df8a RCX: 0000000000000000
RDX: 1ffffffff1263e44 RSI: 0000000000000001 RDI: ffffffff8931f220
RBP: ffff8801d9aefc30 R08: ffff8801d9adc3c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801d9aefcf0
R13: ffffffff89f3bfa0 R14: 0000000000000000 R15: 0000000000000001
 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline]
 default_idle+0xbf/0x490 arch/x86/kernel/process.c:498
 arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:489
 default_idle_call+0x6d/0x90 kernel/sched/idle.c:93
 cpuidle_idle_call kernel/sched/idle.c:153 [inline]
 do_idle+0x3db/0x5b0 kernel/sched/idle.c:262
 cpu_startup_entry+0x10c/0x120 kernel/sched/idle.c:368
 start_secondary+0x447/0x5f0 arch/x86/kernel/smpboot.c:271
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/09/29 13:59 upstream e704966c45e4 41e4b329 .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.