================================================================== BUG: KASAN: use-after-free in eth_header_parse_protocol+0xad/0xd0 net/ethernet/eth.c:282 Read of size 2 at addr ffff8881e5e9f80b by task syz-executor.3/5057 CPU: 0 PID: 5057 Comm: syz-executor.3 Not tainted 5.4.111-syzkaller-00141-gce6a5172613f #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+0x1d8/0x24e lib/dump_stack.c:118 print_address_description+0x9b/0x650 mm/kasan/report.c:384 __kasan_report+0x182/0x260 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:641 eth_header_parse_protocol+0xad/0xd0 net/ethernet/eth.c:282 dev_parse_header_protocol include/linux/netdevice.h:3016 [inline] virtio_net_hdr_to_skb+0x6de/0xd70 include/linux/virtio_net.h:83 packet_snd net/packet/af_packet.c:2976 [inline] packet_sendmsg+0x483a/0x6780 net/packet/af_packet.c:3013 sock_sendmsg_nosec net/socket.c:638 [inline] sock_sendmsg net/socket.c:658 [inline] sock_write_iter+0x330/0x450 net/socket.c:990 call_write_iter include/linux/fs.h:1971 [inline] aio_write+0x47b/0x610 fs/aio.c:1584 __io_submit_one fs/aio.c:1843 [inline] io_submit_one+0xa59/0x2300 fs/aio.c:1886 __do_sys_io_submit fs/aio.c:1945 [inline] __se_sys_io_submit+0x189/0x3d0 fs/aio.c:1915 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x466459 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f31d2449188 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000020000080 RSI: 0000000000000001 RDI: 00007f31d2428000 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffee97c88df R14: 00007f31d2449300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea000797a7c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x8000000000000000() raw: 8000000000000000 0000000000000000 ffffea000797a7c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881e5e9f700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881e5e9f780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881e5e9f800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881e5e9f880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881e5e9f900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================