syzbot


INFO: task hung in flush_old_commits

Status: auto-obsoleted due to no activity on 2024/04/23 04:32
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+0a684c061589dcc30e51@syzkaller.appspotmail.com
First crash: 738d, last: 308d
Cause bisection: introduced by (bisect log) :
commit d82dcd9e21b77d338dc4875f3d4111f0db314a7c
Author: Roberto Sassu <roberto.sassu@huawei.com>
Date: Fri Mar 31 12:32:18 2023 +0000

  reiserfs: Add security prefix to xattr name in reiserfs_security_write()

Crash: INFO: task hung in flush_old_commits (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] INFO: task hung in flush_old_commits 8 (11) 2024/03/07 09:27
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in flush_old_commits origin:upstream C 50 2d04h 608d 0/3 upstream: reported C repro on 2023/04/04 05:08
linux-5.15 INFO: task hung in flush_old_commits origin:upstream C error 130 8d16h 622d 0/3 upstream: reported C repro on 2023/03/21 14:16
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/04/23 03:51 40m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/02/13 03:47 24m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/02/13 03:47 25m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/02/12 09:12 34m retest repro upstream OK log
2024/01/29 07:12 23m retest repro upstream OK log
2024/01/29 07:12 23m retest repro upstream OK log
2024/01/29 07:12 23m retest repro upstream OK log
2024/01/29 07:12 23m retest repro upstream OK log
2024/01/29 07:12 20m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/11/10 11:39 14m retest repro upstream report log

Sample crash report:
INFO: task kworker/1:2:55 blocked for more than 143 seconds.
      Not tainted 6.7.0-rc8-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:2     state:D
 stack:25336 pid:55    tgid:55    ppid:2      flags:0x00004000
Workqueue: events_long flush_old_commits
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5376 [inline]
 __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688
 __schedule_loop kernel/sched/core.c:6763 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6778
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x6a3/0xd60 kernel/locking/mutex.c:747
 reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
 reiserfs_sync_fs fs/reiserfs/super.c:76 [inline]
 flush_old_commits+0x1e3/0x2f0 fs/reiserfs/super.c:111
 process_one_work kernel/workqueue.c:2627 [inline]
 process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2700
 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2781
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
 #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
 #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
4 locks held by kworker/1:2/55:
 #0: ffff888012c71538 ((wq_completion)events_long
){+.+.}-{0:0}
, at: process_one_work kernel/workqueue.c:2602 [inline]
, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
 #1: ffffc90001357d20
 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}
, at: process_one_work kernel/workqueue.c:2602 [inline]
, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
 #2: ffff8880671400e0 (&type->s_umount_key#24){++++}-{3:3}, at: flush_old_commits+0xcb/0x2f0 fs/reiserfs/super.c:97
 #3: ffff888075bfb090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
2 locks held by getty/4819:
 #0: ffff8880262fc0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
5 locks held by syz-executor422/5063:

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x310 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xfaf/0xff0 kernel/hung_task.c:379
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5063 Comm: syz-executor422 Not tainted 6.7.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:number+0x580/0xf90 lib/vsprintf.c:521
Code: 0f b6 04 08 84 c0 75 24 41 c6 07 20 45 39 f5 0f 84 90 00 00 00 49 ff c7 e8 3d 3a 7d f6 48 ff c3 41 ff c6 4c 3b 7c 24 10 73 b1 <eb> be 89 d9 80 e1 07 38 c1 7c d3 48 89 df e8 3d 3f d9 f6 eb c9 e8
RSP: 0018:ffffc900042e62e0 EFLAGS: 00000297
RAX: ffffffff8b113fb3 RBX: ffffc900042e6742 RCX: ffff88807ca5bb80
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffffc900042e63f0 R08: ffffffff8b113f52 R09: 0000000000000000
R10: ffffc900042e6360 R11: fffff5200085cc6f R12: 0000000000000003
R13: 0000000000000001 R14: 0000000000000001 R15: ffffc900042e6742
FS:  000055555705c380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005576651c8680 CR3: 000000001c979000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 vsnprintf+0x1542/0x1da0 lib/vsprintf.c:2890
 sprintf+0xda/0x120 lib/vsprintf.c:3028
 print_time kernel/printk/printk.c:1324 [inline]
 info_print_prefix+0x16b/0x300 kernel/printk/printk.c:1350
 record_print_text kernel/printk/printk.c:1399 [inline]
 printk_get_next_message+0x408/0xce0 kernel/printk/printk.c:2828
 console_emit_next_record kernel/printk/printk.c:2868 [inline]
 console_flush_all+0x42a/0xeb0 kernel/printk/printk.c:2967
 console_unlock+0x13b/0x4d0 kernel/printk/printk.c:3036
 vprintk_emit+0x508/0x720 kernel/printk/printk.c:2303
 _printk+0xd5/0x120 kernel/printk/printk.c:2328
 __reiserfs_warning+0x153/0x1a0 fs/reiserfs/prints.c:290
 reiserfs_read_bitmap_block+0x236/0x6d0 fs/reiserfs/bitmap.c:1434
 scan_bitmap_block+0x1a1/0xff0 fs/reiserfs/bitmap.c:164
 scan_bitmap fs/reiserfs/bitmap.c:402 [inline]
 allocate_without_wrapping_disk fs/reiserfs/bitmap.c:1161 [inline]
 blocknrs_and_prealloc_arrays_from_search_start fs/reiserfs/bitmap.c:1274 [inline]
 reiserfs_allocate_blocknrs+0x2cf9/0x5070 fs/reiserfs/bitmap.c:1375
 reiserfs_get_block+0x3280/0x5130 fs/reiserfs/inode.c:756
 __block_write_begin_int+0x54d/0x1ad0 fs/buffer.c:2119
 reiserfs_write_begin+0x24d/0x520 fs/reiserfs/inode.c:2767
 generic_perform_write+0x31b/0x630 mm/filemap.c:3927
 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4048
 call_write_iter include/linux/fs.h:2020 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x792/0xb20 fs/read_write.c:584
 ksys_write+0x1a0/0x2c0 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fcd01114f59
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff6fb75ae8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fcd0115e082 RCX: 00007fcd01114f59
RDX: 00000000000000c1 RSI: 00000000200002c0 RDI: 0000000000000005
RBP: 00007fcd0118a5f0 R08: 0000000020000000 R09: 000055555705d4c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff6fb75b10
R13: 00007fff6fb75d38 R14: 431bde82d7b634db R15: 00007fcd0115e01d
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 2.801 msecs

