syzbot


INFO: task hung in reiserfs_lookup

Status: auto-obsoleted due to no activity on 2023/10/18 16:15
Subsystems: reiserfs
[Documentation on labels]
First crash: 518d, last: 460d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in reiserfs_lookup (2) reiserfs 1 300d 300d 0/28 auto-obsoleted due to no activity on 2024/03/26 00:48
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.0:22361 blocked for more than 143 seconds.
      Not tainted 6.4.0-rc3-syzkaller-00004-g421ca22e3138 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27400 pid:22361 ppid:5027   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 __mutex_lock_common+0xe33/0x2530 kernel/locking/mutex.c:679
 __mutex_lock kernel/locking/mutex.c:747 [inline]
 mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799
 reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
 reiserfs_lookup+0x162/0x580 fs/reiserfs/namei.c:364
 lookup_open fs/namei.c:3470 [inline]
 open_last_lookups fs/namei.c:3560 [inline]
 path_openat+0x11e9/0x3170 fs/namei.c:3788
 do_filp_open+0x234/0x490 fs/namei.c:3818
 do_sys_openat2+0x13f/0x500 fs/open.c:1356
 do_sys_open fs/open.c:1372 [inline]
 __do_sys_open fs/open.c:1380 [inline]
 __se_sys_open fs/open.c:1376 [inline]
 __x64_sys_open+0x225/0x270 fs/open.c:1376
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3f28a8c169
RSP: 002b:00007f3f297f3168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f3f28bac050 RCX: 00007f3f28a8c169
RDX: 0000000000000000 RSI: 0000000000060142 RDI: 0000000020000000
RBP: 00007f3f28ae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe828fdb7f R14: 00007f3f297f3300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:22363 blocked for more than 144 seconds.
      Not tainted 6.4.0-rc3-syzkaller-00004-g421ca22e3138 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:28736 pid:22363 ppid:5027   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_read_slowpath+0x5f4/0x950 kernel/locking/rwsem.c:1086
 __down_read_common kernel/locking/rwsem.c:1250 [inline]
 __down_read kernel/locking/rwsem.c:1263 [inline]
 down_read+0x9c/0x2f0 kernel/locking/rwsem.c:1522
 inode_lock_shared include/linux/fs.h:785 [inline]
 lookup_slow+0x45/0x70 fs/namei.c:1706
 walk_component+0x2d0/0x400 fs/namei.c:1998
 lookup_last fs/namei.c:2455 [inline]
 path_lookupat+0x16f/0x450 fs/namei.c:2479
 filename_lookup+0x255/0x610 fs/namei.c:2508
 user_path_at_empty+0x44/0x180 fs/namei.c:2907
 user_path_at include/linux/namei.h:57 [inline]
 do_mount fs/namespace.c:3379 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x29a/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3f28a8c169
RSP: 002b:00007f3f297d2168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f3f28bac120 RCX: 00007f3f28a8c169
RDX: 00000000200002c0 RSI: 0000000020000280 RDI: 0000000020000240
RBP: 00007f3f28ae7ca1 R08: 0000000020000440 R09: 0000000000000000
R10: 0000000000008020 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe828fdb7f R14: 00007f3f297d2300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:22365 blocked for more than 145 seconds.
      Not tainted 6.4.0-rc3-syzkaller-00004-g421ca22e3138 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27960 pid:22365 ppid:5027   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 inode_lock include/linux/fs.h:775 [inline]
 open_last_lookups fs/namei.c:3557 [inline]
 path_openat+0x7ba/0x3170 fs/namei.c:3788
 do_filp_open+0x234/0x490 fs/namei.c:3818
 do_sys_openat2+0x13f/0x500 fs/open.c:1356
 do_sys_open fs/open.c:1372 [inline]
 __do_sys_open fs/open.c:1380 [inline]
 __se_sys_open fs/open.c:1376 [inline]
 __x64_sys_open+0x225/0x270 fs/open.c:1376
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3f28a8c169
RSP: 002b:00007f3f297b1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f3f28bac1f0 RCX: 00007f3f28a8c169
RDX: 0000000000000000 RSI: 0000000000143042 RDI: 00000000200000c0
RBP: 00007f3f28ae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe828fdb7f R14: 00007f3f297b1300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:22367 blocked for more than 146 seconds.
      Not tainted 6.4.0-rc3-syzkaller-00004-g421ca22e3138 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27960 pid:22367 ppid:5027   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 inode_lock include/linux/fs.h:775 [inline]
 open_last_lookups fs/namei.c:3557 [inline]
 path_openat+0x7ba/0x3170 fs/namei.c:3788
 do_filp_open+0x234/0x490 fs/namei.c:3818
 do_sys_openat2+0x13f/0x500 fs/open.c:1356
 do_sys_open fs/open.c:1372 [inline]
 __do_sys_open fs/open.c:1380 [inline]
 __se_sys_open fs/open.c:1376 [inline]
 __x64_sys_open+0x225/0x270 fs/open.c:1376
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3f28a8c169
RSP: 002b:00007f3f29790168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f3f28bac2c0 RCX: 00007f3f28a8c169
RDX: 0000000000000000 RSI: 0000000000147042 RDI: 0000000020000040
RBP: 00007f3f28ae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe828fdb7f R14: 00007f3f29790300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:22368 blocked for more than 147 seconds.
      Not tainted 6.4.0-rc3-syzkaller-00004-g421ca22e3138 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27944 pid:22368 ppid:5027   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 __mutex_lock_common+0xe33/0x2530 kernel/locking/mutex.c:679
 __mutex_lock kernel/locking/mutex.c:747 [inline]
 mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799
 reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
 reiserfs_sync_fs+0xa0/0x150 fs/reiserfs/super.c:76
 sync_filesystem+0xec/0x220 fs/sync.c:56
 reiserfs_remount+0x1e8/0x18f0 fs/reiserfs/super.c:1445
 reconfigure_super+0x3c9/0x7c0 fs/super.c:956
 do_remount fs/namespace.c:2701 [inline]
 path_mount+0xc19/0xf80 fs/namespace.c:3361
 do_mount fs/namespace.c:3382 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3f28a8d69a
