================================================================== BUG: KASAN: slab-out-of-bounds in pskb_may_pull include/linux/skbuff.h:2106 [inline] BUG: KASAN: slab-out-of-bounds in skb_ensure_writable+0x554/0x620 net/core/skbuff.c:5118 Read of size 4 at addr ffff88019c42db80 by task syz-executor5/22484 CPU: 1 PID: 22484 Comm: syz-executor5 Not tainted 4.17.0-rc7+ #37 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+0x1b9/0x294 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 pskb_may_pull include/linux/skbuff.h:2106 [inline] skb_ensure_writable+0x554/0x620 net/core/skbuff.c:5118 __bpf_try_make_writable net/core/filter.c:1606 [inline] bpf_try_make_writable net/core/filter.c:1612 [inline] ____bpf_l4_csum_replace net/core/filter.c:1822 [inline] bpf_l4_csum_replace+0x91/0x4a0 net/core/filter.c:1809 Allocated by task 0: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x760 mm/slab.c:3554 __build_skb+0xa3/0x410 net/core/skbuff.c:281 __napi_alloc_skb+0x19a/0x300 net/core/skbuff.c:482 rpcbind: RPC call returned error 22 napi_alloc_skb include/linux/skbuff.h:2650 [inline] page_to_skb.isra.38+0xe6/0x8c0 drivers/net/virtio_net.c:355 receive_mergeable+0x1413/0x38a0 drivers/net/virtio_net.c:858 receive_buf+0xca1/0x2bb0 drivers/net/virtio_net.c:963 virtnet_receive drivers/net/virtio_net.c:1246 [inline] virtnet_poll+0x3c8/0xdb5 drivers/net/virtio_net.c:1328 napi_poll net/core/dev.c:5789 [inline] net_rx_action+0x7b7/0x1930 net/core/dev.c:5855 __do_softirq+0x2e0/0xaf5 kernel/softirq.c:285 Freed by task 0: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x86/0x2d0 mm/slab.c:3756 kfree_skbmem+0x13c/0x210 net/core/skbuff.c:582 __kfree_skb+0x1d/0x20 net/core/skbuff.c:642 tcp_rcv_established+0x144c/0x2050 net/ipv4/tcp_input.c:5476 tcp_v4_do_rcv+0x5ad/0x850 net/ipv4/tcp_ipv4.c:1518 tcp_v4_rcv+0x2d67/0x38c0 net/ipv4/tcp_ipv4.c:1806 ip_local_deliver_finish+0x2e3/0xd80 net/ipv4/ip_input.c:215 NF_HOOK include/linux/netfilter.h:287 [inline] ip_local_deliver+0x1e1/0x720 net/ipv4/ip_input.c:256 dst_input include/net/dst.h:450 [inline] ip_rcv_finish+0x81b/0x2200 net/ipv4/ip_input.c:396 NF_HOOK include/linux/netfilter.h:287 [inline] ip_rcv+0x9fe/0x125c net/ipv4/ip_input.c:492 __netif_receive_skb_core+0x2468/0x3650 net/core/dev.c:4646 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:4711 netif_receive_skb_internal+0x126/0x7b0 net/core/dev.c:4785 napi_skb_finish net/core/dev.c:5147 [inline] napi_gro_receive+0x44d/0x5a0 net/core/dev.c:5178 receive_buf+0xc6a/0x2bb0 drivers/net/virtio_net.c:991 virtnet_receive drivers/net/virtio_net.c:1246 [inline] virtnet_poll+0x3c8/0xdb5 drivers/net/virtio_net.c:1328 napi_poll net/core/dev.c:5789 [inline] net_rx_action+0x7b7/0x1930 net/core/dev.c:5855 __do_softirq+0x2e0/0xaf5 kernel/softirq.c:285 The buggy address belongs to the object at ffff88019c42da80 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 24 bytes to the right of 232-byte region [ffff88019c42da80, ffff88019c42db68) The buggy address belongs to the page: page:ffffea0006710b40 count:1 mapcount:0 mapping:ffff88019c42d080 index:0xffff88019c42dbc0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff88019c42d080 ffff88019c42dbc0 0000000100000002 raw: ffffea0006dcc720 ffffea00074c8da0 ffff8801d9a11080 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88019c42da80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88019c42db00: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc >ffff88019c42db80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff88019c42dc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88019c42dc80: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ==================================================================