================================================================== 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+0x2c9/0x2020 fs/xfs/xfs_log_cil.c:1264 Write of size 104 at addr 0000000000000000 by task syz.4.772/6926 CPU: 1 PID: 6926 Comm: syz.4.772 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 __kasan_report mm/kasan/report.c:438 [inline] kasan_report+0xd5/0x130 mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 memset+0x1e/0x40 mm/kasan/shadow.c:44 xlog_cil_alloc_shadow_bufs fs/xfs/xfs_log_cil.c:225 [inline] xlog_cil_commit+0x2c9/0x2020 fs/xfs/xfs_log_cil.c:1264 __xfs_trans_commit+0x6b4/0xc60 fs/xfs/xfs_trans.c:881 xfs_iomap_write_unwritten+0x54d/0xa10 fs/xfs/xfs_iomap.c:580 xfs_dio_write_end_io+0x469/0x650 fs/xfs/xfs_file.c:497 iomap_dio_complete+0x152/0x6d0 fs/iomap/direct-io.c:87 xfs_file_dio_write_aligned+0x1d2/0x270 fs/xfs/xfs_file.c:569 xfs_file_dio_write fs/xfs/xfs_file.c:681 [inline] xfs_file_write_iter+0x4f9/0x610 fs/xfs/xfs_file.c:828 do_iter_readv_writev+0x47d/0x5f0 fs/read_write.c:-1 do_iter_write+0x1f8/0x7a0 fs/read_write.c:855 iter_file_splice_write+0x6be/0xcf0 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:956 splice_direct_to_actor+0x4e8/0xc00 fs/splice.c:902 do_splice_direct+0x1d4/0x2f0 fs/splice.c:1008 do_sendfile+0x524/0xe30 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1303 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f54884e60d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f548671d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f548876e090 RCX: 00007f54884e60d9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000007 RBP: 00007f548857d024 R08: 0000000000000000 R09: 0000000000000000 R10: 0010000800000009 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f548876e128 R14: 00007f548876e090 R15: 00007ffe54881308 ==================================================================