================================================================== BUG: KASAN: use-after-free in memcpy_from_page lib/iov_iter.c:472 [inline] BUG: KASAN: use-after-free in iov_iter_copy_from_user_atomic+0x6a2/0xdb0 lib/iov_iter.c:1005 Read of size 4096 at addr ffff888020e37000 by task loop0/11600 CPU: 1 PID: 11600 Comm: loop0 Not tainted 5.10.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x137/0x1be lib/dump_stack.c:118 print_address_description+0x6c/0x660 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report+0x136/0x1e0 mm/kasan/report.c:562 check_memory_region_inline mm/kasan/generic.c:183 [inline] check_memory_region+0x2b5/0x2f0 mm/kasan/generic.c:192 memcpy+0x25/0x60 mm/kasan/common.c:105 memcpy_from_page lib/iov_iter.c:472 [inline] iov_iter_copy_from_user_atomic+0x6a2/0xdb0 lib/iov_iter.c:1005 generic_perform_write+0x2ba/0x4e0 mm/filemap.c:3337 __generic_file_write_iter+0x222/0x4d0 mm/filemap.c:3458 generic_file_write_iter+0xa7/0x1b0 mm/filemap.c:3490 do_iter_readv_writev+0x48c/0x650 include/linux/fs.h:1897 do_iter_write+0x162/0x5f0 fs/read_write.c:866 lo_write_bvec+0x274/0x660 drivers/block/loop.c:288 lo_write_simple drivers/block/loop.c:310 [inline] do_req_filebacked drivers/block/loop.c:633 [inline] loop_handle_cmd drivers/block/loop.c:2049 [inline] loop_queue_work+0x1e75/0x23c0 drivers/block/loop.c:2067 kthread_worker_fn+0x42a/0x6f0 kernel/kthread.c:708 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 The buggy address belongs to the page: page:0000000010fb8497 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x20e37 flags: 0xfff00000000000() raw: 00fff00000000000 ffffea00008e0908 ffffea00008db6c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888020e36f00: fc fc fc fc 00 00 00 00 00 00 00 fc fc fc fc 00 ffff888020e36f80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc >ffff888020e37000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888020e37080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888020e37100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================