Crashes (113):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/03 05:23 upstream 610a9b8f49fb fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root INFO: task hung in flush_old_commits
2023/11/14 06:46 upstream b85ea95d0864 cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root INFO: task hung in flush_old_commits
2023/10/10 11:18 upstream 94f6f0550c62 c9be5398 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root INFO: task hung in flush_old_commits
2023/10/05 16:31 upstream 3006adf3be79 b7d7ff54 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root INFO: task hung in flush_old_commits
2023/05/23 08:12 upstream 421ca22e3138 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/07/20 19:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 7b630fdb .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2023/06/20 21:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 177239177378 09ffe269 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2023/05/19 03:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f1fcbaa18b28 3bb7af1d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2024/01/05 17:29 upstream 1f874787ed9a 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2024/01/02 17:33 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2024/01/02 04:15 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2024/01/01 12:06 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/28 08:55 upstream f5837722ffec fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/28 06:26 upstream f5837722ffec fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/27 10:09 upstream fbafc3e621c3 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/27 07:55 upstream fbafc3e621c3 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/26 15:57 upstream fbafc3e621c3 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/25 19:27 upstream 861deac3b092 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/25 11:20 upstream 861deac3b092 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/25 04:08 upstream 861deac3b092 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/23 03:38 upstream 24e0d2e527a3 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/21 22:21 upstream 9a6b294ab496 4f9530a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/15 12:52 upstream 3f7168591ebf 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/14 02:38 upstream 5bd7ef53ffe5 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/09 23:02 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/09 18:56 upstream f2e8a57ee903 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/06 10:56 upstream bee0e7762ad2 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/06 05:02 upstream bee0e7762ad2 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/05 17:20 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/05 10:43 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/12/02 04:42 upstream 994d5c58e50e f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in flush_old_commits
2023/12/02 03:25 upstream 815fb87b7530 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/11/26 18:17 upstream 090472ed9c92 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/11/25 22:29 upstream b46ae77f6787 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/11/22 17:30 upstream c2d5304e6c64 03e12510 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/11/21 07:47 upstream 98b1cc82c4af cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/11/16 02:11 upstream c42d9eeef8e5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/11/14 01:02 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/10/27 09:02 upstream 3a568e3a961b bf285f0c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/10/25 17:37 upstream 4f82870119a4 72e794c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/10/07 02:53 upstream 7de25c855b63 ea12a918 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/10/05 05:27 upstream ba7d997a2a29 b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in flush_old_commits
2023/10/02 01:22 upstream e402b08634b3 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in flush_old_commits
2023/10/01 03:37 upstream 3b517966c561 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2023/04/28 01:22 upstream 6e98b09da931 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2022/11/25 09:06 upstream c3eb11fbb826 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in flush_old_commits
2024/01/15 02:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2024/01/07 08:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2024/01/06 16:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2024/01/05 02:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2023/12/11 16:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d46efae31672 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2023/08/14 12:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6f09e57d8cf6 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2023/07/23 20:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
2023/07/21 07:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in flush_old_commits
* Struck through repros no longer work on HEAD.