R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc3f7d64bf R14: 00007facef17e300 R15: 0000000000022000 ================================================================== 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 88 at addr 0000000000000000 by task syz-executor.0/3971 CPU: 0 PID: 3971 Comm: syz-executor.0 Not tainted 5.15.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/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/0x24b0 fs/xfs/xfs_log_cil.c:1264 __xfs_trans_commit+0x7e8/0xdd0 fs/xfs/xfs_trans.c:881 xfs_trans_roll+0x13f/0x4b0 fs/xfs/xfs_trans.c:1009 xfs_defer_trans_roll+0x46f/0x990 fs/xfs/libxfs/xfs_defer.c:297 xfs_defer_finish+0xbe/0x170 fs/xfs/libxfs/xfs_defer.c:525 xfs_dquot_disk_alloc+0x814/0xb80 fs/xfs/xfs_dquot.c:376 xfs_qm_dqread_alloc fs/xfs/xfs_dquot.c:647 [inline] xfs_qm_dqread+0x244/0x770 fs/xfs/xfs_dquot.c:692 xfs_qm_dqget+0x26f/0x4e0 fs/xfs/xfs_dquot.c:897 xfs_qm_vop_dqalloc+0x5a9/0xee0 fs/xfs/xfs_qm.c:1683 xfs_setattr_nonsize+0x2e9/0xc40 fs/xfs/xfs_iops.c:709 xfs_vn_setattr+0x2f7/0x340 fs/xfs/xfs_iops.c:1050 notify_change+0xd4d/0x1000 fs/attr.c:488 chown_common+0x592/0x890 fs/open.c:680 vfs_fchown fs/open.c:748 [inline] ksys_fchown+0xde/0x150 fs/open.c:759 __do_sys_fchown fs/open.c:767 [inline] __se_sys_fchown fs/open.c:765 [inline] __x64_sys_fchown+0x76/0x80 fs/open.c:765 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:0x7facefe0c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007facef17e168 EFLAGS: 00000246 ORIG_RAX: 000000000000005d RAX: ffffffffffffffda RBX: 00007faceff2bf80 RCX: 00007facefe0c169 RDX: 0000000000000000 RSI: 000000000000ee00 RDI: 0000000000000003 RBP: 00007facef17e1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc3f7d64bf R14: 00007facef17e300 R15: 0000000000022000 ==================================================================