------------[ cut here ]------------ TCP recvmsg seq # bug 2: copied 99F31925, seq 99C921D7, rcvnxt 99E34408, fl 40 WARNING: CPU: 3 PID: 5946 at net/ipv4/tcp.c:2648 tcp_recvmsg_locked+0xad1/0x2780 net/ipv4/tcp.c:2648 Modules linked in: CPU: 3 UID: 0 PID: 5946 Comm: syz-executor178 Not tainted 6.14.0-rc3-syzkaller-00060-g6537cfb395f3 #0 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+0xad1/0x2780 net/ipv4/tcp.c:2648 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 80 a5 aa 8c 44 8b 44 24 30 8b 30 e8 f0 43 b7 f7 90 <0f> 0b 90 90 e9 1c fa ff ff e8 31 12 f7 f7 49 8d 5f 60 be 08 00 00 RSP: 0018:ffffc90003cbf488 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000099c921d7 RCX: ffffffff817a1229 RDX: ffff888024a64880 RSI: ffffffff817a1236 RDI: 0000000000000001 RBP: 000000000000ffcb R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: dffffc0000000000 R13: ffff8880258f9e00 R14: ffff8880258f9e34 R15: ffff8880258f9e28 FS: 000055556994d380(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1d44f59870 CR3: 00000000322e0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: receive_fallback_to_copy net/ipv4/tcp.c:1891 [inline] tcp_zerocopy_receive+0x1483/0x2620 net/ipv4/tcp.c:2123 do_tcp_getsockopt+0x1b43/0x27d0 net/ipv4/tcp.c:4583 tcp_getsockopt net/ipv4/tcp.c:4673 [inline] tcp_getsockopt+0xdf/0x100 net/ipv4/tcp.c:4664 do_sock_getsockopt+0x3fe/0x800 net/socket.c:2364 __sys_getsockopt+0x12f/0x260 net/socket.c:2393 __do_sys_getsockopt net/socket.c:2400 [inline] __se_sys_getsockopt net/socket.c:2397 [inline] __x64_sys_getsockopt+0xbd/0x160 net/socket.c:2397 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:0x7f82aac0d039 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff6a1b1a78 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000400000000340 RCX: 00007f82aac0d039 RDX: 0000000000000023 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000400000000380 R09: 0000000000000f06 R10: 0000400000000340 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001