syzbot


INFO: task hung in fsnotify_mark_destroy_list (2)

Status: auto-closed as invalid on 2019/10/25 14:12
Reported-by: syzbot+3e100387bce1e0e8b047@syzkaller.appspotmail.com
First crash: 1929d, last: 1916d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: task hung in fsnotify_mark_destroy_list 2 2232d 2387d 0/3 auto-closed as invalid on 2019/03/02 04:21

Sample crash report:
binder_alloc: allocated: 12208 (num: 134 largest: 96), free: 80 (num: 1 largest: 80)
binder: 10002:10006 transaction failed 29201/-28, size 72-24 line 3136
binder_alloc: 4105: binder_alloc_buf size 96 failed, no address space
binder_alloc: allocated: 12208 (num: 134 largest: 96), free: 80 (num: 1 largest: 80)
binder: 9982:10009 transaction failed 29201/-28, size 72-24 line 3136
INFO: task kworker/u4:1:64 blocked for more than 140 seconds.
      Not tainted 4.9.141+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/u4:1    D25352    64      2 0x80000000
Workqueue: events_unbound fsnotify_mark_destroy_workfn
 ffff8801d786af80 0000000000000000 ffff8801d61f1600 ffff8801d196df00
 ffff8801db721018 ffff8801d79af7c0 ffffffff828075c2 0000000000000096
 ffffffff83cdce40 ffffffff830d2c20 00000000000013b9 ffff8801db7218f0
