------------[ cut here ]------------ TCP recvmsg seq # bug 2: copied E9C47D4D, seq E9C47D15, rcvnxt E9C47D16, fl 40 WARNING: CPU: 0 PID: 3637 at net/ipv4/tcp.c:2455 tcp_recvmsg_locked+0x513/0x1050 net/ipv4/tcp.c:2455 Modules linked in: CPU: 0 PID: 3637 Comm: syz-executor.3 Not tainted 5.19.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:tcp_recvmsg_locked+0x513/0x1050 net/ipv4/tcp.c:2455 Code: e8 42 25 6b fe 90 48 8b 44 24 18 48 c7 c7 b8 8c 09 84 8b 53 28 41 8b 75 00 44 8b 44 24 0c 8b 88 30 08 00 00 e8 ce c4 53 00 90 <0f> 0b 90 90 e8 14 25 6b fe 48 8b 03 48 39 04 24 0f 85 6c fd ff ff RSP: 0018:ffffc9000167fa58 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8881136d1cf0 RCX: 0000000000000000 RDX: ffff88810bf1b600 RSI: ffffffff812321d0 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 00000000e9c47d15 R13: ffff888116b393b4 R14: 0000000000000000 R15: 0000000000000001 FS: 00007fbc087bc6c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f01699b19d3 CR3: 00000001200ba000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: receive_fallback_to_copy net/ipv4/tcp.c:1952 [inline] tcp_zerocopy_receive+0x9e8/0xe10 net/ipv4/tcp.c:2159 do_tcp_getsockopt.constprop.0+0x497/0x11b0 net/ipv4/tcp.c:4271 tcp_getsockopt net/ipv4/tcp.c:4340 [inline] tcp_getsockopt+0x75/0x90 net/ipv4/tcp.c:4332 __sys_getsockopt+0xc5/0x160 net/socket.c:2300 __do_sys_getsockopt net/socket.c:2315 [inline] __se_sys_getsockopt net/socket.c:2312 [inline] __x64_sys_getsockopt+0x23/0x30 net/socket.c:2312 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fbc08c39ae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbc087bc0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007fbc08d58f80 RCX: 00007fbc08c39ae9 RDX: 0000000000000023 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 00007fbc08c8547a R08: 00000000200004c0 R09: 0000000000000000 R10: 0000000020000380 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fbc08d58f80 R15: 00007ffeb98e0008