================================================================== BUG: KASAN: slab-out-of-bounds in ____bpf_skb_change_head net/core/filter.c:2423 [inline] BUG: KASAN: slab-out-of-bounds in bpf_skb_change_head+0x4ea/0x600 net/core/filter.c:2419 Read of size 4 at addr ffff888113ada238 by task syz-executor.3/12921 CPU: 0 PID: 12921 Comm: syz-executor.3 Not tainted 4.14.134+ #23 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xca/0x134 lib/dump_stack.c:53 print_address_description+0x60/0x226 mm/kasan/report.c:187 __kasan_report.cold+0x1a/0x41 mm/kasan/report.c:316 Allocated by task 7: save_stack mm/kasan/common.c:76 [inline] set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc.part.0+0x53/0xc0 mm/kasan/common.c:495 slab_post_alloc_hook mm/slab.h:439 [inline] slab_alloc_node mm/slub.c:2758 [inline] slab_alloc mm/slub.c:2766 [inline] kmem_cache_alloc+0xd2/0x2e0 mm/slub.c:2771 skb_clone+0x124/0x370 net/core/skbuff.c:1282 skb_share_check include/linux/skbuff.h:1540 [inline] packet_rcv_spkt+0x3bd/0x4d0 net/packet/af_packet.c:1857 deliver_skb net/core/dev.c:1881 [inline] deliver_ptype_list_skb net/core/dev.c:1896 [inline] __netif_receive_skb_core+0xa71/0x2cf0 net/core/dev.c:4460 __netif_receive_skb+0x66/0x210 net/core/dev.c:4515 netif_receive_skb_internal+0x11f/0x5f0 net/core/dev.c:4588 napi_skb_finish net/core/dev.c:4949 [inline] napi_gro_receive+0x206/0x410 net/core/dev.c:4980 receive_buf+0x503/0x4310 drivers/net/virtio_net.c:852 0xffffffffffffffff Freed by task 7: save_stack mm/kasan/common.c:76 [inline] set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x164/0x210 mm/kasan/common.c:457 slab_free_hook mm/slub.c:1403 [inline] slab_free_freelist_hook mm/slub.c:1430 [inline] slab_free mm/slub.c:3005 [inline] kmem_cache_free+0xcb/0x340 mm/slub.c:3021 kfree_skbmem net/core/skbuff.c:586 [inline] kfree_skbmem+0xa0/0x110 net/core/skbuff.c:580 __kfree_skb net/core/skbuff.c:646 [inline] kfree_skb+0xeb/0x370 net/core/skbuff.c:663 packet_rcv_spkt+0xd5/0x4d0 net/packet/af_packet.c:1888 deliver_skb net/core/dev.c:1881 [inline] deliver_ptype_list_skb net/core/dev.c:1896 [inline] __netif_receive_skb_core+0xa71/0x2cf0 net/core/dev.c:4460 __netif_receive_skb+0x66/0x210 net/core/dev.c:4515 netif_receive_skb_internal+0x11f/0x5f0 net/core/dev.c:4588 napi_skb_finish net/core/dev.c:4949 [inline] napi_gro_receive+0x206/0x410 net/core/dev.c:4980 receive_buf+0x503/0x4310 drivers/net/virtio_net.c:852 0xffffffffffffffff The buggy address belongs to the object at ffff888113ada140 which belongs to the cache skbuff_head_cache of size 224 The buggy address is located 24 bytes to the right of 224-byte region [ffff888113ada140, ffff888113ada220) The buggy address belongs to the page: page:ffffea00044eb680 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000200(slab) raw: 4000000000000200 0000000000000000 0000000000000000 00000001800c000c raw: dead000000000100 dead000000000200 ffff8881dab58200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888113ada100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff888113ada180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888113ada200: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888113ada280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888113ada300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================