Call Trace:
 [<ffffffff82808aef>] schedule+0x7f/0x1b0 kernel/sched/core.c:3553
 [<ffffffff828142d5>] schedule_timeout+0x735/0xe20 kernel/time/timer.c:1771
 [<ffffffff8280a63f>] do_wait_for_common kernel/sched/completion.c:75 [inline]
 [<ffffffff8280a63f>] __wait_for_common kernel/sched/completion.c:93 [inline]
 [<ffffffff8280a63f>] wait_for_common+0x3ef/0x5d0 kernel/sched/completion.c:101
 [<ffffffff8280a838>] wait_for_completion+0x18/0x20 kernel/sched/completion.c:122
 [<ffffffff81246014>] __synchronize_srcu+0x254/0x3b0 kernel/rcu/srcu.c:448
 [<ffffffff8124618e>] synchronize_srcu+0x1e/0x40 kernel/rcu/srcu.c:492
 [<ffffffff815e64cf>] fsnotify_mark_destroy_list+0x10f/0x390 fs/notify/mark.c:551
 [<ffffffff815e675e>] fsnotify_mark_destroy_workfn+0xe/0x10 fs/notify/mark.c:561
 [<ffffffff81131001>] process_one_work+0x831/0x15f0 kernel/workqueue.c:2092
 [<ffffffff81131e96>] worker_thread+0xd6/0x1140 kernel/workqueue.c:2226
 [<ffffffff81142c3d>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff82817a5c>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373

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 kworker/u4:1/64:
 #0:  ("events_unbound"){.+.+.+}, at: [<ffffffff81130f0c>] process_one_work+0x73c/0x15f0 kernel/workqueue.c:2085
 #1:  ((reaper_work).work){+.+...}, at: [<ffffffff81130f44>] process_one_work+0x774/0x15f0 kernel/workqueue.c:2089
1 lock held by rsyslogd/1898:
 #0:  (&f->f_pos_lock){+.+.+.}, at: [<ffffffff8156cc7c>] __fdget_pos+0xac/0xd0 fs/file.c:781
2 locks held by getty/2025:
 #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 init/8032:
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open_by_driver drivers/tty/tty_io.c:2052 [inline]
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open+0x476/0xdf0 drivers/tty/tty_io.c:2130
1 lock held by init/8157:
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open_by_driver drivers/tty/tty_io.c:2052 [inline]
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open+0x476/0xdf0 drivers/tty/tty_io.c:2130
1 lock held by init/8158:
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open_by_driver drivers/tty/tty_io.c:2052 [inline]
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open+0x476/0xdf0 drivers/tty/tty_io.c:2130
1 lock held by init/8159:
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open_by_driver drivers/tty/tty_io.c:2052 [inline]
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open+0x476/0xdf0 drivers/tty/tty_io.c:2130
1 lock held by init/8160:
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open_by_driver drivers/tty/tty_io.c:2052 [inline]
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open+0x476/0xdf0 drivers/tty/tty_io.c:2130
1 lock held by init/8163:
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open_by_driver drivers/tty/tty_io.c:2052 [inline]
 #0:  (tty_mutex){+.+.+.}, at: [<ffffffff81d2bb96>] tty_open+0x476/0xdf0 drivers/tty/tty_io.c:2130

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

NMI backtrace for cpu 1
CPU: 1 PID: 24 Comm: khungtaskd Not tainted 4.9.141+ #1
 ffff8801d9907d08 ffffffff81b42e79 0000000000000000 0000000000000001
 0000000000000001 0000000000000001 ffffffff810983b0 ffff8801d9907d40
 ffffffff81b4df89 0000000000000001 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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 9982 Comm: syz-executor.0 Not tainted 4.9.141+ #1
task: ffff8801d110af80 task.stack: ffff88019e188000
RIP: 0033:[<000000000040e957>] c [<000000000040e957>] 0x40e957
RSP: 002b:0000000000a6fb00  EFLAGS: 00000206
RAX: 00000000209c1a0f RBX: 000000007ce43ec8 RCX: 0000001b2f520000
RDX: 00000000209c1a0f RSI: 0000000000001a0f RDI: ffffffff209c1a0f
RBP: 0000000000000078 R08: 00000000209c1a0f R09: 00000000209c1a13
R10: 0000000000a6fca0 R11: 0000000000000000 R12: 000000000075bfa8
R13: 0000000080000000 R14: 00007f2ec0f27008 R15: 000000000001f2c0
FS:  0000000002a60940(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020132000 CR3: 00000001cb5b1000 CR4: 00000000001606b0

Crashes (29):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/07/15 22:41 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 139ac68a .config console log report ci-android-49-kasan-gce
2019/07/15 14:20 https://android.googlesource.com/kernel/common android-4.9 70d52cb2bbcc 139ac68a .config console log report ci-android-49-kasan-gce-root
2019/07/15 08:01 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 a827bf70 .config console log report ci-android-49-kasan-gce
2019/07/12 19:15 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 baa5258a .config console log report ci-android-49-kasan-gce
2019/07/12 14:13 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 baa5258a .config console log report ci-android-49-kasan-gce
2019/07/12 10:11 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 baa5258a .config console log report ci-android-49-kasan-gce
2019/07/12 05:22 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 baa5258a .config console log report ci-android-49-kasan-gce
2019/07/11 20:29 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 186a30b9 .config console log report ci-android-49-kasan-gce
2019/07/11 11:12 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 ff7bf04c .config console log report ci-android-49-kasan-gce
2019/07/11 03:54 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 ff7bf04c .config console log report ci-android-49-kasan-gce
2019/07/10 13:21 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce
2019/07/09 15:24 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce
2019/07/09 15:17 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce
2019/07/07 22:26 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce
2019/07/07 00:44 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce
2019/07/06 22:25 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce
2019/07/06 20:09 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce
2019/07/06 15:22 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce
2019/07/04 23:28 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 429efa16 .config console log report ci-android-49-kasan-gce
2019/07/03 01:03 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 55565fa0 .config console log report ci-android-49-kasan-gce
2019/07/02 15:39 https://android.googlesource.com/kernel/common android-4.9 ab758e1039d6 55565fa0 .config console log report ci-android-49-kasan-gce-root
2019/07/15 11:39 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 a827bf70 .config console log report ci-android-49-kasan-gce-386
2019/07/14 19:25 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 2bbe2f05 .config console log report ci-android-49-kasan-gce-386
2019/07/13 13:00 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 e6fb0f13 .config console log report ci-android-49-kasan-gce-386
2019/07/10 17:51 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce-386
2019/07/10 13:13 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce-386
2019/07/09 18:09 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce-386
2019/07/07 08:52 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce-386
2019/07/06 14:59 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f62e1e85 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.