================================================================== BUG: KASAN: null-ptr-deref in fuse_copy_do+0x183/0x320 fs/fuse/dev.c:809 Write of size 5 at addr 0000000000000000 by task syz.2.2332/13695 CPU: 0 UID: 0 PID: 13695 Comm: syz.2.2332 Not tainted 6.12.0-syzkaller-09734-g445d9f05fa14 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 kasan_report+0xd9/0x110 mm/kasan/report.c:602 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x1a0 mm/kasan/generic.c:189 __asan_memcpy+0x3c/0x60 mm/kasan/shadow.c:106 fuse_copy_do+0x183/0x320 fs/fuse/dev.c:809 fuse_copy_one fs/fuse/dev.c:1065 [inline] fuse_copy_args+0x1e6/0x770 fs/fuse/dev.c:1083 copy_out_args fs/fuse/dev.c:1966 [inline] fuse_dev_do_write+0x1cc1/0x3720 fs/fuse/dev.c:2052 fuse_dev_write+0x14f/0x1e0 fs/fuse/dev.c:2087 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:679 ksys_write+0x12b/0x250 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6af5b7f2bf Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 8d 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 8e 02 00 48 RSP: 002b:00007f6af6a64fd0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000020008380 RCX: 00007f6af5b7f2bf RDX: 0000000000000015 RSI: 0000000020000540 RDI: 0000000000000003 RBP: 0000000000000050 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000293 R12: 0000000000000003 R13: 0000000020000c40 R14: 00007f6af5d45fa0 R15: 00007ffd86eed978 ==================================================================