================================================================== BUG: KASAN: slab-out-of-bounds in skb_at_tc_ingress include/net/sch_generic.h:452 [inline] BUG: KASAN: slab-out-of-bounds in bpf_push_mac_rcsum net/core/filter.c:1422 [inline] BUG: KASAN: slab-out-of-bounds in ____bpf_skb_vlan_push net/core/filter.c:1969 [inline] BUG: KASAN: slab-out-of-bounds in bpf_skb_vlan_push+0x45e/0x540 net/core/filter.c:1960 Read of size 4 at addr ffff8801d591b9c8 by task syz-executor2/22772 CPU: 1 PID: 22772 Comm: syz-executor2 Not tainted 4.14.73+ #14 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xb9/0x11b lib/dump_stack.c:53 print_address_description+0x60/0x22b mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.6+0x11b/0x2dd mm/kasan/report.c:409 skb_at_tc_ingress include/net/sch_generic.h:452 [inline] bpf_push_mac_rcsum net/core/filter.c:1422 [inline] ____bpf_skb_vlan_push net/core/filter.c:1969 [inline] bpf_skb_vlan_push+0x45e/0x540 net/core/filter.c:1960 ___bpf_prog_run+0x248e/0x5c70 kernel/bpf/core.c:1012 Allocated by task 22158: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.1+0x4f/0xd0 mm/kasan/kasan.c:551 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2723 [inline] slab_alloc mm/slub.c:2731 [inline] kmem_cache_alloc+0xe4/0x2b0 mm/slub.c:2736 kmem_cache_alloc_node include/linux/slab.h:361 [inline] __alloc_skb+0xd8/0x550 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:980 [inline] alloc_skb_with_frags+0xab/0x500 net/core/skbuff.c:5167 sock_alloc_send_pskb+0x55e/0x6e0 net/core/sock.c:2075 tun_alloc_skb drivers/net/tun.c:1194 [inline] tun_get_user+0x614/0x3c90 drivers/net/tun.c:1479 tun_chr_write_iter+0xcf/0x180 drivers/net/tun.c:1592 call_write_iter include/linux/fs.h:1782 [inline] new_sync_write fs/read_write.c:471 [inline] __vfs_write+0x417/0x5c0 fs/read_write.c:484 __kernel_write+0xf3/0x330 fs/read_write.c:503 write_pipe_buf+0x192/0x250 fs/splice.c:797 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x324/0x740 fs/splice.c:626 splice_from_pipe+0xcf/0x130 fs/splice.c:661 default_file_splice_write+0x37/0x80 fs/splice.c:809 do_splice_from fs/splice.c:851 [inline] direct_splice_actor+0x116/0x160 fs/splice.c:1018 splice_direct_to_actor+0x28c/0x750 fs/splice.c:973 do_splice_direct+0x17b/0x220 fs/splice.c:1061 do_sendfile+0x4a1/0xb50 fs/read_write.c:1438 SYSC_sendfile64 fs/read_write.c:1493 [inline] SyS_sendfile64+0xab/0x140 fs/read_write.c:1485 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 22158: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xac/0x190 mm/kasan/kasan.c:524 slab_free_hook mm/slub.c:1389 [inline] slab_free_freelist_hook mm/slub.c:1410 [inline] slab_free mm/slub.c:2966 [inline] kmem_cache_free+0x12d/0x350 mm/slub.c:2988 kfree_skbmem+0x9e/0x100 net/core/skbuff.c:582 __kfree_skb net/core/skbuff.c:642 [inline] kfree_skb+0xd0/0x340 net/core/skbuff.c:659 packet_rcv_fanout+0x170/0x5e0 net/packet/af_packet.c:1458 __netif_receive_skb_core+0x149d/0x2d10 net/core/dev.c:4455 __netif_receive_skb+0x58/0x1f0 net/core/dev.c:4493 netif_receive_skb_internal+0xfc/0x5e0 net/core/dev.c:4566 tun_rx_batched.isra.12+0x2fd/0x540 drivers/net/tun.c:1217 tun_get_user+0x11d1/0x3c90 drivers/net/tun.c:1566 tun_chr_write_iter+0xcf/0x180 drivers/net/tun.c:1592 call_write_iter include/linux/fs.h:1782 [inline] new_sync_write fs/read_write.c:471 [inline] __vfs_write+0x417/0x5c0 fs/read_write.c:484 __kernel_write+0xf3/0x330 fs/read_write.c:503 write_pipe_buf+0x192/0x250 fs/splice.c:797 splice_from_pipe_feed fs/splice.c:502 [inline] __splice_from_pipe+0x324/0x740 fs/splice.c:626 splice_from_pipe+0xcf/0x130 fs/splice.c:661 default_file_splice_write+0x37/0x80 fs/splice.c:809 do_splice_from fs/splice.c:851 [inline] direct_splice_actor+0x116/0x160 fs/splice.c:1018 splice_direct_to_actor+0x28c/0x750 fs/splice.c:973 do_splice_direct+0x17b/0x220 fs/splice.c:1061 do_sendfile+0x4a1/0xb50 fs/read_write.c:1438 SYSC_sendfile64 fs/read_write.c:1493 [inline] SyS_sendfile64+0xab/0x140 fs/read_write.c:1485 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8801d591b8c0 which belongs to the cache skbuff_head_cache of size 224 The buggy address is located 40 bytes to the right of 224-byte region [ffff8801d591b8c0, ffff8801d591b9a0) The buggy address belongs to the page: page:ffffea00075646c0 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000100(slab) raw: 4000000000000100 0000000000000000 0000000000000000 00000001800c000c raw: ffffea000731edc0 0000000d00000002 ffff8801dab70200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d591b880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8801d591b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8801d591b980: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801d591ba00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801d591ba80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================