R13: 0000000000000000 R14: 00007fe7a2be8080 R15: 00007ffcf7791c18 ================================================================== BUG: KASAN: null-ptr-deref in xlog_cil_alloc_shadow_bufs fs/xfs/xfs_log_cil.c:225 [inline] BUG: KASAN: null-ptr-deref in xlog_cil_commit+0x383/0x24b0 fs/xfs/xfs_log_cil.c:1264 Write of size 104 at addr 0000000000000000 by task syz.3.47/4517 CPU: 0 PID: 4517 Comm: syz.3.47 Not tainted 5.15.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 __kasan_report mm/kasan/report.c:438 [inline] kasan_report+0x161/0x1c0 mm/kasan/report.c:451 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:189 memset+0x1f/0x40 mm/kasan/shadow.c:44 xlog_cil_alloc_shadow_bufs fs/xfs/xfs_log_cil.c:225 [inline] xlog_cil_commit+0x383/0x24b0 fs/xfs/xfs_log_cil.c:1264 __xfs_trans_commit+0x7e8/0xdd0 fs/xfs/xfs_trans.c:881 xfs_vn_update_time+0x3f7/0x590 fs/xfs/xfs_iops.c:1072 inode_update_time fs/inode.c:1868 [inline] file_update_time+0x3d1/0x460 fs/inode.c:2058 __xfs_filemap_fault+0x3a1/0x950 fs/xfs/xfs_file.c:1329 do_page_mkwrite+0x1a9/0x440 mm/memory.c:2920 wp_page_shared+0x179/0x690 mm/memory.c:3257 handle_pte_fault mm/memory.c:4666 [inline] __handle_mm_fault mm/memory.c:4783 [inline] handle_mm_fault+0x2a3d/0x5960 mm/memory.c:4881 faultin_page mm/gup.c:976 [inline] __get_user_pages+0x4ed/0x11d0 mm/gup.c:1197 faultin_vma_page_range+0x21f/0x2a0 mm/gup.c:1590 madvise_populate mm/madvise.c:856 [inline] madvise_vma mm/madvise.c:1004 [inline] do_madvise+0xbca/0x3470 mm/madvise.c:1207 __do_sys_madvise mm/madvise.c:1233 [inline] __se_sys_madvise mm/madvise.c:1231 [inline] __x64_sys_madvise+0xa1/0xb0 mm/madvise.c:1231 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fe7a29f7d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe7a0847038 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007fe7a2be8080 RCX: 00007fe7a29f7d29 RDX: 0000000000000017 RSI: 0000000000600000 RDI: 0000000020000000 RBP: 00007fe7a0847090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007fe7a2be8080 R15: 00007ffcf7791c18 ==================================================================