================================================================== BUG: KASAN: slab-out-of-bounds in ____bpf_clone_redirect net/core/filter.c:1768 [inline] BUG: KASAN: slab-out-of-bounds in bpf_clone_redirect+0x2de/0x2f0 net/core/filter.c:1759 Read of size 8 at addr ffff888083945f90 by task syz-executor.4/14464 CPU: 1 PID: 14464 Comm: syz-executor.4 Not tainted 4.14.137 #33 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x138/0x19c lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 ____bpf_clone_redirect net/core/filter.c:1768 [inline] bpf_clone_redirect+0x2de/0x2f0 net/core/filter.c:1759 bpf_prog_e17da2cbe1b36bb1+0xc9b/0x1000 Allocated by task 14038: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x51/0x80 mm/slab.c:3696 __kmalloc_reserve.isra.0+0x40/0xe0 net/core/skbuff.c:137 pskb_expand_head+0x116/0xc10 net/core/skbuff.c:1462 __skb_cow include/linux/skbuff.h:2918 [inline] skb_cow_head include/linux/skbuff.h:2952 [inline] erspan_xmit+0xd13/0x11c0 net/ipv4/ip_gre.c:739 __netdev_start_xmit include/linux/netdevice.h:4033 [inline] netdev_start_xmit include/linux/netdevice.h:4042 [inline] xmit_one net/core/dev.c:3009 [inline] dev_hard_start_xmit+0x18c/0x8b0 net/core/dev.c:3025 sch_direct_xmit+0x27a/0x550 net/sched/sch_generic.c:186 __dev_xmit_skb net/core/dev.c:3218 [inline] __dev_queue_xmit+0x1b6e/0x25e0 net/core/dev.c:3493 dev_queue_xmit+0x18/0x20 net/core/dev.c:3558 __bpf_tx_skb net/core/filter.c:1708 [inline] __bpf_redirect_common net/core/filter.c:1747 [inline] __bpf_redirect+0x62b/0xab0 net/core/filter.c:1754 ____bpf_clone_redirect net/core/filter.c:1787 [inline] bpf_clone_redirect+0x1fd/0x2f0 net/core/filter.c:1759 bpf_prog_e17da2cbe1b36bb1+0xa0d/0x1000 Freed by task 14038: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 skb_free_head+0x8b/0xb0 net/core/skbuff.c:554 skb_release_data+0x4af/0x700 net/core/skbuff.c:574 skb_release_all+0x4d/0x60 net/core/skbuff.c:631 __kfree_skb net/core/skbuff.c:645 [inline] kfree_skb+0xb5/0x340 net/core/skbuff.c:663 ip_tunnel_xmit+0x5b7/0x3189 net/ipv4/ip_tunnel.c:805 __gre_xmit+0x4eb/0x890 net/ipv4/ip_gre.c:444 erspan_xmit net/ipv4/ip_gre.c:750 [inline] erspan_xmit+0x441/0x11c0 net/ipv4/ip_gre.c:725 __netdev_start_xmit include/linux/netdevice.h:4033 [inline] netdev_start_xmit include/linux/netdevice.h:4042 [inline] xmit_one net/core/dev.c:3009 [inline] dev_hard_start_xmit+0x18c/0x8b0 net/core/dev.c:3025 sch_direct_xmit+0x27a/0x550 net/sched/sch_generic.c:186 __dev_xmit_skb net/core/dev.c:3218 [inline] __dev_queue_xmit+0x1b6e/0x25e0 net/core/dev.c:3493 dev_queue_xmit+0x18/0x20 net/core/dev.c:3558 __bpf_tx_skb net/core/filter.c:1708 [inline] __bpf_redirect_common net/core/filter.c:1747 [inline] __bpf_redirect+0x62b/0xab0 net/core/filter.c:1754 ____bpf_clone_redirect net/core/filter.c:1787 [inline] bpf_clone_redirect+0x1fd/0x2f0 net/core/filter.c:1759 bpf_prog_e17da2cbe1b36bb1+0xa0d/0x1000 The buggy address belongs to the object at ffff888083945b40 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 80 bytes to the right of 1024-byte region [ffff888083945b40, ffff888083945f40) The buggy address belongs to the page: page:ffffea00020e5100 count:1 mapcount:0 mapping:ffff888083944040 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffff888083944040 0000000000000000 0000000100000007 raw: ffffea000218c020 ffffea00023c0320 ffff8880aa800ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888083945e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888083945f00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888083945f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888083946000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff888083946080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================