================================================================== BUG: KASAN: use-after-free in __skb_flow_dissect+0x4ae7/0x4e00 net/core/flow_dissector.c:1039 Read of size 1 at addr ffff888168b0000e by task syz-executor.5/26391 CPU: 1 PID: 26391 Comm: syz-executor.5 Not tainted 5.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xfa/0x151 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 __skb_flow_dissect+0x4ae7/0x4e00 net/core/flow_dissector.c:1039 skb_flow_dissect_flow_keys include/linux/skbuff.h:1330 [inline] ___skb_get_hash net/core/flow_dissector.c:1564 [inline] __skb_get_hash+0xbe/0x230 net/core/flow_dissector.c:1630 skb_get_hash include/linux/skbuff.h:1372 [inline] ip_tunnel_xmit+0x16cf/0x2b00 net/ipv4/ip_tunnel.c:723 ipip_tunnel_xmit+0x406/0x500 net/ipv4/ipip.c:305 __netdev_start_xmit include/linux/netdevice.h:4793 [inline] netdev_start_xmit include/linux/netdevice.h:4807 [inline] xmit_one net/core/dev.c:3593 [inline] dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3609 __dev_queue_xmit+0x2121/0x2e00 net/core/dev.c:4182 neigh_connected_output+0x37a/0x4c0 net/core/neighbour.c:1520 neigh_output include/net/neighbour.h:510 [inline] ip_finish_output2+0x83d/0x21a0 net/ipv4/ip_output.c:230 __ip_finish_output net/ipv4/ip_output.c:308 [inline] __ip_finish_output+0x396/0x640 net/ipv4/ip_output.c:290 ip_finish_output+0x35/0x200 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip_output+0x196/0x310 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:448 [inline] ip_local_out+0xaf/0x1a0 net/ipv4/ip_output.c:126 iptunnel_xmit+0x5a3/0x9c0 net/ipv4/ip_tunnel_core.c:82 ip_tunnel_xmit+0x1116/0x2b00 net/ipv4/ip_tunnel.c:805 ipgre_xmit+0x679/0x830 net/ipv4/ip_gre.c:648 __netdev_start_xmit include/linux/netdevice.h:4793 [inline] netdev_start_xmit include/linux/netdevice.h:4807 [inline] xmit_one net/core/dev.c:3593 [inline] dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3609 __dev_queue_xmit+0x2121/0x2e00 net/core/dev.c:4182 __bpf_tx_skb net/core/filter.c:2116 [inline] __bpf_redirect_no_mac net/core/filter.c:2141 [inline] __bpf_redirect+0x548/0xc80 net/core/filter.c:2164 ____bpf_clone_redirect net/core/filter.c:2448 [inline] bpf_clone_redirect+0x2ae/0x420 net/core/filter.c:2420 bpf_prog_bebbfe2050753572+0x56/0x2b4 bpf_dispatcher_nop_func include/linux/bpf.h:644 [inline] bpf_test_run+0x3f1/0xc50 net/bpf/test_run.c:50 bpf_prog_test_run_skb+0xabc/0x1c50 net/bpf/test_run.c:582 bpf_prog_test_run kernel/bpf/syscall.c:3127 [inline] __do_sys_bpf+0x1ea9/0x4f00 kernel/bpf/syscall.c:4406 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465ef9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb246bb8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465ef9 RDX: 0000000000000028 RSI: 0000000020000080 RDI: 000000000000000a RBP: 00000000004bcd1c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffe5b1d9e0f R14: 00007fb246bb8300 R15: 0000000000022000 The buggy address belongs to the page: page:000000008cec8e85 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x168b00 flags: 0x57ff00000000000() raw: 057ff00000000000 ffffea0005a2c008 ffffea0005a2c008 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888168afff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888168afff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888168b00000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888168b00080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888168b00100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================