R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 00007ffeca45da5a R14: 0000000000000003 R15: 00007fc8a4e7f790 ================================================================== 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/0x2670 fs/xfs/xfs_log_cil.c:1264 Write of size 88 at addr 0000000000000000 by task syz-executor851/3584 CPU: 1 PID: 3584 Comm: syz-executor851 Not tainted 5.15.103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb 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/0x2670 fs/xfs/xfs_log_cil.c:1264 __xfs_trans_commit+0x875/0xe80 fs/xfs/xfs_trans.c:881 xfs_fileattr_set+0x1184/0x18c0 fs/xfs/xfs_ioctl.c:1478 vfs_fileattr_set+0x8f3/0xd30 fs/ioctl.c:700 ioctl_fssetxattr fs/ioctl.c:762 [inline] do_vfs_ioctl+0x1736/0x2b70 fs/ioctl.c:849 __do_sys_ioctl fs/ioctl.c:872 [inline] __se_sys_ioctl+0x81/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc8a4e06879 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 18 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffeca45da28 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fc8a4e06879 RDX: 0000000020000000 RSI: 00000000401c5820 RDI: 0000000000000004 RBP: 00007ffeca45da70 R08: 0000000000000001 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 00007ffeca45da5a R14: 0000000000000003 R15: 00007fc8a4e7f790 ==================================================================