syzbot


INFO: task hung in reiserfs_get_block (2)

Status: auto-obsoleted due to no activity on 2024/03/07 17:37
Subsystems: reiserfs
[Documentation on labels]
First crash: 330d, last: 330d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in reiserfs_get_block reiserfs 6 493d 699d 0/28 auto-obsoleted due to no activity on 2023/09/27 03:57
linux-5.15 INFO: task hung in reiserfs_get_block 1 306d 306d 0/3 auto-obsoleted due to no activity on 2024/04/11 07:53

Sample crash report:
INFO: task syz-executor.0:17816 blocked for more than 143 seconds.
      Not tainted 6.7.0-rc4-syzkaller-00111-g5e3f5b81de80 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:23448 pid:17816 tgid:17816 ppid:5094   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_get_block+0x280/0x5130 fs/reiserfs/inode.c:680
 do_mpage_readpage+0x90c/0x1f60 fs/mpage.c:233
 mpage_readahead+0x44f/0x930 fs/mpage.c:381
 read_pages+0x183/0x830 mm/readahead.c:160
 page_cache_ra_unbounded+0x68e/0x7c0 mm/readahead.c:269
 do_sync_mmap_readahead+0x444/0x850
 filemap_fault+0x7c6/0x1670 mm/filemap.c:3233
 __do_fault+0x133/0x4e0 mm/memory.c:4265
 do_shared_fault mm/memory.c:4692 [inline]
 do_fault mm/memory.c:4766 [inline]
 do_pte_missing mm/memory.c:3730 [inline]
 handle_pte_fault mm/memory.c:5038 [inline]
 __handle_mm_fault mm/memory.c:5179 [inline]
 handle_mm_fault+0x21e9/0x6680 mm/memory.c:5344
 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline]
 handle_page_fault arch/x86/mm/fault.c:1505 [inline]
 exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1561
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x7fdc2fc5dc3c
RSP: 002b:00007ffd3824f398 EFLAGS: 00010206
RAX: 0000000020000100 RBX: 00007ffd3824f4a8 RCX: 00007fdc2f800000
RDX: 000000000000001c RSI: 00007fdc2f802dc0 RDI: 0000000020000100
RBP: 0000000000000048 R08: 00007fdc2fc00000 R09: 00007fdc2fd9c05c
R10: 0000001b31860000 R11: 0000000000000246 R12: 00007fdc2f802da0
R13: fffffffffffffffe R14: 00007fdc2f800000 R15: 00007fdc2f802da8
 </TASK>
INFO: task syz-executor.0:17853 blocked for more than 144 seconds.
      Not tainted 6.7.0-rc4-syzkaller-00111-g5e3f5b81de80 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:25040 pid:17853 tgid:17816 ppid:5094   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
 io_schedule+0x8c/0x100 kernel/sched/core.c:8998
 folio_wait_bit_common+0x881/0x12b0 mm/filemap.c:1273
 __filemap_get_folio+0xa3/0xbb0 mm/filemap.c:1864
 pagecache_get_page+0x2c/0x1f0 mm/folio-compat.c:99
 find_or_create_page include/linux/pagemap.h:740 [inline]
 grab_cache_page include/linux/pagemap.h:856 [inline]
 grab_tail_page fs/reiserfs/inode.c:2193 [inline]
 reiserfs_truncate_file+0x21b/0x820 fs/reiserfs/inode.c:2261
 reiserfs_vfs_truncate_file+0x2d/0x40 fs/reiserfs/file.c:133
 reiserfs_direct_IO+0x1e2/0x210 fs/reiserfs/inode.c:3251
 generic_file_direct_write+0x1e3/0x3f0 mm/filemap.c:3843
 __generic_file_write_iter+0x125/0x230 mm/filemap.c:3999
 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4039
 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:0x7fdc2fc7cba9
