syzbot


INFO: task hung in reiserfs_lookup (2)

Status: auto-obsoleted due to no activity on 2024/03/26 00:48
Subsystems: reiserfs
[Documentation on labels]
First crash: 300d, last: 300d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in reiserfs_lookup reiserfs 4 460d 518d 0/28 auto-obsoleted due to no activity on 2023/10/18 16:15
linux-5.15 INFO: task hung in reiserfs_lookup 2 74d 74d 0/3 upstream: reported on 2024/08/09 09:53

Sample crash report:
INFO: task syz-executor.2:13941 blocked for more than 143 seconds.
      Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:26576 pid:13941 tgid:13901 ppid:5104   flags:0x00004006
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_lookup+0x162/0x580 fs/reiserfs/namei.c:364
 lookup_open fs/namei.c:3455 [inline]
 open_last_lookups fs/namei.c:3546 [inline]
 path_openat+0x1010/0x3290 fs/namei.c:3776
 do_filp_open+0x234/0x490 fs/namei.c:3809
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1437
 do_sys_open fs/open.c:1452 [inline]
 __do_sys_openat fs/open.c:1468 [inline]
 __se_sys_openat fs/open.c:1463 [inline]
 __x64_sys_openat+0x247/0x290 fs/open.c:1463
 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:0x7f668cc7cce9
RSP: 002b:00007f668da610c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f668cd9c050 RCX: 00007f668cc7cce9
RDX: 000000000000275a RSI: 0000000020000000 RDI: ffffffffffffff9c
RBP: 00007f668ccc947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f668cd9c050 R15: 00007ffd16f06c58
 </TASK>

Showing all locks held in the system:
4 locks held by kworker/0:0/8:
 #0: ffff888012c71538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
 #0: ffff888012c71538 ((wq_completion)events_long){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
 #1: ffffc900000d7d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
 #1: ffffc900000d7d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
 #2: 
ffff88803aae40e0 (&type->s_umount_key
#25
){++++}-{3:3}, at: flush_old_commits+0xcb/0x2f0 fs/reiserfs/super.c:97
 #3: ffff888038d29090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
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
2 locks held by getty/4824:
 #0: ffff8880265ed0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002efe2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
4 locks held by kworker/1:3/4842:
 #0: 
ffff888012c71538
 (
(wq_completion)events_long
){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
 #1: ffffc90003767d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
 #1: ffffc90003767d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
 #2: ffff8880264220e0 (&type->s_umount_key#25
){++++}-{3:3}
, at: flush_old_commits+0xcb/0x2f0 fs/reiserfs/super.c:97
 #3: ffff88801aa4a090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
1 lock held by syz-fuzzer/7968:
2 locks held by kworker/0:4/5156:
 #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
 #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
 #1: ffffc90003ff7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
 #1: ffffc90003ff7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
3 locks held by syz-executor.2/13902:
3 locks held by syz-executor.2/13941:
 #0: ffff88803aae4418 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404
 #1: ffff88803b7bf380 (&type->i_mutex_dir_key#20){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
 #1: ffff88803b7bf380 (&type->i_mutex_dir_key#20){++++}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline]
 #1: ffff88803b7bf380 (&type->i_mutex_dir_key#20){++++}-{3:3}, at: path_openat+0x7bc/0x3290 fs/namei.c:3776
 #2: ffff888038d29090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
3 locks held by syz-executor.1/13942:
3 locks held by syz-executor.1/13962:
 #0: ffff888026422418 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404
 #1: ffff8880793796c0 (&type->i_mutex_dir_key#20){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
 #1: ffff8880793796c0 (&type->i_mutex_dir_key#20){++++}-{3:3}, at: open_last_lookups fs/namei.c:3543 [inline]
 #1: ffff8880793796c0 (&type->i_mutex_dir_key#20){++++}-{3:3}, at: path_openat+0x7bc/0x3290 fs/namei.c:3776
 #2: ffff88801aa4a090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
