netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 ================================================================== BUG: KASAN: slab-out-of-bounds in eth_header_parse_protocol+0xdc/0xe0 net/ethernet/eth.c:283 Read of size 2 at addr ffff888143f1dc0b by task syz-executor807/8390 CPU: 1 PID: 8390 Comm: syz-executor807 Not tainted 5.12.0-rc4-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 eth_header_parse_protocol+0xdc/0xe0 net/ethernet/eth.c:283 dev_parse_header_protocol include/linux/netdevice.h:3264 [inline] virtio_net_hdr_to_skb.constprop.0+0x99d/0xcd0 include/linux/virtio_net.h:83 packet_snd net/packet/af_packet.c:2994 [inline] packet_sendmsg+0x233c/0x5300 net/packet/af_packet.c:3031 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 sock_write_iter+0x289/0x3c0 net/socket.c:1001 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x796/0xa30 fs/read_write.c:605 ksys_write+0x1ee/0x250 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4436c9 Code: 28 c3 e8 4a 15 00 00 66 2e 0f 1f 84 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffcbea0b08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004436c9 RDX: 000000000000005a RSI: 0000000020000700 RDI: 0000000000000003 RBP: 0000000000000003 R08: bb1414ac00000000 R09: bb1414ac00000000 R10: bb1414ac00000000 R11: 0000000000000246 R12: 00007fffcbea0b20 R13: 00007fffcbea0b14 R14: 0000000000000003 R15: 0000000000000000 Allocated by task 1: 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_node include/linux/slab.h:572 [inline] kzalloc_node include/linux/slab.h:695 [inline] bdi_alloc+0x43/0x140 mm/backing-dev.c:737 blk_alloc_queue+0xfd/0x700 block/blk-core.c:539 brd_alloc+0x128/0x460 drivers/block/brd.c:381 brd_init+0x166/0x4ac drivers/block/brd.c:500 do_one_initcall+0x103/0x650 init/main.c:1226 do_initcall_level init/main.c:1299 [inline] do_initcalls init/main.c:1315 [inline] do_basic_setup init/main.c:1335 [inline] kernel_init_freeable+0x63e/0x6c2 init/main.c:1537 kernel_init+0xd/0x1b8 init/main.c:1424 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 The buggy address belongs to the object at ffff888143f1c000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 3083 bytes to the right of 4096-byte region [ffff888143f1c000, ffff888143f1d000) The buggy address belongs to the page: page:ffffea00050fc600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x143f18 head:ffffea00050fc600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x57ff00000010200(slab|head) raw: 057ff00000010200 dead000000000100 dead000000000122 ffff888010842140 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888143f1db00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888143f1db80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888143f1dc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888143f1dc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888143f1dd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================