syzbot


INFO: task hung in key_garbage_collector

Status: auto-closed as invalid on 2019/03/08 00:41
First crash: 2267d, last: 2265d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in key_garbage_collector keyrings lsm 1 2217d 2217d 0/28 auto-closed as invalid on 2019/04/24 21:05
android-414 INFO: task hung in key_garbage_collector (2) 1 2084d 2048d 0/1 auto-closed as invalid on 2019/09/05 13:15
android-49 INFO: task hung in key_garbage_collector 1 1957d 1957d 0/3 auto-closed as invalid on 2019/11/10 22:30

Sample crash report:
ip6_tunnel: ip6tnl1 xmit: Local address not yet configured!
ip6_tunnel: ip6tnl1 xmit: Local address not yet configured!
INFO: task kworker/1:2:72 blocked for more than 140 seconds.
      Not tainted 4.14.68+ #4
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/1:2     D27504    72      2 0x80000000
Workqueue: events key_garbage_collector
Call Trace:
 schedule+0x7f/0x1b0 kernel/sched/core.c:3490
 schedule_timeout+0x710/0xe60 kernel/time/timer.c:1718
 do_wait_for_common kernel/sched/completion.c:91 [inline]
 __wait_for_common kernel/sched/completion.c:112 [inline]
 wait_for_common+0x3bc/0x4e0 kernel/sched/completion.c:123
 __wait_rcu_gp+0x250/0x3a0 kernel/rcu/update.c:413
 synchronize_rcu.part.43+0xd2/0xe0 kernel/rcu/tree_plugin.h:764
 key_garbage_collector+0x291/0x7c0 security/keys/gc.c:292
 process_one_work+0x86e/0x15c0 kernel/workqueue.c:2114
 worker_thread+0xdc/0x1000 kernel/workqueue.c:2248
 kthread+0x348/0x420 kernel/kthread.c:232
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:402

Showing all locks held in the system:
1 lock held by khungtaskd/23:
 #0:  (tasklist_lock){.+.+}, at: [<ffffffffb30019d7>] debug_show_all_locks+0x74/0x20f kernel/locking/lockdep.c:4541
2 locks held by kworker/1:2/72:
 #0:  ("events"){+.+.}, at: [<ffffffffb2f27237>] process_one_work+0x787/0x15c0 kernel/workqueue.c:2085
 #1:  (key_gc_work){+.+.}, at: [<ffffffffb2f2726f>] process_one_work+0x7bf/0x15c0 kernel/workqueue.c:2089
2 locks held by getty/1761:
 #0:  (&tty->ldisc_sem){++++}, at: [<ffffffffb3b1c980>] tty_ldisc_ref_wait+0x20/0x80 drivers/tty/tty_ldisc.c:275
 #1:  (&ldata->atomic_read_lock){+.+.}, at: [<ffffffffb3b17eff>] n_tty_read+0x1ff/0x15e0 drivers/tty/n_tty.c:2142
1 lock held by syz-executor3/700:
 #0:  (rcu_preempt_state.barrier_mutex){+.+.}, at: [<ffffffffb3047d1b>] _rcu_barrier+0x5b/0x3f0 kernel/rcu/tree.c:3529

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

NMI backtrace for cpu 0
CPU: 0 PID: 23 Comm: khungtaskd Not tainted 4.14.68+ #4
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0xb9/0x11b lib/dump_stack.c:53
 nmi_cpu_backtrace.cold.0+0x47/0x85 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x121/0x146 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:138 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:196 [inline]
 watchdog+0x574/0xa70 kernel/hung_task.c:252
 kthread+0x348/0x420 kernel/kthread.c:232
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:402
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 650 Comm: syz-executor4 Not tainted 4.14.68+ #4
task: ffff8801c2f9c680 task.stack: ffff8801ab7b0000
RIP: 0033:0x4023c4
RSP: 002b:00007f5f0dc1f690 EFLAGS: 00000292
RAX: 00000000a6204920 RBX: 0000000000000007 RCX: 0000000000457099
RDX: 0000000000000000 RSI: 00007f5f0dc1f6c0 RDI: 0000000000000007
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004d7008 R14: 00000000004ca112 R15: 0000000000000000
FS:  00007f5f0dc20700(0000) GS:ffff8801db900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd24fe9f78 CR3: 000000016cd62003 CR4: 00000000001606a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/09/09 00:36 android-4.14 b859aa7d7a0c 6b5120a4 .config console log report ci-android-414-kasan-gce-root
2018/09/07 10:23 android-4.14 b859aa7d7a0c e30d3b52 .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.