------------[ cut here ]------------ kernel BUG at fs/reiserfs/journal.c:505! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5193 Comm: syz.0.296 Not tainted 5.15.164-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : reiserfs_in_journal+0x94c/0x950 fs/reiserfs/journal.c:505 lr : reiserfs_in_journal+0x94c/0x950 fs/reiserfs/journal.c:505 sp : ffff80001d086b00 x29: ffff80001d086b20 x28: ffff80001d4f9000 x27: 0000000000000000 x26: dfff800000000000 x25: ffff80001d519318 x24: ffff0000c76fd4e0 x23: ffff80001af18048 x22: ffff80001af18050 x21: 0000000000000213 x20: ffff0000d6a0c678 x19: ffff0000d6a0c000 x18: 0000000000000000 x17: 0000000000000002 x16: ffff8000082ea3f4 x15: 0000000000000002 x14: ffff0000d759d1c0 x13: 0000000000ff0100 x12: 0000000000040000 x11: 0000000000008533 x10: ffff800022d0a000 x9 : 0000000000008534 x8 : ffff800008cf2184 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : ffff80001d086c40 x3 : 0000000000000001 x2 : 0000000000000213 x1 : 0000000000000213 x0 : 0000000000000213 Call trace: reiserfs_in_journal+0x94c/0x950 fs/reiserfs/journal.c:505 is_block_in_journal fs/reiserfs/bitmap.c:125 [inline] scan_bitmap_block+0x3bc/0xdb0 fs/reiserfs/bitmap.c:203 scan_bitmap fs/reiserfs/bitmap.c:408 [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+0x21a8/0x4264 fs/reiserfs/bitmap.c:1375 reiserfs_get_block+0x2580/0x3fd0 fs/reiserfs/inode.c:764 __block_write_begin_int+0x3ec/0x1608 fs/buffer.c:2012 __block_write_begin+0x40/0x54 fs/buffer.c:2062 reiserfs_write_begin+0x3c8/0x654 fs/reiserfs/inode.c:2790 pagecache_write_begin+0xa0/0xc0 mm/filemap.c:3608 generic_cont_expand_simple+0x12c/0x208 fs/buffer.c:2362 reiserfs_setattr+0x37c/0xd94 fs/reiserfs/inode.c:3319 notify_change+0xa34/0xcf8 fs/attr.c:505 do_truncate+0x1c0/0x28c fs/open.c:65 do_sys_ftruncate+0x288/0x31c fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: aa1603e0 97ef8d80 17ffff9d 97df4553 (d4210000) ---[ end trace b3b0e15de9592ec7 ]---