================================================================== BUG: KASAN: use-after-free in __skb_flow_dissect+0x4925/0x4e20 net/core/flow_dissector.c:1039 Read of size 1 at addr ffff88816a80000e by task syz-executor.1/28411 CPU: 1 PID: 28411 Comm: syz-executor.1 Not tainted 5.11.0-rc4-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+0x107/0x163 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+0x4925/0x4e20 net/core/flow_dissector.c:1039 skb_flow_dissect_flow_keys include/linux/skbuff.h:1328 [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:1370 [inline] ip_tunnel_xmit+0x16cf/0x2b00 net/ipv4/ip_tunnel.c:724 ipip_tunnel_xmit+0x406/0x500 net/ipv4/ipip.c:305 __netdev_start_xmit include/linux/netdevice.h:4764 [inline] netdev_start_xmit include/linux/netdevice.h:4778 [inline] xmit_one net/core/dev.c:3574 [inline] dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3590 __dev_queue_xmit+0x2121/0x2e00 net/core/dev.c:4152 neigh_connected_output+0x380/0x4c0 net/core/neighbour.c:1519 neigh_output include/net/neighbour.h:510 [inline] ip_finish_output2+0x83d/0x21b0 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:441 [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:806 ipgre_xmit+0x679/0x830 net/ipv4/ip_gre.c:648 __netdev_start_xmit include/linux/netdevice.h:4764 [inline] netdev_start_xmit include/linux/netdevice.h:4778 [inline] xmit_one net/core/dev.c:3574 [inline] dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3590 __dev_queue_xmit+0x2121/0x2e00 net/core/dev.c:4152 __bpf_tx_skb net/core/filter.c:2116 [inline] __bpf_redirect_no_mac net/core/filter.c:2141 [inline] __bpf_redirect+0x521/0xc50 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/0xe7c bpf_dispatcher_nop_func include/linux/bpf.h:651 [inline] bpf_test_run+0x3f2/0xcc0 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:3122 [inline] __do_sys_bpf+0x1ea9/0x4f00 kernel/bpf/syscall.c:4400 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e219 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f9575f79c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e219 RDX: 0000000000000028 RSI: 0000000020000080 RDI: 000000000000000a RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007fffe3bbbfff R14: 00007f9575f7a9c0 R15: 000000000119bf8c The buggy address belongs to the page: page:000000003f972c86 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x16a800 flags: 0x57ff00000000000() raw: 057ff00000000000 ffffea0005ab0008 ffffea0005a90008 0000000000000000 raw: 0000000000000000 000000000000000a 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88816a7fff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88816a7fff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88816a800000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88816a800080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88816a800100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================