==================================================================
BUG: KASAN: use-after-free in memcpy include/linux/fortify-string.h:191 [inline]
BUG: KASAN: use-after-free in page_to_skb+0x5cf/0xb70 drivers/net/virtio_net.c:480
Read of size 12 at addr ffff88802b367800 by task systemd-udevd/8169
CPU: 1 PID: 8169 Comm: systemd-udevd Not tainted 5.12.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:79 [inline]
dump_stack+0x141/0x1d7 lib/dump_stack.c:120
print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:232
__kasan_report mm/kasan/report.c:399 [inline]
kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:416
check_region_inline mm/kasan/generic.c:180 [inline]
kasan_check_range+0x13d/0x180 mm/kasan/generic.c:186
memcpy+0x20/0x60 mm/kasan/shadow.c:65
memcpy include/linux/fortify-string.h:191 [inline]
page_to_skb+0x5cf/0xb70 drivers/net/virtio_net.c:480
receive_mergeable drivers/net/virtio_net.c:1009 [inline]
receive_buf+0x2b82/0x6220 drivers/net/virtio_net.c:1119
virtnet_receive drivers/net/virtio_net.c:1411 [inline]
virtnet_poll+0x568/0x10b0 drivers/net/virtio_net.c:1516
__napi_poll+0xaf/0x440 net/core/dev.c:6962
napi_poll net/core/dev.c:7029 [inline]
net_rx_action+0x801/0xb40 net/core/dev.c:7116
__do_softirq+0x29b/0x9f6 kernel/softirq.c:345
invoke_softirq kernel/softirq.c:221 [inline]
__irq_exit_rcu kernel/softirq.c:422 [inline]
irq_exit_rcu+0x134/0x200 kernel/softirq.c:434
common_interrupt+0xa4/0xd0 arch/x86/kernel/irq.c:240
asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:623
RIP: 0010:instrument_atomic_read include/linux/instrumented.h:71 [inline]
RIP: 0010:atomic_read include/asm-generic/atomic-instrumented.h:27 [inline]
RIP: 0010:lock_page_memcg+0x1c3/0x510 mm/memcontrol.c:2157
Code: 81 4c 89 ff e8 de c7 9b ff 4d 85 ed 0f 85 42 01 00 00 9c 58 f6 c4 02 0f 85 c9 01 00 00 4d 85 ed 74 01 fb 4c 8d ab 00 0c 00 00 04 00 00 00 4c 89 ef e8 f0 3a fa ff 4c 89 e8 48 c1 e8 03 42 0f
RSP: 0018:ffffc90000eef670 EFLAGS: 00000206
RAX: 0000000000000006 RBX: ffff88814073a000 RCX: 1ffffffff1f5b70a
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000eef6d0 R08: 0000000000000001 R09: ffffffff8fad48b7
R10: 0000000000000001 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff88814073ac00 R14: fffff94000083bdf R15: ffff88814073a688
page_remove_rmap+0x25/0x1430 mm/rmap.c:1348
zap_pte_range mm/memory.c:1270 [inline]
zap_pmd_range mm/memory.c:1374 [inline]
zap_pud_range mm/memory.c:1403 [inline]
zap_p4d_range mm/memory.c:1424 [inline]
unmap_page_range+0xe30/0x2650 mm/memory.c:1445
unmap_single_vma+0x198/0x300 mm/memory.c:1490
unmap_vmas+0x16d/0x2f0 mm/memory.c:1522
exit_mmap+0x2a8/0x590 mm/mmap.c:3218
__mmput+0x122/0x470 kernel/fork.c:1092
mmput+0x58/0x60 kernel/fork.c:1113
exec_mmap fs/exec.c:1031 [inline]
begin_new_exec+0xea7/0x2c40 fs/exec.c:1287
load_elf_binary+0x159d/0x4b40 fs/binfmt_elf.c:1001
search_binary_handler fs/exec.c:1720 [inline]
exec_binprm fs/exec.c:1761 [inline]
bprm_execve fs/exec.c:1830 [inline]
bprm_execve+0x821/0x19a0 fs/exec.c:1792
do_execveat_common+0x626/0x7c0 fs/exec.c:1919
do_execve fs/exec.c:1987 [inline]
__do_sys_execve fs/exec.c:2063 [inline]
__se_sys_execve fs/exec.c:2058 [inline]
__x64_sys_execve+0x8f/0xc0 fs/exec.c:2058
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5922917647
Code: Unable to access opcode bytes at RIP 0x7f592291761d.
RSP: 002b:00007ffc428c7688 EFLAGS: 00000207 ORIG_RAX: 000000000000003b
RAX: ffffffffffffffda RBX: 00007ffc428c7bd0 RCX: 00007f5922917647
RDX: 000055d1048c48d0 RSI: 00007ffc428c7bd0 RDI: 00007ffc428c7fd0
RBP: 000000000000000f R08: 000000000000fec4 R09: 0000000000000070
R10: 0000000000000008 R11: 0000000000000207 R12: 00007ffc428c7750
R13: 0000000000000012 R14: 000055d1048c48d0 R15: 00007ffc428c91a0
The buggy address belongs to the page:
page:ffffea0000acd9c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2b367
flags: 0xfff00000000000()
raw: 00fff00000000000 0000000000000000 ffffea0000acd9c8 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88802b367700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88802b367780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88802b367800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff88802b367880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88802b367900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================