================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:96 [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_pick_ag fs/xfs/xfs_filestream.c:156 [inline] BUG: KASAN: null-ptr-deref in xfs_filestream_create_association fs/xfs/xfs_filestream.c:301 [inline] BUG: KASAN: null-ptr-deref in xfs_filestream_select_ag+0x14e5/0x1ca0 fs/xfs/xfs_filestream.c:372 Write of size 4 at addr 00000000000001c0 by task syz-executor.4/14678 CPU: 1 PID: 14678 Comm: syz-executor.4 Not tainted 6.4.0-rc1-syzkaller-00109-gcc3c44c9fda2 #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+0x1e7/0x2d0 lib/dump_stack.c:106 print_report+0xe6/0x540 mm/kasan/report.c:465 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 kasan_check_range+0x283/0x290 mm/kasan/generic.c:187 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_inc include/linux/atomic/atomic-instrumented.h:190 [inline] xfs_filestream_pick_ag fs/xfs/xfs_filestream.c:156 [inline] xfs_filestream_create_association fs/xfs/xfs_filestream.c:301 [inline] xfs_filestream_select_ag+0x14e5/0x1ca0 fs/xfs/xfs_filestream.c:372 xfs_bmap_btalloc_filestreams fs/xfs/libxfs/xfs_bmap.c:3593 [inline] xfs_bmap_btalloc+0xffa/0x28a0 fs/xfs/libxfs/xfs_bmap.c:3707 xfs_bmapi_allocate+0x647/0xf30 xfs_bmapi_write+0xa1d/0x1980 fs/xfs/libxfs/xfs_bmap.c:4433 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:0x7f605d68c169 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:00007f605e32d168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f605d7abf80 RCX: 00007f605d68c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f605d6e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000ff7fff R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcf4e1ed7f R14: 00007f605e32d300 R15: 0000000000022000 ==================================================================