==================================================================
BUG: KASAN: slab-out-of-bounds in copy_folio_from_iter_atomic+0x799/0x1a30
Read of size 8 at addr ffff888172a34948 by task syz.3.783/9278

CPU: 1 UID: 0 PID: 9278 Comm: syz.3.783 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 copy_folio_from_iter_atomic+0x799/0x1a30
 generic_perform_write+0x5c7/0x8f0
 f2fs_file_write_iter+0x1d05/0x2920
 do_iter_readv_writev+0x612/0x8c0
 vfs_writev+0x343/0x990
 __se_sys_pwritev2+0x177/0x2a0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f739479e159
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:00007f739558d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f7394a25fa0 RCX: 00007f739479e159
RDX: 0000000000000014 RSI: 0000200000000240 RDI: 0000000000000004
RBP: 00007f7394835024 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000007800 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7394a26038 R14: 00007f7394a25fa0 R15: 00007ffe926d5888
 </TASK>

Allocated by task 9278:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x36b/0x720
 iovec_from_user+0x87/0x250
 __import_iovec+0x15e/0x7e0
 import_iovec+0x73/0xa0
 vfs_writev+0x1cf/0x990
 __se_sys_pwritev2+0x177/0x2a0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888172a34800
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 8 bytes to the right of
 allocated 320-byte region [ffff888172a34800, ffff888172a34940)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x172a34
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff888100041c80 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff888100041c80 dead000000000100 dead000000000122
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5603, tgid 5603 (syz-executor), ts 50535127862
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2007/0x2080
 __alloc_frozen_pages_noprof+0x217/0x5a0
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 __kmalloc_noprof+0x47b/0x720
 fib6_info_alloc+0x30/0xf0
 ip6_route_info_create+0x149/0x890
 ip6_route_add+0x49/0x1b0
 addrconf_add_mroute+0x2d1/0x370
 inet6_addr_add+0x2b8/0xb50
 inet6_rtm_newaddr+0x9fc/0xe00
 rtnetlink_rcv_msg+0x802/0xc00
 netlink_rcv_skb+0x226/0x4a0
 netlink_unicast+0x7bd/0x940
page last free pid 15 tgid 15 ts 46372054645 stack trace:
 __free_frozen_pages+0xcfd/0xe10
 __folio_put+0x4b3/0x590
 __pskb_trim_head+0x527/0x8d0
 tcp_trim_head+0x128/0x650
 tcp_ack+0x1d0d/0x8050
 tcp_rcv_established+0x1527/0x2910
 tcp_v4_do_rcv+0x727/0x13b0
 tcp_v4_rcv+0x27d4/0x3170
 ip_protocol_deliver_rcu+0x21d/0x440
 ip_local_deliver_finish+0x3bb/0x6f0
 NF_HOOK+0x336/0x3c0
 ip_sublist_rcv_finish+0x1f0/0x240
 ip_sublist_rcv+0x767/0xa70
 ip_list_rcv+0x3ec/0x440
 __netif_receive_skb_list_core+0x804/0x830
 netif_receive_skb_list_internal+0x995/0xcf0

Memory state around the buggy address:
 ffff888172a34800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888172a34880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888172a34900: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
                                              ^
 ffff888172a34980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888172a34a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
