================================================================== BUG: KASAN: use-after-free in fuse_copy_do+0x193/0x380 fs/fuse/dev.c:-1 Write of size 2 at addr ffff88806be05fff by task syz.3.21494/25249 CPU: 1 UID: 0 PID: 25249 Comm: syz.3.21494 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 fuse_copy_do+0x193/0x380 fs/fuse/dev.c:-1 fuse_copy_folio+0xefc/0x1b00 fs/fuse/dev.c:1166 fuse_notify_store fs/fuse/dev.c:1821 [inline] fuse_notify fs/fuse/dev.c:2109 [inline] fuse_dev_do_write+0x2b9d/0x4060 fs/fuse/dev.c:2205 fuse_dev_write+0x177/0x220 fs/fuse/dev.c:2289 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd8a939c799 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd8aa1d5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd8a9615fa0 RCX: 00007fd8a939c799 RDX: 000000000000002a RSI: 0000200000000080 RDI: 0000000000000003 RBP: 00007fd8a9432bd9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd8a9616038 R14: 00007fd8a9615fa0 R15: 00007fffcc1bbdf8 The buggy address belongs to the physical page: page: refcount:3 mapcount:0 mapping:ffff888049561720 index:0x7 pfn:0x6be05 memcg:ffff8880260f7d00 aops:empty_aops ino:1 dentry name(?):"/" flags: 0xfff00000000005(locked|referenced|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000005 0000000000000000 dead000000000122 ffff888049561720 raw: 0000000000000007 0000000000000000 00000003ffffffff ffff8880260f7d00 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 25249, tgid 25248 (syz.3.21494), ts 1114239551424, free_ts 1114101939630 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1892 prep_new_page mm/page_alloc.c:1900 [inline] get_page_from_freelist+0x23a1/0x2440 mm/page_alloc.c:3965 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5253 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2484 alloc_frozen_pages_noprof mm/mempolicy.c:2555 [inline] alloc_pages_noprof+0xa8/0x190 mm/mempolicy.c:2575 folio_alloc_noprof+0x1e/0x30 mm/mempolicy.c:2585 filemap_alloc_folio_noprof+0x111/0x470 mm/filemap.c:1013 __filemap_get_folio_mpol+0x3fc/0xb00 mm/filemap.c:2011 __filemap_get_folio include/linux/pagemap.h:774 [inline] filemap_grab_folio include/linux/pagemap.h:854 [inline] fuse_notify_store fs/fuse/dev.c:1813 [inline] fuse_notify fs/fuse/dev.c:2109 [inline] fuse_dev_do_write+0x298b/0x4060 fs/fuse/dev.c:2205 fuse_dev_write+0x177/0x220 fs/fuse/dev.c:2289 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 25231 tgid 25210 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1436 [inline] free_unref_folios+0xd71/0x1530 mm/page_alloc.c:3043 folios_put_refs+0x9ff/0xb40 mm/swap.c:1008 folio_batch_release include/linux/folio_batch.h:101 [inline] shmem_undo_range+0x52c/0x1660 mm/shmem.c:1149 shmem_truncate_range mm/shmem.c:1277 [inline] shmem_evict_inode+0x289/0xae0 mm/shmem.c:1407 evict+0x61e/0xb10 fs/inode.c:846 __dentry_kill+0x1a2/0x5e0 fs/dcache.c:670 finish_dput+0xc9/0x480 fs/dcache.c:879 __fput+0x691/0xa70 fs/file_table.c:477 task_work_run+0x1d9/0x270 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x926/0x2580 kernel/exit.c:974 do_group_exit+0x21b/0x2d0 kernel/exit.c:1116 get_signal+0x1284/0x1330 kernel/signal.c:3032 arch_do_signal_or_restart+0xbc/0x830 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x86/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:269 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x32d/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88806be05f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806be05f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806be06000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88806be06080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88806be06100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================