------------[ cut here ]------------ TCP recvmsg seq # bug 2: copied 90CCCB78, seq 90A2D42A, rcvnxt 90B9CDF3, fl 40 WARNING: CPU: 0 PID: 6751 at net/ipv4/tcp.c:2647 tcp_recvmsg_locked+0xad1/0x2780 net/ipv4/tcp.c:2647 Modules linked in: CPU: 0 UID: 0 PID: 6751 Comm: syz.1.540 Not tainted 6.11.0-syzkaller-02574-ga430d95c5efa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:tcp_recvmsg_locked+0xad1/0x2780 net/ipv4/tcp.c:2647 Code: 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 b3 1b 00 00 48 8b 04 24 89 da 48 c7 c7 c0 c3 86 8c 44 8b 44 24 30 8b 30 e8 90 10 cf f7 90 <0f> 0b 90 90 e9 1c fa ff ff e8 81 be 0c f8 49 8d 5f 60 be 08 00 00 RSP: 0018:ffffc9000436f408 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000090a2d42a RCX: ffffc90019f41000 RDX: 0000000000040000 RSI: ffffffff814e2c86 RDI: 0000000000000001 RBP: 000000000000ffcb R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000 R13: ffff8880640a4280 R14: ffff8880640a42b4 R15: ffff8880640a42a8 FS: 00007fecc74e76c0(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000207ce000 CR3: 0000000033986000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: receive_fallback_to_copy net/ipv4/tcp.c:1890 [inline] tcp_zerocopy_receive+0x1483/0x2620 net/ipv4/tcp.c:2122 do_tcp_getsockopt+0x1803/0x2970 net/ipv4/tcp.c:4582 tcp_getsockopt net/ipv4/tcp.c:4672 [inline] tcp_getsockopt+0xdf/0x100 net/ipv4/tcp.c:4663 do_sock_getsockopt+0x3fe/0x800 net/socket.c:2392 __sys_getsockopt+0x1a1/0x270 net/socket.c:2421 __do_sys_getsockopt net/socket.c:2431 [inline] __se_sys_getsockopt net/socket.c:2428 [inline] __x64_sys_getsockopt+0xbd/0x160 net/socket.c:2428 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fecc677def9 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:00007fecc74e7038 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007fecc6936058 RCX: 00007fecc677def9 RDX: 0000000000000023 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 00007fecc67f0b76 R08: 0000000020000380 R09: 0000000000000000 R10: 00000000200001c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fecc6936058 R15: 00007fffa7216838