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+0x2f4/0x1fe4 fs/xfs/xfs_log_cil.c:1264
Write of size 88 at addr 0000000000000000 by task syz.3.1056/8084

CPU: 0 PID: 8084 Comm: syz.3.1056 Not tainted 5.15.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call trace:
 dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
 __kasan_report mm/kasan/report.c:438 [inline]
 kasan_report+0x168/0x1e4 mm/kasan/report.c:451
 kasan_check_range+0x274/0x2b4 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+0x2f4/0x1fe4 fs/xfs/xfs_log_cil.c:1264
 __xfs_trans_commit+0x740/0xe98 fs/xfs/xfs_trans.c:881
 xfs_trans_roll+0x1c4/0x5cc fs/xfs/xfs_trans.c:1009
 xfs_defer_trans_roll+0x4a4/0xb1c fs/xfs/libxfs/xfs_defer.c:297
 xfs_defer_finish_noroll+0x40c/0x1f34 fs/xfs/libxfs/xfs_defer.c:483
 __xfs_trans_commit+0x460/0xe98 fs/xfs/xfs_trans.c:852
 xfs_trans_commit+0x24/0x34 fs/xfs/xfs_trans.c:925
 xfs_bmapi_convert_delalloc+0xcac/0x1018 fs/xfs/libxfs/xfs_bmap.c:4663
 xfs_convert_blocks fs/xfs/xfs_aops.c:245 [inline]
 xfs_map_blocks+0x858/0x1318 fs/xfs/xfs_aops.c:366
 iomap_writepage_map fs/iomap/buffered-io.c:1320 [inline]
 iomap_do_writepage+0x538/0x1db8 fs/iomap/buffered-io.c:1485
 write_cache_pages+0x878/0xf58 mm/page-writeback.c:2277
 iomap_writepages+0x6c/0x1f4 fs/iomap/buffered-io.c:1516
 xfs_vm_writepages+0x124/0x180 fs/xfs/xfs_aops.c:488
 do_writepages+0x39c/0x5ec mm/page-writeback.c:2386
 filemap_fdatawrite_wbc+0x1c8/0x228 mm/filemap.c:400
 __filemap_fdatawrite_range mm/filemap.c:433 [inline]
 filemap_write_and_wait_range+0x16c/0x244 mm/filemap.c:704
 generic_remap_file_range_prep+0x814/0x9c8 fs/remap_range.c:332
 xfs_reflink_remap_prep+0x1fc/0x454 fs/xfs/xfs_reflink.c:1469
 xfs_file_remap_range+0x224/0x91c fs/xfs/xfs_file.c:1161
 vfs_copy_file_range+0xad4/0x1138 fs/read_write.c:1510
 __do_sys_copy_file_range fs/read_write.c:1588 [inline]
 __se_sys_copy_file_range fs/read_write.c:1551 [inline]
 __arm64_sys_copy_file_range+0x5f8/0x9d8 fs/read_write.c:1551
 __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+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/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: 8084 Comm: syz.3.1056 Tainted: G    B             5.15.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
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+0x304/0x1fe4 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+0x2f4/0x1fe4 fs/xfs/xfs_log_cil.c:1264
sp : ffff800020dd63e0
x29: ffff800020dd6500 x28: dfff800000000000 x27: 1ffff000041bac98
x26: 1fffe00019c2a1aa x25: 0000000000000000 x24: ffff0000ce150ce0
x23: 0000000000000268 x22: dfff800000000000 x21: ffff0000ce150d50
x20: 0000000000000002 x19: dfff800000000000 x18: 1fffe0003682eb8e
x17: 1fffe0003682eb8e x16: ffff800011b4db20 x15: ffff800014c0fac0
x14: ffff0001b4175c80 x13: ffff0001b4175c7c x12: ffff700002e3a364
x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
x8 : 0000000000000003 x7 : 0000000000000000 x6 : ffff80000826abdc
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff80000819c3ec
x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000018
Call trace:
 xlog_cil_alloc_shadow_bufs fs/xfs/xfs_log_cil.c:227 [inline]
 xlog_cil_commit+0x304/0x1fe4 fs/xfs/xfs_log_cil.c:1264
 __xfs_trans_commit+0x740/0xe98 fs/xfs/xfs_trans.c:881
 xfs_trans_roll+0x1c4/0x5cc fs/xfs/xfs_trans.c:1009
 xfs_defer_trans_roll+0x4a4/0xb1c fs/xfs/libxfs/xfs_defer.c:297
 xfs_defer_finish_noroll+0x40c/0x1f34 fs/xfs/libxfs/xfs_defer.c:483
 __xfs_trans_commit+0x460/0xe98 fs/xfs/xfs_trans.c:852
 xfs_trans_commit+0x24/0x34 fs/xfs/xfs_trans.c:925
 xfs_bmapi_convert_delalloc+0xcac/0x1018 fs/xfs/libxfs/xfs_bmap.c:4663
 xfs_convert_blocks fs/xfs/xfs_aops.c:245 [inline]
 xfs_map_blocks+0x858/0x1318 fs/xfs/xfs_aops.c:366
 iomap_writepage_map fs/iomap/buffered-io.c:1320 [inline]
 iomap_do_writepage+0x538/0x1db8 fs/iomap/buffered-io.c:1485
 write_cache_pages+0x878/0xf58 mm/page-writeback.c:2277
 iomap_writepages+0x6c/0x1f4 fs/iomap/buffered-io.c:1516
 xfs_vm_writepages+0x124/0x180 fs/xfs/xfs_aops.c:488
 do_writepages+0x39c/0x5ec mm/page-writeback.c:2386
 filemap_fdatawrite_wbc+0x1c8/0x228 mm/filemap.c:400
 __filemap_fdatawrite_range mm/filemap.c:433 [inline]
 filemap_write_and_wait_range+0x16c/0x244 mm/filemap.c:704
 generic_remap_file_range_prep+0x814/0x9c8 fs/remap_range.c:332
 xfs_reflink_remap_prep+0x1fc/0x454 fs/xfs/xfs_reflink.c:1469
 xfs_file_remap_range+0x224/0x91c fs/xfs/xfs_file.c:1161
 vfs_copy_file_range+0xad4/0x1138 fs/read_write.c:1510
 __do_sys_copy_file_range fs/read_write.c:1588 [inline]
 __se_sys_copy_file_range fs/read_write.c:1551 [inline]
 __arm64_sys_copy_file_range+0x5f8/0x9d8 fs/read_write.c:1551
 __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+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: 91006320 d2d00016 d343fc08 f2fbfff6 (38736908) 
---[ end trace f46891e839238754 ]---
----------------
Code disassembly (best guess):
   0:	91006320 	add	x0, x25, #0x18
   4:	d2d00016 	mov	x22, #0x800000000000        	// #140737488355328
   8:	d343fc08 	lsr	x8, x0, #3
   c:	f2fbfff6 	movk	x22, #0xdfff, lsl #48
* 10:	38736908 	ldrb	w8, [x8, x19] <-- trapping instruction