------------[ cut here ]------------ TCP recvmsg seq # bug 2: copied B5CEB397, seq B5CEB35F, rcvnxt B5CEB360, fl 40 WARNING: CPU: 1 PID: 6041 at net/ipv4/tcp.c:2396 tcp_recvmsg_locked+0xa6d/0x24a0 net/ipv4/tcp.c:2396 Modules linked in: CPU: 1 PID: 6041 Comm: syz-executor.2 Not tainted 6.7.0-rc5-syzkaller-01089-g610a689d2a57 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:tcp_recvmsg_locked+0xa6d/0x24a0 net/ipv4/tcp.c:2396 Code: 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 2e 18 00 00 48 8b 04 24 89 da 48 c7 c7 60 b9 f4 8b 44 8b 44 24 30 8b 30 e8 b4 9d 56 f8 90 <0f> 0b 90 90 e9 77 fa ff ff e8 d5 7f 90 f8 49 8d 5f 60 be 08 00 00 RSP: 0018:ffffc900036e7290 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 00000000b5ceb35f RCX: ffffffff814db579 RDX: ffff888020e25940 RSI: ffffffff814db586 RDI: 0000000000000001 RBP: ffff88806ac61ca4 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000 R13: ffff88806ac61c70 R14: 0000000000000001 R15: ffff88806ac61c98 FS: 00007f20545c76c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcd4b62e300 CR3: 0000000026c0e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: receive_fallback_to_copy+0x1d5/0x7a0 net/ipv4/tcp.c:1866 tcp_zerocopy_receive+0x10e9/0x20f0 net/ipv4/tcp.c:2099 do_tcp_getsockopt+0xb7b/0x2950 net/ipv4/tcp.c:4278 tcp_getsockopt net/ipv4/tcp.c:4365 [inline] tcp_getsockopt+0xd1/0xf0 net/ipv4/tcp.c:4356 do_sock_getsockopt+0x2e1/0x6c0 net/socket.c:2373 __sys_getsockopt+0x1a3/0x270 net/socket.c:2402 __do_sys_getsockopt net/socket.c:2412 [inline] __se_sys_getsockopt net/socket.c:2409 [inline] __x64_sys_getsockopt+0xbd/0x150 net/socket.c:2409 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f205387cae9 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:00007f20545c70c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007f205399bf80 RCX: 00007f205387cae9 RDX: 0000000000000023 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 00007f20538c847a R08: 00000000200004c0 R09: 0000000000000000 R10: 0000000020000380 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f205399bf80 R15: 00007ffd9234a1e8