RSP: 002b:00007fdc30a3a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fdc2fd9c050 RCX: 00007fdc2fc7cba9
RDX: 0000000000000012 RSI: 00000000200001c0 RDI: 0000000000000005
RBP: 00007fdc2fcc847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fdc2fd9c050 R15: 00007ffd3824f2b8
 </TASK>

Showing all locks held in the system:
4 locks held by kworker/1:0/23:
 #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: ffffc900001d7d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
 #1: ffffc900001d7d20 ((work_completion)(&(&sbi->old_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
 #2: ffff88802007a0e0 (&type->s_umount_key#25){++++}-{3:3}, at: flush_old_commits+0xcb/0x2f0 fs/reiserfs/super.c:97
 #3: ffff888037316090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
2 locks held by kworker/1:1/27:
 #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: ffffc90000a2fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
 #1: ffffc90000a2fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
1 lock held by khungtaskd/29:
 #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
 #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
 #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by getty/4819:
 #0: ffff888017a960a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900015c72f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
1 lock held by syz-executor.4/5101:
 #0: ffffffff8d932a38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
 #0: ffffffff8d932a38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:996
2 locks held by syz-executor.0/17816:
 #0: ffff8880213a2c40 (mapping.invalidate_lock#11){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:857 [inline]
 #0: ffff8880213a2c40 (mapping.invalidate_lock#11){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:225
 #1: ffff888037316090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
5 locks held by syz-executor.0/17853:
 #0: ffff888019b6cd48 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2b0/0x340 fs/file.c:1177
 #1: ffff88802007a418 (sb_writers#28){.+.+}-{0:0}, at: vfs_write+0x223/0xb20 fs/read_write.c:580
 #2: ffff8880213a2aa0 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
 #2: ffff8880213a2aa0 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x310 mm/filemap.c:4036
 #3: ffff8880213a2878 (&ei->tailpack){+.+.}-{3:3}, at: reiserfs_vfs_truncate_file+0x20/0x40 fs/reiserfs/file.c:132
 #4: ffff888037316090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x7a/0xd0 fs/reiserfs/lock.c:27
1 lock held by syz-executor.0/21075:

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc4-syzkaller-00111-g5e3f5b81de80 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/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: 21075 Comm: syz-executor.0 Not tainted 6.7.0-rc4-syzkaller-00111-g5e3f5b81de80 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:filemap_get_entry+0xc3/0x4d0 mm/filemap.c:1800
Code: 28 00 48 c7 44 24 50 00 00 00 00 48 83 c3 08 4c 89 e0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 e7 e8 52 f4 28 00 48 89 5c 24 40 <49> 8d 7c 24 08 48 89 f8 48 c1 e8 03 42 80 3c 38 00 74 05 e8 35 f4
RSP: 0018:ffffc9000ad27800 EFLAGS: 00000246
RAX: 1ffff920015a4f08 RBX: ffff88807eca6620 RCX: 0000000000040000
RDX: ffffc90014161000 RSI: 000000000003ffff RDI: ffffc9000ad27850
RBP: ffffc9000ad278f0 R08: ffffffff81cae815 R09: 0000000000000000
R10: dffffc0000000000 R11: ffffed1002de2771 R12: ffffc9000ad27840
R13: 1ffff920015a4f04 R14: 00000000000003e5 R15: dffffc0000000000
FS:  00007f18283616c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f181edfe000 CR3: 000000007d3ca000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 shmem_get_folio_gfp+0x241/0x1ee0 mm/shmem.c:1964
 shmem_get_folio mm/shmem.c:2119 [inline]
 shmem_write_begin+0x170/0x4c0 mm/shmem.c:2702
 generic_perform_write+0x31b/0x630 mm/filemap.c:3918
 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2878
 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:0x7f182767b8ef
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48
RSP: 002b:00007f1828360e70 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007f182767b8ef
RDX: 0000000001000000 RSI: 00007f181ddff000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 00000000000051a5
R10: 0000000020005282 R11: 0000000000000293 R12: 0000000000000003
R13: 00007f1828360f3c R14: 00007f1828360f40 R15: 00007f181ddff000
 </TASK>

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