Oops: general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000070-0x0000000000000077]
CPU: 1 UID: 0 PID: 9302 Comm: syz.5.763 Not tainted 6.13.0-rc5-syzkaller-00004-gccb98ccef0e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:skb_segment+0x2bbf/0x4350 net/core/skbuff.c:4802
Code: 10 f8 4c 89 7c 24 38 81 7c 24 4c ff ff 00 00 0f 85 a3 e0 ff ff e8 11 9e 10 f8 48 8b 44 24 28 48 8d 58 70 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 49 09 00 00 44 8b 33 48 8b 9c 24 d0 00
RSP: 0018:ffffc90000a16e80 EFLAGS: 00010212
RAX: 000000000000000e RBX: 0000000000000070 RCX: ffff88802a170000
RDX: 0000000000000100 RSI: ffff88805e98ba6e RDI: 000000000000ffff
RBP: ffffc90000a170f0 R08: ffffffff898eb5d6 R09: ffffffff89941ee0
R10: 0000000000000002 R11: ffff88802a170000 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88807daf3c00 R15: 00000000fffffff8
FS: 00007f5997e7a6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff68d46bbd0 CR3: 000000002db76000 CR4: 0000000000350ef0
Call Trace:
tcp_gso_segment+0x3e3/0x1d20 net/ipv4/tcp_offload.c:176
ipv6_gso_segment+0xb7e/0x21f0 net/ipv6/ip6_offload.c:152
skb_mac_gso_segment+0x385/0x740 net/core/gso.c:53
__skb_gso_segment+0x366/0x510 net/core/gso.c:124
skb_gso_segment include/net/gso.h:83 [inline]
validate_xmit_skb+0x580/0xff0 net/core/dev.c:3675
__dev_queue_xmit+0x17b3/0x3f50 net/core/dev.c:4426
dev_queue_xmit include/linux/netdevice.h:3168 [inline]
neigh_hh_output include/net/neighbour.h:523 [inline]
neigh_output include/net/neighbour.h:537 [inline]
ip6_finish_output2+0x1284/0x17b0 net/ipv6/ip6_output.c:141
ip6_finish_output+0x41e/0x840 net/ipv6/ip6_output.c:226
NF_HOOK include/linux/netfilter.h:314 [inline]
ip6_xmit+0xed8/0x18a0 net/ipv6/ip6_output.c:366
inet6_csk_xmit+0x468/0x710 net/ipv6/inet6_connection_sock.c:135
__tcp_transmit_skb+0x1efd/0x3ba0 net/ipv4/tcp_output.c:1468
tcp_transmit_skb net/ipv4/tcp_output.c:1486 [inline]
tcp_write_xmit+0x17b5/0x6bf0 net/ipv4/tcp_output.c:2829
__tcp_push_pending_frames+0x9b/0x360 net/ipv4/tcp_output.c:3012
tcp_push_pending_frames include/net/tcp.h:2107 [inline]
tcp_data_snd_check net/ipv4/tcp_input.c:5741 [inline]
tcp_rcv_established+0xf39/0x1f20 net/ipv4/tcp_input.c:6266
tcp_v6_do_rcv+0x5fd/0x13e0 net/ipv6/tcp_ipv6.c:1644
tcp_v6_rcv+0x253a/0x2fb0 net/ipv6/tcp_ipv6.c:1914
ip6_protocol_deliver_rcu+0xc79/0x1580 net/ipv6/ip6_input.c:436
ip6_input_finish+0x187/0x2d0 net/ipv6/ip6_input.c:481
NF_HOOK+0x3a6/0x450 include/linux/netfilter.h:314
NF_HOOK+0x3a6/0x450 include/linux/netfilter.h:314
__netif_receive_skb_one_core net/core/dev.c:5672 [inline]
__netif_receive_skb+0x1ea/0x650 net/core/dev.c:5785
process_backlog+0x662/0x15b0 net/core/dev.c:6117
__napi_poll+0xcd/0x490 net/core/dev.c:6883
napi_poll net/core/dev.c:6952 [inline]
net_rx_action+0x89b/0x1240 net/core/dev.c:7074
handle_softirqs+0x2d6/0x9b0 kernel/softirq.c:561
do_softirq+0x11b/0x1e0 kernel/softirq.c:462
__local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:389
do_tcp_getsockopt+0x24a8/0x3570 net/ipv4/tcp.c:4586
tcp_getsockopt+0xfb/0x1c0 net/ipv4/tcp.c:4673
do_sock_getsockopt+0x3c6/0x7e0 net/socket.c:2374
__sys_getsockopt net/socket.c:2403 [inline]
__do_sys_getsockopt net/socket.c:2410 [inline]
__se_sys_getsockopt net/socket.c:2407 [inline]
__x64_sys_getsockopt+0x2a1/0x370 net/socket.c:2407
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5996f85d29
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5997e7a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 00007f5997175fa0 RCX: 00007f5996f85d29
RDX: 0000000000000023 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007f5997001b08 R08: 0000000020000080 R09: 0000000000000000
R10: 0000000020000140 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5997175fa0 R15: 00007fff4ca58b98
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:skb_segment+0x2bbf/0x4350 net/core/skbuff.c:4802
Code: 10 f8 4c 89 7c 24 38 81 7c 24 4c ff ff 00 00 0f 85 a3 e0 ff ff e8 11 9e 10 f8 48 8b 44 24 28 48 8d 58 70 48 89 d8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 49 09 00 00 44 8b 33 48 8b 9c 24 d0 00
RSP: 0018:ffffc90000a16e80 EFLAGS: 00010212
RAX: 000000000000000e RBX: 0000000000000070 RCX: ffff88802a170000
RDX: 0000000000000100 RSI: ffff88805e98ba6e RDI: 000000000000ffff
RBP: ffffc90000a170f0 R08: ffffffff898eb5d6 R09: ffffffff89941ee0
R10: 0000000000000002 R11: ffff88802a170000 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88807daf3c00 R15: 00000000fffffff8
FS: 00007f5997e7a6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff68d46bbd0 CR3: 000000002db76000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
0: 10 f8 adc %bh,%al
2: 4c 89 7c 24 38 mov %r15,0x38(%rsp)
7: 81 7c 24 4c ff ff 00 cmpl $0xffff,0x4c(%rsp)
e: 00
f: 0f 85 a3 e0 ff ff jne 0xffffe0b8
15: e8 11 9e 10 f8 call 0xf8109e2b
1a: 48 8b 44 24 28 mov 0x28(%rsp),%rax
1f: 48 8d 58 70 lea 0x70(%rax),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 49 09 00 00 jne 0x980
37: 44 8b 33 mov (%rbx),%r14d
3a: 48 rex.W
3b: 8b .byte 0x8b
3c: 9c pushf
3d: 24 d0 and $0xd0,%al