================================================================== BUG: KASAN: use-after-free in copy_page_from_iter_atomic+0x9e6/0x12e0 lib/iov_iter.c:822 Read of size 4096 at addr ffff88801778a000 by task kworker/u4:12/4503 CPU: 0 PID: 4503 Comm: kworker/u4:12 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: loop3 loop_workfn Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x235/0x290 mm/kasan/generic.c:189 memcpy+0x25/0x60 mm/kasan/shadow.c:65 copy_page_from_iter_atomic+0x9e6/0x12e0 lib/iov_iter.c:822 generic_perform_write+0x34f/0x5c0 mm/filemap.c:3870 __generic_file_write_iter+0x148/0x2a0 mm/filemap.c:3960 generic_file_write_iter+0xab/0x2e0 mm/filemap.c:3989 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x638/0xb10 fs/read_write.c:861 lo_write_bvec drivers/block/loop.c:244 [inline] lo_write_simple drivers/block/loop.c:266 [inline] do_req_filebacked drivers/block/loop.c:490 [inline] loop_handle_cmd drivers/block/loop.c:1907 [inline] loop_process_work+0x1005/0x1eb0 drivers/block/loop.c:1942 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the physical page: page:ffffea00005de280 refcount:1 mapcount:-512 mapping:0000000000000000 index:0x0 pfn:0x1778a memcg:ffff88802e3ca982 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 ffff88801efaea80 00000001fffffdff ffff88802e3ca982 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x500dc0(GFP_USER|__GFP_ZERO|__GFP_ACCOUNT), pid 5579, tgid 5579 (syz.4.250), ts 159777342425, free_ts 159706301898 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 __pte_alloc_one include/asm-generic/pgalloc.h:63 [inline] pte_alloc_one+0x7b/0x310 arch/x86/mm/pgtable.c:33 do_fault_around mm/memory.c:4593 [inline] do_read_fault mm/memory.c:4624 [inline] do_fault mm/memory.c:4758 [inline] handle_pte_fault mm/memory.c:5029 [inline] __handle_mm_fault mm/memory.c:5171 [inline] handle_mm_fault+0x257d/0x3d40 mm/memory.c:5292 do_user_addr_fault+0x58e/0xb20 arch/x86/mm/fault.c:1338 handle_page_fault arch/x86/mm/fault.c:1429 [inline] exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1482 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:608 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 lbmLogShutdown fs/jfs/jfs_logmgr.c:1864 [inline] lmLogShutdown+0x44b/0x850 fs/jfs/jfs_logmgr.c:1684 lmLogClose+0x288/0x530 fs/jfs/jfs_logmgr.c:1460 jfs_umount+0x288/0x360 fs/jfs/jfs_umount.c:116 jfs_put_super+0x88/0x190 fs/jfs/super.c:194 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7c/0xe0 fs/super.c:1481 deactivate_locked_super+0x93/0xf0 fs/super.c:332 cleanup_mnt+0x471/0x4f0 fs/namespace.c:1191 task_work_run+0x1d0/0x260 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff888017789f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888017789f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801778a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88801778a080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801778a100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================