================================================================== BUG: KASAN: use-after-free in __skb_flow_dissect+0x12dc/0x4f80 net/core/flow_dissector.c:1057 Read of size 1 at addr ffff88817cc2000e by task syz-executor269/3635 CPU: 1 PID: 3635 Comm: syz-executor269 Not tainted 5.19.0-rc7-syzkaller-01445-g3c47fb2f4c4d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xeb/0x495 mm/kasan/report.c:313 print_report mm/kasan/report.c:429 [inline] kasan_report.cold+0xf4/0x1c6 mm/kasan/report.c:491 __skb_flow_dissect+0x12dc/0x4f80 net/core/flow_dissector.c:1057 skb_flow_dissect_flow_keys include/linux/skbuff.h:1485 [inline] ___skb_get_hash net/core/flow_dissector.c:1628 [inline] __skb_get_hash+0xbb/0x4c0 net/core/flow_dissector.c:1694 skb_get_hash include/linux/skbuff.h:1527 [inline] ip_tunnel_xmit+0x18b0/0x2ea0 net/ipv4/ip_tunnel.c:729 ipip_tunnel_xmit+0x413/0x510 net/ipv4/ipip.c:307 __netdev_start_xmit include/linux/netdevice.h:4805 [inline] netdev_start_xmit include/linux/netdevice.h:4819 [inline] xmit_one net/core/dev.c:3590 [inline] dev_hard_start_xmit+0x188/0x880 net/core/dev.c:3606 __dev_queue_xmit+0x2c41/0x39a0 net/core/dev.c:4255 dev_queue_xmit include/linux/netdevice.h:2994 [inline] neigh_connected_output+0x3c0/0x520 net/core/neighbour.c:1557 neigh_output include/net/neighbour.h:550 [inline] ip_finish_output2+0x782/0x2170 net/ipv4/ip_output.c:228 __ip_finish_output net/ipv4/ip_output.c:306 [inline] __ip_finish_output+0x396/0x650 net/ipv4/ip_output.c:288 ip_finish_output+0x32/0x280 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_mc_output+0x21b/0x700 net/ipv4/ip_output.c:415 dst_output include/net/dst.h:451 [inline] ip_local_out+0xaf/0x1a0 net/ipv4/ip_output.c:126 iptunnel_xmit+0x67a/0x9e0 net/ipv4/ip_tunnel_core.c:82 ip_tunnel_xmit+0x13e0/0x2ea0 net/ipv4/ip_tunnel.c:812 ipgre_xmit+0x6e0/0x900 net/ipv4/ip_gre.c:661 __netdev_start_xmit include/linux/netdevice.h:4805 [inline] netdev_start_xmit include/linux/netdevice.h:4819 [inline] xmit_one net/core/dev.c:3590 [inline] dev_hard_start_xmit+0x188/0x880 net/core/dev.c:3606 __dev_queue_xmit+0x2c41/0x39a0 net/core/dev.c:4255 dev_queue_xmit include/linux/netdevice.h:2994 [inline] __bpf_tx_skb net/core/filter.c:2114 [inline] __bpf_redirect_no_mac net/core/filter.c:2139 [inline] __bpf_redirect+0x666/0xe30 net/core/filter.c:2162 ____bpf_clone_redirect net/core/filter.c:2429 [inline] bpf_clone_redirect+0x2ae/0x420 net/core/filter.c:2401 bpf_prog_801cabf80fc815cd+0x59/0x5e bpf_dispatcher_nop_func include/linux/bpf.h:890 [inline] __bpf_prog_run include/linux/filter.h:594 [inline] bpf_prog_run include/linux/filter.h:601 [inline] bpf_test_run+0x386/0x9d0 net/bpf/test_run.c:402 bpf_prog_test_run_skb+0xb5e/0x1e10 net/bpf/test_run.c:1155 bpf_prog_test_run kernel/bpf/syscall.c:3600 [inline] __sys_bpf+0x15c1/0x5790 kernel/bpf/syscall.c:4952 __do_sys_bpf kernel/bpf/syscall.c:5038 [inline] __se_sys_bpf kernel/bpf/syscall.c:5036 [inline] __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:5036 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2f1bf7ed69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd8fe52c18 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f2f1bf7ed69 RDX: 0000000000000028 RSI: 0000000020000080 RDI: 000000000000000a RBP: 0000000000000000 R08: 000000000000000d R09: 000000000000000d R10: 000000000000000d R11: 0000000000000246 R12: 00007ffd8fe52c30 R13: 00000000000f4240 R14: 000000000000aa52 R15: 00007ffd8fe52c24 The buggy address belongs to the physical page: page:ffffea0005f30800 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17cc20 flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 ffffea0005f30808 ffffea0005f30808 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff88817cc1ff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88817cc1ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88817cc20000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88817cc20080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88817cc20100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================