x_tables: ip6_tables: rpfilter match: used from hooks FORWARD, but only valid from PREROUTING skbuff: skb_over_panic: text:000000003cffa2c0 len:232 put:72 head:0000000009b245a2 data:0000000009b245a2 tail:0xe8 end:0xc0 dev: ------------[ cut here ]------------ kernel BUG at net/core/skbuff.c:104! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 31619 Comm: syz-executor.3 Not tainted 4.19.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:skb_panic+0x172/0x174 net/core/skbuff.c:104 Code: 4c 24 10 8b 8b 80 00 00 00 41 56 45 89 e8 4c 89 e2 41 57 48 89 ee 48 c7 c7 20 d3 4b 89 ff 74 24 10 ff 74 24 20 e8 33 00 c0 fa <0f> 0b e8 3d 06 d5 fa 4c 8b 64 24 18 e8 13 15 0b fb 48 c7 c1 80 dc RSP: 0018:ffff88802ce86fa8 EFLAGS: 00010286 RAX: 0000000000000086 RBX: ffff88809aa73b40 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff814fde01 RDI: ffffed10059d0de7 RBP: ffffffff894bdcc0 R08: 0000000000000086 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff87420953 R13: 0000000000000048 R14: ffffffff894bd2e0 R15: 00000000000000c0 FS: 00007f8ac5e84700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff9ea187740 CR3: 000000009b57b000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: skb_over_panic net/core/skbuff.c:109 [inline] skb_put.cold+0x24/0x24 net/core/skbuff.c:1702 dump_esp_combs net/key/af_key.c:3012 [inline] pfkey_send_acquire+0x1853/0x2520 net/key/af_key.c:3233 km_query+0xc5/0x210 net/xfrm/xfrm_state.c:2024 xfrm_state_find+0x1c6c/0x2cb0 net/xfrm/xfrm_state.c:1043 xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:1410 [inline] xfrm_tmpl_resolve+0x2f3/0xc20 net/xfrm/xfrm_policy.c:1455 xfrm_resolve_and_create_bundle+0xd8/0x3e0 net/xfrm/xfrm_policy.c:1753 xfrm_lookup_with_ifid+0x243/0x1cb0 net/xfrm/xfrm_policy.c:2076 xfrm_lookup net/xfrm/xfrm_policy.c:2200 [inline] xfrm_lookup_route+0x36/0x1e0 net/xfrm/xfrm_policy.c:2211 ip_route_output_flow+0x114/0x150 net/ipv4/route.c:2639 udp_sendmsg+0x19ce/0x2550 net/ipv4/udp.c:1101 inet_sendmsg+0x132/0x5a0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x3b3/0x8e0 net/socket.c:2115 __sys_sendmmsg+0x195/0x470 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2236 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe 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:00007f8ac5e83c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219 RDX: 000000000800001d RSI: 0000000020007fc0 RDI: 0000000000000003 RBP: 000000000119c070 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034 R13: 00007ffdeaf2ccff R14: 00007f8ac5e849c0 R15: 000000000119c034 Modules linked in: ---[ end trace 00daab436b520116 ]--- RIP: 0010:skb_panic+0x172/0x174 net/core/skbuff.c:104 Code: 4c 24 10 8b 8b 80 00 00 00 41 56 45 89 e8 4c 89 e2 41 57 48 89 ee 48 c7 c7 20 d3 4b 89 ff 74 24 10 ff 74 24 20 e8 33 00 c0 fa <0f> 0b e8 3d 06 d5 fa 4c 8b 64 24 18 e8 13 15 0b fb 48 c7 c1 80 dc RSP: 0018:ffff88802ce86fa8 EFLAGS: 00010286 RAX: 0000000000000086 RBX: ffff88809aa73b40 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff814fde01 RDI: ffffed10059d0de7 RBP: ffffffff894bdcc0 R08: 0000000000000086 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff87420953 R13: 0000000000000048 R14: ffffffff894bd2e0 R15: 00000000000000c0 FS: 00007f8ac5e84700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff9ea187740 CR3: 000000009b57b000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400