do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================== 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+0x254/0x1b7c fs/xfs/xfs_log_cil.c:1264 Write of size 72 at addr 0000000000000000 by task syz.4.263/5501 CPU: 1 PID: 5501 Comm: syz.4.263 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 __kasan_report mm/kasan/report.c:438 [inline] kasan_report+0xe0/0x15c mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x270/0x2b0 mm/kasan/generic.c:189 memset+0x58/0x88 mm/kasan/shadow.c:44 xlog_cil_alloc_shadow_bufs fs/xfs/xfs_log_cil.c:225 [inline] xlog_cil_commit+0x254/0x1b7c fs/xfs/xfs_log_cil.c:1264 __xfs_trans_commit+0x628/0xcd4 fs/xfs/xfs_trans.c:881 xfs_trans_roll+0x1c4/0x55c fs/xfs/xfs_trans.c:1009 xfs_defer_trans_roll+0x4a8/0xa88 fs/xfs/libxfs/xfs_defer.c:297 xfs_defer_finish_noroll+0x3a4/0x1d58 fs/xfs/libxfs/xfs_defer.c:483 xfs_defer_finish+0x24/0x184 fs/xfs/libxfs/xfs_defer.c:521 xfs_attr_trans_roll+0xa8/0xf8 fs/xfs/libxfs/xfs_attr.c:264 xfs_attr_remove_args+0xac/0x110 fs/xfs/libxfs/xfs_attr.c:688 xfs_attr_set+0x9fc/0x1034 fs/xfs/libxfs/xfs_attr.c:802 xfs_xattr_set+0xe8/0x1c4 fs/xfs/xfs_xattr.c:59 __vfs_removexattr+0x370/0x38c fs/xattr.c:470 __vfs_removexattr_locked+0x1d0/0x208 fs/xattr.c:505 vfs_removexattr+0x80/0x190 fs/xattr.c:527 removexattr fs/xattr.c:857 [inline] path_removexattr+0x188/0x31c fs/xattr.c:871 __do_sys_removexattr fs/xattr.c:885 [inline] __se_sys_removexattr fs/xattr.c:882 [inline] __arm64_sys_removexattr+0x60/0x78 fs/xattr.c:882 __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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================== Unable to handle kernel paging request at virtual address dfff800000000003 Mem abort info: ESR = 0x0000000096000006 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x06: level 2 translation fault Data abort info: ISV = 0, ISS = 0x00000006 CM = 0, WnR = 0 [dfff800000000003] address between user and kernel address ranges Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5501 Comm: syz.4.263 Tainted: G B 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : xlog_cil_alloc_shadow_bufs fs/xfs/xfs_log_cil.c:227 [inline] pc : xlog_cil_commit+0x25c/0x1b7c fs/xfs/xfs_log_cil.c:1264 lr : xlog_cil_alloc_shadow_bufs fs/xfs/xfs_log_cil.c:225 [inline] lr : xlog_cil_commit+0x254/0x1b7c fs/xfs/xfs_log_cil.c:1264 sp : ffff80001fa17020 x29: ffff80001fa17120 x28: 0000000000000080 x27: 0000000000000001 x26: 0000000000000000 x25: ffff0000e7b00d20 x24: ffff0000e7b00cb0 x23: ffff80001fa170c0 x22: 1fffe0001cf601a4 x21: 0000000000000001 x20: ffff0000e7b00ca0 x19: dfff800000000000 x18: 1fffe0003685b38e x17: 1fffe0003685b38e x16: ffff8000082d52a4 x15: ffff8000141eec20 x14: ffff0001b42d9c80 x13: ffff0001b42d9c7c x12: 0000000000ff0100 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : 0000000000000003 x7 : 0000000000000000 x6 : ffff800008244878 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008184d28 x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000018 Call trace: xlog_cil_alloc_shadow_bufs fs/xfs/xfs_log_cil.c:227 [inline] xlog_cil_commit+0x25c/0x1b7c fs/xfs/xfs_log_cil.c:1264 __xfs_trans_commit+0x628/0xcd4 fs/xfs/xfs_trans.c:881 xfs_trans_roll+0x1c4/0x55c fs/xfs/xfs_trans.c:1009 xfs_defer_trans_roll+0x4a8/0xa88 fs/xfs/libxfs/xfs_defer.c:297 xfs_defer_finish_noroll+0x3a4/0x1d58 fs/xfs/libxfs/xfs_defer.c:483 xfs_defer_finish+0x24/0x184 fs/xfs/libxfs/xfs_defer.c:521 xfs_attr_trans_roll+0xa8/0xf8 fs/xfs/libxfs/xfs_attr.c:264 xfs_attr_remove_args+0xac/0x110 fs/xfs/libxfs/xfs_attr.c:688 xfs_attr_set+0x9fc/0x1034 fs/xfs/libxfs/xfs_attr.c:802 xfs_xattr_set+0xe8/0x1c4 fs/xfs/xfs_xattr.c:59 __vfs_removexattr+0x370/0x38c fs/xattr.c:470 __vfs_removexattr_locked+0x1d0/0x208 fs/xattr.c:505 vfs_removexattr+0x80/0x190 fs/xattr.c:527 removexattr fs/xattr.c:857 [inline] path_removexattr+0x188/0x31c fs/xattr.c:871 __do_sys_removexattr fs/xattr.c:885 [inline] __se_sys_removexattr fs/xattr.c:882 [inline] __arm64_sys_removexattr+0x60/0x78 fs/xattr.c:882 __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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: 93407d02 97b8824f 91006340 d343fc08 (38736908) ---[ end trace d53e32cc40cef201 ]--- ---------------- Code disassembly (best guess): 0: 93407d02 sxtw x2, w8 4: 97b8824f bl 0xfffffffffee20940 8: 91006340 add x0, x26, #0x18 c: d343fc08 lsr x8, x0, #3 * 10: 38736908 ldrb w8, [x8, x19] <-- trapping instruction