==================================================================
BUG: KASAN: slab-out-of-bounds in memcpy include/linux/fortify-string.h:191 [inline]
BUG: KASAN: slab-out-of-bounds in page_to_skb+0x5cf/0xb70 drivers/net/virtio_net.c:480
Read of size 12 at addr ffff888013697800 by task systemd-udevd/4838
CPU: 1 PID: 4838 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:__syscall_enter_from_user_work kernel/entry/common.c:86 [inline]
RIP: 0010:syscall_enter_from_user_mode+0x31/0x70 kernel/entry/common.c:107
Code: 89 fd 48 8b 7c 24 10 e8 fd f7 ff ff e9 2a 00 00 00 e9 2e 00 00 00 e8 be b0 70 f8 e8 f9 ae 70 f8 fb 65 48 8b 04 25 00 f0 01 00 <48> 8b 70 08 40 f6 c6 3f 75 1c 4c 89 e0 5d 41 5c c3 e9 1b 00 00 00
RSP: 0018:ffffc9000162ff30 EFLAGS: 00000206
RAX: ffff888015818000 RBX: 0000000000000000 RCX: 1ffffffff1b8baa1
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000162ff58 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff8179e5a8 R11: 0000000000000000 R12: 000000000000002e
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
do_syscall_64+0xf/0x70 arch/x86/entry/common.c:41
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3c899e2e67
Code: 89 02 48 c7 c0 ff ff ff ff eb d0 0f 1f 84 00 00 00 00 00 8b 05 6a b5 20 00 85 c0 75 2e 48 63 ff 48 63 d2 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 11 71 20 00 f7 d8 64 89 02 48
RSP: 002b:00007ffd81912868 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000561a57b61580 RCX: 00007f3c899e2e67
RDX: 0000000000000000 RSI: 00007ffd81912880 RDI: 0000000000000004
RBP: 00007ffd81912880 R08: 0000561a56ca8670 R09: 0000000000000060
R10: 0000000000000018 R11: 0000000000000246 R12: 0000561a5790e4f0
R13: 0000000000000094 R14: 0000561a5791d210 R15: 0000000000000000
Allocated by task 6349:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:427 [inline]
____kasan_kmalloc mm/kasan/common.c:506 [inline]
____kasan_kmalloc mm/kasan/common.c:465 [inline]
__kasan_kmalloc+0x99/0xc0 mm/kasan/common.c:515
kmalloc include/linux/slab.h:554 [inline]
kzalloc include/linux/slab.h:684 [inline]
uevent_show+0x15c/0x390 drivers/base/core.c:2266
dev_attr_show+0x4b/0x90 drivers/base/core.c:1973
sysfs_kf_seq_show+0x1f8/0x400 fs/sysfs/file.c:61
seq_read_iter+0x4d3/0x1220 fs/seq_file.c:227
kernfs_fop_read_iter+0x44f/0x5f0 fs/kernfs/file.c:241
call_read_iter include/linux/fs.h:1971 [inline]
new_sync_read+0x41e/0x6e0 fs/read_write.c:415
vfs_read+0x35c/0x570 fs/read_write.c:496
ksys_read+0x12d/0x250 fs/read_write.c:634
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xae
Freed by task 6349:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
kasan_set_track+0x1c/0x30 mm/kasan/common.c:46
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:357
____kasan_slab_free mm/kasan/common.c:360 [inline]
____kasan_slab_free mm/kasan/common.c:325 [inline]
__kasan_slab_free+0xf5/0x130 mm/kasan/common.c:367
kasan_slab_free include/linux/kasan.h:199 [inline]
slab_free_hook mm/slub.c:1562 [inline]
slab_free_freelist_hook+0x92/0x210 mm/slub.c:1600
slab_free mm/slub.c:3161 [inline]
kfree+0xe5/0x7f0 mm/slub.c:4213
uevent_show+0x2c4/0x390 drivers/base/core.c:2279
dev_attr_show+0x4b/0x90 drivers/base/core.c:1973
sysfs_kf_seq_show+0x1f8/0x400 fs/sysfs/file.c:61
seq_read_iter+0x4d3/0x1220 fs/seq_file.c:227
kernfs_fop_read_iter+0x44f/0x5f0 fs/kernfs/file.c:241
call_read_iter include/linux/fs.h:1971 [inline]
new_sync_read+0x41e/0x6e0 fs/read_write.c:415
vfs_read+0x35c/0x570 fs/read_write.c:496
ksys_read+0x12d/0x250 fs/read_write.c:634
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xae
The buggy address belongs to the object at ffff888013696000
which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 2048 bytes to the right of
4096-byte region [ffff888013696000, ffff888013697000)
The buggy address belongs to the page:
page:ffffea00004da400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13690
head:ffffea00004da400 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head)
raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888010842140
raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888013697700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888013697780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888013697800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff888013697880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888013697900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
CPU: 1 PID: 4838 Comm: systemd-udevd Tainted: G B 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
panic+0x306/0x73d kernel/panic.c:231
end_report mm/kasan/report.c:102 [inline]
end_report.cold+0x5a/0x5a mm/kasan/report.c:88
__kasan_report mm/kasan/report.c:406 [inline]
kasan_report.cold+0x6a/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:__syscall_enter_from_user_work kernel/entry/common.c:86 [inline]
RIP: 0010:syscall_enter_from_user_mode+0x31/0x70 kernel/entry/common.c:107
Code: 89 fd 48 8b 7c 24 10 e8 fd f7 ff ff e9 2a 00 00 00 e9 2e 00 00 00 e8 be b0 70 f8 e8 f9 ae 70 f8 fb 65 48 8b 04 25 00 f0 01 00 <48> 8b 70 08 40 f6 c6 3f 75 1c 4c 89 e0 5d 41 5c c3 e9 1b 00 00 00
RSP: 0018:ffffc9000162ff30 EFLAGS: 00000206
RAX: ffff888015818000 RBX: 0000000000000000 RCX: 1ffffffff1b8baa1
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000162ff58 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff8179e5a8 R11: 0000000000000000 R12: 000000000000002e
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
do_syscall_64+0xf/0x70 arch/x86/entry/common.c:41
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3c899e2e67
Code: 89 02 48 c7 c0 ff ff ff ff eb d0 0f 1f 84 00 00 00 00 00 8b 05 6a b5 20 00 85 c0 75 2e 48 63 ff 48 63 d2 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 11 71 20 00 f7 d8 64 89 02 48
RSP: 002b:00007ffd81912868 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000561a57b61580 RCX: 00007f3c899e2e67
RDX: 0000000000000000 RSI: 00007ffd81912880 RDI: 0000000000000004
RBP: 00007ffd81912880 R08: 0000561a56ca8670 R09: 0000000000000060
R10: 0000000000000018 R11: 0000000000000246 R12: 0000561a5790e4f0
R13: 0000000000000094 R14: 0000561a5791d210 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..