syzbot


INFO: task hung in check_lifetime

Status: auto-closed as invalid on 2019/02/22 15:29
First crash: 2386d, last: 2386d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in check_lifetime net 1 2480d 2479d 0/28 closed as dup on 2018/02/12 10:05
upstream INFO: task hung in check_lifetime (3) net 9 154d 175d 0/28 auto-obsoleted due to no activity on 2024/09/18 02:57
upstream INFO: task hung in check_lifetime (2) net 1 1130d 1130d 0/28 auto-closed as invalid on 2022/01/16 12:51

Sample crash report:
IPVS: stopping backup sync thread 25047 ...
INFO: task kworker/0:1:25 blocked for more than 120 seconds.
      Not tainted 4.9.99-gc462abb #23
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/0:1     D27128    25      2 0x00000000
Workqueue: events_power_efficient check_lifetime
 ffff8801d9408000 0000000000000000 ffff8801c5074000 ffff8801d066e000
 ffff8801db221b98 ffff8801d9417a88 ffffffff839e377d ffff8801d94088c8
 ffff8801d066e000 ffff8801db221b80 00fffc0000000000 ffff8801db222468
Call Trace:
 [<ffffffff839e4d7f>] schedule+0x7f/0x1b0 kernel/sched/core.c:3557
 [<ffffffff839e5703>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3590
 [<ffffffff839e9b86>] __mutex_lock_common kernel/locking/mutex.c:582 [inline]
 [<ffffffff839e9b86>] mutex_lock_nested+0x326/0x870 kernel/locking/mutex.c:621
 [<ffffffff830b1837>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
 [<ffffffff83413858>] check_lifetime+0x398/0x730 net/ipv4/devinet.c:672
 [<ffffffff8118ae31>] process_one_work+0x7e1/0x1500 kernel/workqueue.c:2092
 [<ffffffff8118bc26>] worker_thread+0xd6/0x10a0 kernel/workqueue.c:2226
 [<ffffffff8119ad5d>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff839f481c>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373

Showing all locks held in the system:
3 locks held by kworker/0:1/25:
 #0:  ("events_power_efficient"){.+.+.+}, at: [<ffffffff8118ad3e>] work_static include/linux/workqueue.h:186 [inline]
 #0:  ("events_power_efficient"){.+.+.+}, at: [<ffffffff8118ad3e>] set_work_data kernel/workqueue.c:617 [inline]
 #0:  ("events_power_efficient"){.+.+.+}, at: [<ffffffff8118ad3e>] set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0:  ("events_power_efficient"){.+.+.+}, at: [<ffffffff8118ad3e>] process_one_work+0x6ee/0x1500 kernel/workqueue.c:2085
 #1:  ((check_lifetime_work).work){+.+.+.}, at: [<ffffffff8118ad78>] process_one_work+0x728/0x1500 kernel/workqueue.c:2089
 #2:  (rtnl_mutex){+.+.+.}, at: [<ffffffff830b1837>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
2 locks held by khungtaskd/519:
 #0:  (rcu_read_lock){......}, at: [<ffffffff813646ec>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff813646ec>] watchdog+0x11c/0xa20 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff81423bc0>] debug_show_all_locks+0x79/0x218 kernel/locking/lockdep.c:4336
2 locks held by getty/3777:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff839f2822>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+.+.}, at: [<ffffffff8211cc32>] n_tty_read+0x202/0x16e0 drivers/tty/n_tty.c:2133
3 locks held by kworker/0:2/4383:
 #0:  ("%s"("ipv6_addrconf")){.+.+..}, at: [<ffffffff8118ad3e>] work_static include/linux/workqueue.h:186 [inline]
 #0:  ("%s"("ipv6_addrconf")){.+.+..}, at: [<ffffffff8118ad3e>] set_work_data kernel/workqueue.c:617 [inline]
 #0:  ("%s"("ipv6_addrconf")){.+.+..}, at: [<ffffffff8118ad3e>] set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0:  ("%s"("ipv6_addrconf")){.+.+..}, at: [<ffffffff8118ad3e>] process_one_work+0x6ee/0x1500 kernel/workqueue.c:2085
 #1:  ((addr_chk_work).work){+.+...}, at: [<ffffffff8118ad78>] process_one_work+0x728/0x1500 kernel/workqueue.c:2089
 #2:  (rtnl_mutex){+.+.+.}, at: [<ffffffff830b1837>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
1 lock held by syz-executor1/25033:
 #0:  (rtnl_mutex){+.+.+.}, at: [<ffffffff830b1837>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
1 lock held by syz-executor1/25073:
 #0:  (rtnl_mutex){+.+.+.}, at: [<ffffffff830b1837>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
1 lock held by syz-executor6/25046:
 #0:  (ipvs->sync_mutex){+.+.+.}, at: [<ffffffff832df485>] do_ip_vs_set_ctl+0x645/0xbd0 net/netfilter/ipvs/ip_vs_ctl.c:2402
2 locks held by syz-executor6/25051:
 #0:  (rtnl_mutex){+.+.+.}, at: [<ffffffff830b1837>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
 #1:  (ipvs->sync_mutex){+.+.+.}, at: [<ffffffff832df74d>] do_ip_vs_set_ctl+0x90d/0xbd0 net/netfilter/ipvs/ip_vs_ctl.c:2397
1 lock held by syz-executor0/25049:
 #0:  (rtnl_mutex){+.+.+.}, at: [<ffffffff830b635b>] rtnl_lock net/core/rtnetlink.c:70 [inline]
 #0:  (rtnl_mutex){+.+.+.}, at: [<ffffffff830b635b>] rtnetlink_rcv+0x1b/0x40 net/core/rtnetlink.c:4064
1 lock held by ipvs-b:8:0/25047:
 #0:  (rtnl_mutex){+.+.+.}, at: [<ffffffff830b1837>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70

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

NMI backtrace for cpu 0
CPU: 0 PID: 519 Comm: khungtaskd Not tainted 4.9.99-gc462abb #23
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d96efd08 ffffffff81eb0f09 0000000000000000 0000000000000000
 0000000000000000 0000000000000001 ffffffff810b7da0 ffff8801d96efd40
 ffffffff81ebc207 0000000000000000 0000000000000000 0000000000000003
Call Trace:
 [<ffffffff81eb0f09>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81eb0f09>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81ebc207>] nmi_cpu_backtrace.cold.2+0x48/0x87 lib/nmi_backtrace.c:99
 [<ffffffff81ebc19a>] nmi_trigger_cpumask_backtrace+0x12a/0x14f lib/nmi_backtrace.c:60
 [<ffffffff810b7ea4>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37
 [<ffffffff81364c84>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff81364c84>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff81364c84>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff81364c84>] watchdog+0x6b4/0xa20 kernel/hung_task.c:239
 [<ffffffff8119ad5d>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff839f481c>] 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: 3678 Comm: rs:main Q:Reg Not tainted 4.9.99-gc462abb #23
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8801c609c800 task.stack: ffff8801c6288000
RIP: 0010:[<ffffffff8135ca4b>] c [<ffffffff8135ca4b>] __write_once_size include/linux/compiler.h:272 [inline]
RIP: 0010:[<ffffffff8135ca4b>] c [<ffffffff8135ca4b>] __sanitizer_cov_trace_pc+0x4b/0x50 kernel/kcov.c:108
RSP: 0018:ffff8801c628f3a0  EFLAGS: 00000293
RAX: ffff8801c609c800 RBX: ffff8801c7e3d280 RCX: ffffffff84c5de78
RDX: 0000000000000000 RSI: ffffffff817f45a5 RDI: ffff8801c609d0c4
RBP: ffff8801c628f3a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8801c7e3d2a8 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007fcf98e0f700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000014dd000 CR3: 00000001c6b60000 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffff8801c628f5f0c ffffffff817f45a5c ffff8801c628f3f0c ffffffff8122e3f2c
 ffff8801c609d0c0c 0000000000000246c fffffbfff0989f54c 1ffff10038c51e95c
 ffffffff81839ef4c fffffbfff0989f61c ffff8801b6752060c 0000000000000001c
Call Trace:
 [<ffffffff817f45a5>] trace_ext4_ext_remove_space_done include/trace/events/ext4.h:2186 [inline]
 [<ffffffff817f45a5>] ext4_ext_remove_space+0x2815/0x3ab0 fs/ext4/extents.c:3029
 [<ffffffff817fc795>] ext4_ext_truncate+0x185/0x280 fs/ext4/extents.c:4658
 [<ffffffff81751995>] ext4_truncate+0xa15/0x12c0 fs/ext4/inode.c:4259
 [<ffffffff81753b2b>] ext4_truncate_failed_write fs/ext4/truncate.h:15 [inline]
 [<ffffffff81753b2b>] ext4_da_write_begin+0x4eb/0x1020 fs/ext4/inode.c:3015
 [<ffffffff81433b91>] generic_perform_write+0x301/0x510 mm/filemap.c:2740
 [<ffffffff8143b622>] __generic_file_write_iter+0x352/0x540 mm/filemap.c:2865
 [<ffffffff8172a083>] ext4_file_write_iter+0x463/0xd90 fs/ext4/file.c:165
 [<ffffffff8156c3c0>] new_sync_write fs/read_write.c:496 [inline]
 [<ffffffff8156c3c0>] __vfs_write+0x3e0/0x580 fs/read_write.c:509
 [<ffffffff815701b7>] vfs_write+0x187/0x530 fs/read_write.c:557
 [<ffffffff81573fe9>] SYSC_write fs/read_write.c:604 [inline]
 [<ffffffff81573fe9>] SyS_write+0xd9/0x1c0 fs/read_write.c:596
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839f4653>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
Code: c8b c90 c80 c12 c00 c00 c83 cfa c02 c75 c20 c48 c8b c88 c88 c12 c00 c00 c8b c80 c84 c12 c00 c00 c48 c8b c11 c48 c83 cc2 c01 c48 c39 cd0 c76 c07 c48 c89 c34 cd1 c48 c89 c11 c<5d> cc3 c0f c1f c00 c55 c48 c89 ce5 c41 c57 c41 c56 c41 c55 c41 c54 c53 c48 c89 cf3 c

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/10 22:17 https://android.googlesource.com/kernel/common android-4.9 c462abbf779b 12c7428a .config console log report ci-android-49-kasan-gce
* Struck through repros no longer work on HEAD.