RSP: 002b:00007f3f2976ef88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3f28a8d69a
RDX: 0000000020000180 RSI: 0000000020000100 RDI: 0000000000000000
RBP: 00007f3f2976f020 R08: 00007f3f2976f020 R09: 0000000001a404ac
R10: 0000000001a404ac R11: 0000000000000206 R12: 0000000020000180
R13: 0000000020000100 R14: 00007f3f2976efe0 R15: 0000000020000640
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
 #0: ffffffff8cf27670 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by rcu_tasks_trace/14:
 #0: ffffffff8cf27a30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by khungtaskd/28:
 #0: ffffffff8cf274a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4743:
 #0: ffff88802c6da098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176
1 lock held by syz-executor.5/5037:
 #0: ffffffff8cf2cb78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline]
 #0: ffffffff8cf2cb78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:992
2 locks held by kworker/1:8/5129:
 #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378
 #1: ffffc90004cdfd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380
3 locks held by syz-executor.1/17525:
4 locks held by syz-executor.0/22340:
3 locks held by syz-executor.0/22361:
 #0: ffff88807acf6460 (sb_writers#27){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394
 #1: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: open_last_lookups fs/namei.c:3557 [inline]
 #1: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3788
 #2: ffff88807d3a1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
1 lock held by syz-executor.0/22363:
 #0: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:785 [inline]
 #0: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1706
2 locks held by syz-executor.0/22365:
 #0: ffff88807acf6460 (sb_writers#27){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394
 #1: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: open_last_lookups fs/namei.c:3557 [inline]
 #1: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3788
2 locks held by syz-executor.0/22367:
 #0: ffff88807acf6460 (sb_writers#27){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394
 #1: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: open_last_lookups fs/namei.c:3557 [inline]
 #1: ffff888038bef380 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3788
2 locks held by syz-executor.0/22368:
 #0: 
ffff88807acf60e0 (&type->s_umount_key#95){++++}-{3:3}, at: do_remount fs/namespace.c:2698 [inline]
ffff88807acf60e0 (&type->s_umount_key#95){++++}-{3:3}, at: path_mount+0xbd2/0xf80 fs/namespace.c:3361
 #1: ffff88807d3a1090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
2 locks held by syz-executor.2/22354:
 #0: ffff888033c660e0 (&type->s_umount_key#95){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:361
 #1: ffffffff8cf2cb78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
 #1: ffffffff8cf2cb78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992
2 locks held by syz-executor.3/25075:
2 locks held by syz-executor.3/25103:
 #0: 
ffff8880b993c1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
 #1: ffff8880b99287c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:996
2 locks held by syz-executor.0/25100:
1 lock held by syz-executor.4/25078:
 #0: ffff8880212cbce0 (&iint->mutex){+.+.}-{3:3}, at: ima_check_last_writer security/integrity/ima/ima_main.c:165 [inline]
 #0: ffff8880212cbce0 (&iint->mutex){+.+.}-{3:3}, at: ima_file_free+0x110/0x3c0 security/integrity/ima/ima_main.c:199
3 locks held by syz-executor.4/25079:
3 locks held by syz-executor.4/25104:

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc3-syzkaller-00004-g421ca22e3138 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/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+0x187/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xec2/0xf00 kernel/hung_task.c:379
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 10 Comm: kworker/u4:0 Not tainted 6.4.0-rc3-syzkaller-00004-g421ca22e3138 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:check_preemption_disabled+0x6/0x110 lib/smp_processor_id.c:13
Code: 1f 44 00 00 f3 0f 1e fa 48 c7 c7 e0 42 38 8b 48 c7 c6 20 43 38 8b eb 0c 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 57 41 56 41 54 <53> 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 65 8b 1d
RSP: 0018:ffffc900000f7a48 EFLAGS: 00000046
RAX: 0000000080000201 RBX: ffffffff81547b96 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8aea8d40 RDI: ffffffff8b384340
RBP: ffffc900000f7b50 R08: dffffc0000000000 R09: ffffed100ff57231
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff9200001ef5c R14: ffffffff81547b96 R15: 0000000000000201
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa367802000 CR3: 0000000020f98000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lockdep_hardirqs_off+0xa8/0x100 kernel/locking/lockdep.c:4417
 trace_hardirqs_off+0x12/0x40 kernel/trace/trace_preemptirq.c:87
 __local_bh_enable_ip+0x106/0x1f0 kernel/softirq.c:378
 spin_unlock_bh include/linux/spinlock.h:395 [inline]
 batadv_nc_purge_paths+0x309/0x3a0 net/batman-adv/network-coding.c:471
 batadv_nc_worker+0x2d3/0x5c0 net/batman-adv/network-coding.c:720
 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/23 05:10 upstream 421ca22e3138 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in reiserfs_lookup
2023/07/20 16:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 7b630fdb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in reiserfs_lookup
2023/07/05 00:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 17a98177 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in reiserfs_lookup
2023/07/04 20:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 17a98177 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in reiserfs_lookup
* Struck through repros no longer work on HEAD.