================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:102 [inline] BUG: KASAN: null-ptr-deref in atomic_inc include/linux/atomic/atomic-instrumented.h:190 [inline] BUG: KASAN: null-ptr-deref in xfs_filestream_create_association fs/xfs/xfs_filestream.c:321 [inline] BUG: KASAN: null-ptr-deref in xfs_filestream_select_ag+0x11d9/0x1ca0 fs/xfs/xfs_filestream.c:372 Write of size 4 at addr 0000000000000010 by task syz-executor.2/28531 CPU: 1 PID: 28531 Comm: syz-executor.2 Not tainted 6.3.0-rc4-syzkaller-00034-gfcd476ea6a88 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_report+0xe6/0x540 mm/kasan/report.c:433 kasan_report+0x176/0x1b0 mm/kasan/report.c:536 kasan_check_range+0x283/0x290 mm/kasan/generic.c:187 instrument_atomic_read_write include/linux/instrumented.h:102 [inline] atomic_inc include/linux/atomic/atomic-instrumented.h:190 [inline] xfs_filestream_create_association fs/xfs/xfs_filestream.c:321 [inline] xfs_filestream_select_ag+0x11d9/0x1ca0 fs/xfs/xfs_filestream.c:372 xfs_bmap_btalloc_filestreams fs/xfs/libxfs/xfs_bmap.c:3558 [inline] xfs_bmap_btalloc+0xffa/0x28a0 fs/xfs/libxfs/xfs_bmap.c:3672 xfs_bmapi_allocate+0x647/0xf30 xfs_bmapi_write+0xa1d/0x1980 fs/xfs/libxfs/xfs_bmap.c:4398 xfs_alloc_file_space+0x5bb/0xb60 fs/xfs/xfs_bmap_util.c:873 xfs_file_fallocate+0x9ae/0xd50 fs/xfs/xfs_file.c:1038 vfs_fallocate+0x54b/0x6b0 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xbd/0x100 fs/open.c:353 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff18528c0f9 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:00007ff185ff2168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007ff1853ac120 RCX: 00007ff18528c0f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007ff1852e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000ff8000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff33a1a04f R14: 00007ff185ff2300 R15: 0000000000022000 ==================================================================