------------[ cut here ]------------ TCP recvmsg seq # bug 2: copied B2C11DC7, seq B2A3A3BC, rcvnxt B2BA9EF9, fl 40 WARNING: CPU: 2 PID: 6553 at net/ipv4/tcp.c:2704 tcp_recvmsg_locked+0xb5c/0x2880 net/ipv4/tcp.c:2704 Modules linked in: CPU: 2 UID: 0 PID: 6553 Comm: syz.0.16 Not tainted 6.16.0-rc7-syzkaller-g94ce1ac2c9b4 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:tcp_recvmsg_locked+0xb5c/0x2880 net/ipv4/tcp.c:2704 Code: 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 15 1b 00 00 48 8b 04 24 44 8b 44 24 30 89 da 48 c7 c7 60 26 f0 8c 8b 30 e8 05 9b 88 f7 90 <0f> 0b 90 90 e9 ac f9 ff ff e8 56 93 c9 f7 49 8d 5c 24 60 be 08 00 RSP: 0018:ffffc900028074a8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 00000000b2a3a3bc RCX: ffffffff817af1a8 RDX: ffff888033fb0000 RSI: ffffffff817af1b5 RDI: 0000000000000001 RBP: ffff888036c9d1b4 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888036c9d1a8 R13: ffff888036c9d180 R14: 000000000003ff2c R15: dffffc0000000000 FS: 00007f01bcf1a6c0(0000) GS:ffff8880d6920000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000400000a26000 CR3: 000000002b5be000 CR4: 0000000000352ef0 Call Trace: receive_fallback_to_copy net/ipv4/tcp.c:1948 [inline] tcp_zerocopy_receive+0x12db/0x20f0 net/ipv4/tcp.c:2180 do_tcp_getsockopt+0x10ee/0x2670 net/ipv4/tcp.c:4663 tcp_getsockopt+0xdf/0x100 net/ipv4/tcp.c:4762 do_sock_getsockopt+0x34a/0x440 net/socket.c:2357 __sys_getsockopt+0x12f/0x260 net/socket.c:2386 __do_sys_getsockopt net/socket.c:2393 [inline] __se_sys_getsockopt net/socket.c:2390 [inline] __x64_sys_getsockopt+0xbd/0x160 net/socket.c:2390 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f01bc18cde9 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:00007f01bcf1a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007f01bc3a6080 RCX: 00007f01bc18cde9 RDX: 0000000000000023 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007f01bc20e2a0 R08: 0000400000000380 R09: 0000000000000000 R10: 0000400000000340 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f01bc3a6080 R15: 00007ffcec479f08