syzbot


INFO: task hung in hfs_mdb_commit

Status: upstream: reported C repro on 2023/01/16 13:34
Subsystems: hfs
[Documentation on labels]
Reported-by: syzbot+4fec87c399346da35903@syzkaller.appspotmail.com
First crash: 446d, last: 33d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [hfs?] INFO: task hung in hfs_mdb_commit 0 (1) 2023/01/16 13:34
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in hfs_mdb_commit 1 285d 285d 0/3 auto-obsoleted due to no activity on 2023/08/31 05:50
linux-4.19 INFO: task hung in hfs_mdb_commit hfs C error 1 403d 403d 0/1 upstream: reported C repro on 2023/01/25 02:58
linux-5.15 INFO: task hung in hfs_mdb_commit 1 267d 267d 0/3 auto-obsoleted due to no activity on 2023/09/18 06:33
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/02/28 08:38 19m retest repro upstream OK log
2024/01/29 05:52 29m retest repro linux-next OK log
2024/01/14 11:02 20m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/01/14 11:02 23m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/01/14 06:39 22m retest repro upstream OK log
2024/01/13 15:53 23m retest repro upstream OK log
2023/12/20 08:08 17m retest repro upstream report log
2023/09/16 02:59 16m retest repro upstream report log
2023/09/16 02:59 17m retest repro linux-next report log
2023/09/01 22:21 12m retest repro upstream report log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2023/10/19 08:36 1h30m bisect fix upstream job log (0) log
2023/06/22 11:04 1h17m bisect fix upstream job log (0) log
2023/04/22 12:01 39m bisect fix upstream job log (0) log
2023/03/04 20:36 51m bisect fix upstream job log (0) log

Sample crash report:
INFO: task kworker/0:2:1369 blocked for more than 143 seconds.
      Not tainted 6.7.0-rc3-syzkaller-g2cc14f52aeb7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:2     state:D stack:0     pid:1369  tgid:1369  ppid:2      flags:0x00000008
Workqueue: events_long flush_mdb
Call trace:
 __switch_to+0x314/0x560 arch/arm64/kernel/process.c:556
 context_switch kernel/sched/core.c:5376 [inline]
 __schedule+0x1354/0x2360 kernel/sched/core.c:6688
 __schedule_loop kernel/sched/core.c:6763 [inline]
 schedule+0xb8/0x19c kernel/sched/core.c:6778
 io_schedule+0x8c/0x12c kernel/sched/core.c:8998
 bit_wait_io+0x1c/0xac kernel/sched/wait_bit.c:209
 __wait_on_bit_lock+0xcc/0x1e8 kernel/sched/wait_bit.c:90
 out_of_line_wait_on_bit_lock+0x194/0x21c kernel/sched/wait_bit.c:117
 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline]
 __lock_buffer+0x78/0xac fs/buffer.c:71
 lock_buffer include/linux/buffer_head.h:404 [inline]
 hfs_mdb_commit+0x9fc/0xf2c fs/hfs/mdb.c:325
 flush_mdb+0x6c/0x9c fs/hfs/super.c:66
 process_one_work+0x694/0x1204 kernel/workqueue.c:2630
 process_scheduled_works kernel/workqueue.c:2703 [inline]
 worker_thread+0x938/0xef4 kernel/workqueue.c:2784
 kthread+0x288/0x310 kernel/kthread.c:388
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffff80008e6b4740 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:300
2 locks held by kworker/0:2/1369:
 #0: ffff0000c0021538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 kernel/workqueue.c:2603
 #1: ffff800099b77c20 ((work_completion)(&(&sbi->mdb_work)->work)){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 kernel/workqueue.c:2605
2 locks held by getty/5857:
 #0: ffff0000d25960a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff800094e402f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2201
2 locks held by kworker/u4:2/8498:
 #0: ffff0001b4168d98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:558 [inline]
 #0: ffff0001b4168d98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1349 [inline]
 #0: ffff0001b4168d98 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1663 [inline]
 #0: ffff0001b4168d98 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x2dc/0x2360 kernel/sched/core.c:6604
 #1: ffff0001b4154e48 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3c0/0x618 kernel/sched/psi.c:988
5 locks held by syz-executor178/16598:

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


Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/30 16:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2cc14f52aeb7 f819d6f7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in hfs_mdb_commit
2023/11/16 12:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in hfs_mdb_commit
2023/11/17 01:24 upstream 7475e51b8796 cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/03/23 11:46 upstream fff5a5e7f528 f94b4a29 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root INFO: task hung in hfs_mdb_commit
2023/01/12 13:19 upstream e8f60cd7db24 96166539 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/05/15 01:22 linux-next e922ba281a8d 2b9ba477 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root INFO: task hung in hfs_mdb_commit
2023/12/30 15:17 upstream f016f7547aee fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in hfs_mdb_commit
2023/12/23 17:16 upstream 5254c0cbc92d fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/12/06 07:46 upstream bee0e7762ad2 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/11/24 11:35 upstream f1a09972a45a 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/08/06 21:31 upstream f0ab9f34e59e 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/07/06 19:26 upstream c17414a273b8 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/06/28 21:12 upstream e8f75c0270d9 8064cb02 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in hfs_mdb_commit
2023/05/22 19:30 upstream 44c026a73be8 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/05/12 18:51 upstream cc3c44c9fda2 ecca8a24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/04/27 18:37 upstream 6e98b09da931 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/04/26 15:55 upstream 0cfd8703e7da 8d843721 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/02/02 19:25 upstream 9f266ccaa2f5 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/02/02 12:58 upstream 9f266ccaa2f5 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in hfs_mdb_commit
2023/01/25 07:15 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2023/01/12 10:34 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2022/12/12 13:24 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in hfs_mdb_commit
2024/01/29 10:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in hfs_mdb_commit
2023/11/16 09:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in hfs_mdb_commit
2023/08/18 20:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c014c37159a1 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in hfs_mdb_commit
* Struck through repros no longer work on HEAD.