================================================================== BUG: KASAN: slab-out-of-bounds in eth_header_parse_protocol+0xad/0xd0 net/ethernet/eth.c:282 Read of size 2 at addr ffff8881e97c600b by task syz-executor319/343 CPU: 1 PID: 343 Comm: syz-executor319 Not tainted 5.4.108-syzkaller-00848-g4a75e4d41639 #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:2984 [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:1587 __io_submit_one fs/aio.c:1846 [inline] io_submit_one+0xa59/0x2300 fs/aio.c:1889 __do_sys_io_submit fs/aio.c:1948 [inline] __se_sys_io_submit+0x189/0x3d0 fs/aio.c:1918 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x440579 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:00007ffdd057ef78 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007ffdd057efa0 RCX: 0000000000440579 RDX: 0000000020000080 RSI: 0000000000000001 RDI: 00007f54b85a8000 RBP: 0000000000000003 R08: bb1414acd057efa7 R09: bb1414acd057efa7 R10: bb1414acd057efa7 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdd057ef90 R14: 00007ffdd057ef88 R15: 00007ffdd057ef84 Allocated by task 339: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] __kasan_kmalloc+0x137/0x1e0 mm/kasan/common.c:517 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2821 [inline] slab_alloc mm/slub.c:2829 [inline] __kmalloc_track_caller+0x13a/0x2e0 mm/slub.c:4439 __kmalloc_reserve net/core/skbuff.c:142 [inline] __alloc_skb+0xaf/0x4d0 net/core/skbuff.c:210 alloc_skb include/linux/skbuff.h:1057 [inline] netlink_dump+0x203/0x12d0 net/netlink/af_netlink.c:2219 netlink_recvmsg+0x6bb/0x11a0 net/netlink/af_netlink.c:2001 sock_recvmsg_nosec net/socket.c:872 [inline] sock_recvmsg net/socket.c:890 [inline] ____sys_recvmsg net/socket.c:2530 [inline] ___sys_recvmsg net/socket.c:2571 [inline] __sys_recvmsg+0x563/0x800 net/socket.c:2618 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 339: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] kasan_set_free_info mm/kasan/common.c:333 [inline] __kasan_slab_free+0x18a/0x240 mm/kasan/common.c:475 slab_free_hook mm/slub.c:1454 [inline] slab_free_freelist_hook+0x7b/0x150 mm/slub.c:1492 slab_free mm/slub.c:3072 [inline] kfree+0xe0/0x660 mm/slub.c:4061 skb_release_all net/core/skbuff.c:675 [inline] __kfree_skb+0x55/0x170 net/core/skbuff.c:689 skb_free_datagram+0x24/0xd0 net/core/datagram.c:329 netlink_recvmsg+0x619/0x11a0 net/netlink/af_netlink.c:1997 sock_recvmsg_nosec net/socket.c:872 [inline] sock_recvmsg net/socket.c:890 [inline] ____sys_recvmsg net/socket.c:2530 [inline] ___sys_recvmsg net/socket.c:2571 [inline] __sys_recvmsg+0x563/0x800 net/socket.c:2618 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8881e97c4000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 11 bytes to the right of 8192-byte region [ffff8881e97c4000, ffff8881e97c6000) The buggy address belongs to the page: page:ffffea0007a5f000 refcount:1 mapcount:0 mapping:ffff8881f5c0c500 index:0x0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881f5c0c500 raw: 0000000000000000 0000000080020002 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881e97c5f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881e97c5f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881e97c6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881e97c6080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881e97c6100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================