4 locks held by syz-executor.0/15236:
 #0: ffff888029a2e870 (&fc->uapi_mutex){+.+.}-{3:3}, at: __do_sys_fsconfig fs/fsopen.c:474 [inline]
 #0: ffff888029a2e870 (&fc->uapi_mutex){+.+.}-{3:3}, at: __se_sys_fsconfig+0x8e6/0xec0 fs/fsopen.c:349
 #1: ffff88807b63c0e0 (&type->s_umount_key#31){++++}-{3:3}, at: vfs_cmd_reconfigure fs/fsopen.c:266 [inline]
 #1: ffff88807b63c0e0 (&type->s_umount_key#31){++++}-{3:3}, at: vfs_fsconfig_locked fs/fsopen.c:296 [inline]
 #1: ffff88807b63c0e0 (&type->s_umount_key#31){++++}-{3:3}, at: __do_sys_fsconfig fs/fsopen.c:476 [inline]
 #1: ffff88807b63c0e0 (&type->s_umount_key#31){++++}-{3:3}, at: __se_sys_fsconfig+0xaab/0xec0 fs/fsopen.c:349
 #2: ffff88807c76eb98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_writepages_down_write fs/ext4/ext4.h:1779 [inline]
 #2: ffff88807c76eb98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: __ext4_remount fs/ext4/super.c:6725 [inline]
 #2: ffff88807c76eb98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_reconfigure+0x1a8b/0x3d00 fs/ext4/super.c:6764
 #3: 
ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline]
ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:996

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #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: 7968 Comm: syz-fuzzer Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:__alloc_pages+0x391/0x680 mm/page_alloc.c:4594
Code: 0d 00 00 00 00 66 43 c7 44 3e 11 00 00 43 c6 44 3e 13 00 65 48 8b 04 25 28 00 00 00 48 3b 84 24 c0 00 00 00 0f 85 0d 02 00 00 <4c> 89 e8 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 43 0f b6 04
RSP: 0000:ffffc900160b7840 EFLAGS: 00000246
RAX: 8e5f20c9e7e7e000 RBX: 0000000000000001 RCX: ffffffff81de2fea
RDX: 0000000000000000 RSI: ffffffff8bbde080 RDI: ffffffff8bbde040
RBP: ffffc900160b7950 R08: ffffffff8f00c0ef R09: 1ffffffff1e0181d
R10: dffffc0000000000 R11: fffffbfff1e0181e R12: 0000000000140dca
R13: ffffea000118de00 R14: dffffc0000000000 R15: 1ffff92002c16f0c
FS:  000000c023c42090(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c01cbf0000 CR3: 0000000079481000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 alloc_pages_mpol+0x3de/0x640 mm/mempolicy.c:2133
 vma_alloc_folio+0xf3/0x3f0 mm/mempolicy.c:2172
 do_anonymous_page mm/memory.c:4172 [inline]
 do_pte_missing mm/memory.c:3729 [inline]
 handle_pte_fault mm/memory.c:5039 [inline]
 __handle_mm_fault mm/memory.c:5180 [inline]
 handle_mm_fault+0x238a/0x6680 mm/memory.c:5345
 do_user_addr_fault arch/x86/mm/fault.c:1364 [inline]
 handle_page_fault arch/x86/mm/fault.c:1505 [inline]
 exc_page_fault+0x456/0x870 arch/x86/mm/fault.c:1561
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x46aa7c
Code: 4c 01 de 48 29 c3 c5 fe 6f 06 c5 fe 6f 4e 20 c5 fe 6f 56 40 c5 fe 6f 5e 60 48 01 c6 c5 fd 7f 07 c5 fd 7f 4f 20 c5 fd 7f 57 40 <c5> fd 7f 5f 60 48 01 c7 48 29 c3 77 cf 48 01 c3 48 01 fb c4 c1 7e
RSP: 002b:000000c0005c8ed8 EFLAGS: 00010202
RAX: 0000000000000080 RBX: 00000000000025cd RCX: 000000c000d1daed
RDX: 0000000000005500 RSI: 000000c000d1b520 RDI: 000000c01cbeffa0
RBP: 000000c0005c8f88 R08: 00007f4fb6213920 R09: 0000000000005500
R10: 000000c01cbed500 R11: 0000000000000020 R12: 0000000000000000
R13: 0000000000000002 R14: 000000c0003e09c0 R15: 000000c023c42000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/27 00:37 upstream fbafc3e621c3 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in reiserfs_lookup
* Struck through repros no longer work on HEAD.