syzbot


INFO: task hung in nilfs_segctor_thread

Status: upstream: reported on 2022/11/09 20:32
Reported-by: syzbot+f0c4082ce5ebebdac63b@syzkaller.appspotmail.com
First crash: 52d, last: 12d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in nilfs_segctor_thread 39 7d20h 21d 0/1 upstream: reported on 2022/11/05 03:06

Sample crash report:
INFO: task segctord:5652 blocked for more than 143 seconds.
      Not tainted 6.1.0-rc3-syzkaller-00332-g089d1c31224e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:segctord        state:D stack:23704 pid:5652  ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5191 [inline]
 __schedule+0x8c9/0xd70 kernel/sched/core.c:6503
 schedule+0xcb/0x190 kernel/sched/core.c:6579
 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190
 __down_write_common kernel/locking/rwsem.c:1305 [inline]
 __down_write kernel/locking/rwsem.c:1314 [inline]
 down_write+0x231/0x270 kernel/locking/rwsem.c:1563
 nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357
 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2486 [inline]
 nilfs_segctor_thread+0x593/0x11c0 fs/nilfs2/segment.c:2570
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8cb22630 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8cb22e30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
 #0: ffffffff8cb22460 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
3 locks held by udevd/2974:
2 locks held by getty/3289:
 #0: ffff888027ad0098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177
7 locks held by syz-executor.5/5653:
1 lock held by segctord/5652:
 #0: ffff8880369932a0 (&nilfs->ns_segctor_sem){++++}-{3:3}, at: nilfs_transaction_lock+0x246/0x4b0 fs/nilfs2/segment.c:357
1 lock held by syz-executor.0/12093:
 #0: ffff88807d6b9080 (&iint->mutex){+.+.}-{3:3}, at: ima_check_last_writer security/integrity/ima/ima_main.c:164 [inline]
 #0: ffff88807d6b9080 (&iint->mutex){+.+.}-{3:3}, at: ima_file_free+0x109/0x3a0 security/integrity/ima/ima_main.c:198
1 lock held by syz-executor.0/12095:

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc3-syzkaller-00332-g089d1c31224e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1ba/0x420 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xcf5/0xd40 kernel/hung_task.c:377
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4152 Comm: syz-fuzzer Not tainted 6.1.0-rc3-syzkaller-00332-g089d1c31224e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0033:0x42f560
Code: b4 d0 d0 16 00 00 0f 1f 40 00 48 81 fe 00 10 00 00 72 df 48 89 54 24 28 48 89 5c 24 20 48 89 f0 31 db 48 89 d9 0f 1f 44 00 00 <e8> 7b 46 fe ff 48 85 c0 75 18 48 8b 44 24 48 48 8b 4c 24 30 48 8b
RSP: 002b:000000c036133f60 EFLAGS: 00000246
RAX: 0000000001314a80 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000184 RSI: 0000000001314a80 RDI: 000000000045e5a0
RBP: 000000c036133f98 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000cdd5b8 R11: 000000c01a5937a0 R12: 000000c000042ed0
R13: 000000000186b680 R14: 000000c0009ee680 R15: 00007fd6f58ddc68
FS:  000000c0254c0890 GS:  0000000000000000

Crashes (44):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/11/07 10:34 upstream 089d1c31224e 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-kasan-gce-root 2022/11/05 11:04 upstream 10d916c86eca 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-kasan-gce-root 2022/11/05 04:05 upstream 10d916c86eca 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/11/03 00:50 upstream b229b6ca5abb 08977f5d .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/11/01 10:04 upstream b229b6ca5abb a1d8560a .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/31 04:42 upstream b229b6ca5abb 2a71366b .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/30 06:38 upstream b229b6ca5abb 2a71366b .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/29 21:50 upstream b229b6ca5abb 2a71366b .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/22 12:33 upstream 440b7895c990 c0b80a55 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-kasan-gce-root 2022/10/22 01:12 upstream e35184f32151 4bfd3c27 .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/19 04:27 upstream 493ffd6605b2 b31320fc .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/18 15:54 upstream 493ffd6605b2 b31320fc .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/16 09:47 upstream 493ffd6605b2 67cb024c .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/16 08:54 upstream 493ffd6605b2 67cb024c .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/15 22:06 upstream 493ffd6605b2 67cb024c .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/10 15:10 upstream 493ffd6605b2 5bcf0c31 .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/10 01:44 upstream a6afa4199d3d aea5da89 .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/08 05:26 upstream 62e6e5940c0c aea5da89 .config log report info INFO: task hung in nilfs_segctor_thread
ci2-upstream-fs 2022/10/06 01:49 upstream 2bca25eaeba6 2c6543ad .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-linux-next-kasan-gce-root 2022/11/05 18:17 linux-next 0cdb3579f1ee 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-linux-next-kasan-gce-root 2022/11/05 11:30 linux-next 0cdb3579f1ee 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-linux-next-kasan-gce-root 2022/10/18 12:30 linux-next 77d8bf70fac0 754863b4 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/14 16:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 943f4cb8 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/07 14:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f0c4d9fc9cc9 a779b11a .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/07 01:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/06 19:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/06 18:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/06 16:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/06 16:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/06 10:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/06 05:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/06 04:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/06 02:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/05 22:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/05 20:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/05 11:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/05 07:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/05 06:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/11/05 02:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/10/22 17:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 c0b80a55 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/10/22 13:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 c0b80a55 .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/10/17 17:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info INFO: task hung in nilfs_segctor_thread
ci-upstream-gce-arm64 2022/10/05 07:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 eab8f949 .config log report info INFO: task hung in nilfs_segctor_thread
* Struck through repros no longer work on HEAD.