------------[ cut here ]------------ WARNING: CPU: 0 PID: 11938 at include/linux/skbuff.h:2911 skb_transport_header include/linux/skbuff.h:2911 [inline] WARNING: CPU: 0 PID: 11938 at include/linux/skbuff.h:2911 skb_transport_offset include/linux/skbuff.h:3018 [inline] WARNING: CPU: 0 PID: 11938 at include/linux/skbuff.h:2911 ipgre_xmit+0x894/0x970 net/ipv4/ip_gre.c:639 Modules linked in: CPU: 0 PID: 11938 Comm: syz-executor.2 Not tainted 5.18.0-syzkaller-12169-g3e6fe5ce4d48 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:skb_transport_header include/linux/skbuff.h:2911 [inline] RIP: 0010:skb_transport_offset include/linux/skbuff.h:3018 [inline] RIP: 0010:ipgre_xmit+0x894/0x970 net/ipv4/ip_gre.c:639 Code: 89 14 24 e8 fe 2e d1 f9 48 8b 14 24 e9 be f9 ff ff e8 10 2f d1 f9 e9 02 fa ff ff e8 f6 2e d1 f9 e9 55 fa ff ff e8 5c 46 84 f9 <0f> 0b e9 66 fa ff ff 48 8b 7c 24 08 e8 fb 2e d1 f9 e9 03 f8 ff ff RSP: 0018:ffffc900054d74b8 EFLAGS: 00010216 RAX: 00000000000002a6 RBX: 000000000000ffff RCX: ffffc90003a05000 RDX: 0000000000040000 RSI: ffffffff87f63df4 RDI: 0000000000000003 RBP: ffff88806d5c1780 R08: 0000000000000003 R09: 000000000000ffff R10: 000000000000ffff R11: 0000000000000001 R12: ffff888017930000 R13: ffff88806d5c1834 R14: 0000000000000004 R15: ffff88804ce82000 FS: 00007ff660883700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff65f79d090 CR3: 000000005bd62000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: __netdev_start_xmit include/linux/netdevice.h:4805 [inline] netdev_start_xmit include/linux/netdevice.h:4819 [inline] xmit_one net/core/dev.c:3588 [inline] dev_hard_start_xmit+0x188/0x880 net/core/dev.c:3604 __dev_queue_xmit+0x2b1d/0x3900 net/core/dev.c:4253 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+0x5fe/0xe40 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_e2f29814702bf05a+0x56/0x5e bpf_dispatcher_nop_func include/linux/bpf.h:869 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [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:3591 [inline] __sys_bpf+0x15c1/0x5700 kernel/bpf/syscall.c:4936 __do_sys_bpf kernel/bpf/syscall.c:5022 [inline] __se_sys_bpf kernel/bpf/syscall.c:5020 [inline] __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:5020 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+0x46/0xb0 RIP: 0033:0x7ff65f689109 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff660883168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007ff65f79bf60 RCX: 00007ff65f689109 RDX: 0000000000000028 RSI: 0000000020000080 RDI: 000000000000000a RBP: 00007ff65f6e305d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff5d79154f R14: 00007ff660883300 R15: 0000000000022000