------------[ cut here ]------------ TCP recvmsg seq # bug 2: copied 76214514, seq 762144DC, rcvnxt 762144DD, fl 40 WARNING: CPU: 1 PID: 6171 at net/ipv4/tcp.c:2420 tcp_recvmsg_locked+0x7dc/0x2640 net/ipv4/tcp.c:2418 Modules linked in: CPU: 1 PID: 6171 Comm: syz-executor.4 Not tainted 6.10.0-syzkaller-09703-gd7e78951a8b8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:tcp_recvmsg_locked+0x7dc/0x2640 net/ipv4/tcp.c:2418 Code: b6 04 28 84 c0 48 8b 5c 24 08 0f 85 2d 01 00 00 8b 0a 48 c7 c7 e0 80 d0 8c 44 89 fe 44 89 f2 44 8b 44 24 24 e8 c5 7a 65 f7 90 <0f> 0b 90 90 4c 8b 64 24 38 e9 40 ff ff ff 89 f9 80 e1 07 80 c1 03 RSP: 0018:ffffc9000ae07280 EFLAGS: 00010246 RAX: 0315f2087b2a8a00 RBX: ffff888019f99770 RCX: ffff88802d6c5a00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000ae07470 R08: ffffffff815565a2 R09: 1ffff920015c0df0 R10: dffffc0000000000 R11: fffff520015c0df1 R12: ffff888019f99798 R13: dffffc0000000000 R14: 00000000762144dc R15: 0000000076214514 FS: 00007fce4252b6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000cf3d CR3: 000000002a8c2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: receive_fallback_to_copy net/ipv4/tcp.c:1887 [inline] tcp_zerocopy_receive+0x81c/0x25b0 net/ipv4/tcp.c:2119 do_tcp_getsockopt+0x2491/0x3570 net/ipv4/tcp.c:4321 tcp_getsockopt+0xfb/0x1c0 net/ipv4/tcp.c:4411 do_sock_getsockopt+0x373/0x850 net/socket.c:2386 __sys_getsockopt+0x271/0x330 net/socket.c:2415 __do_sys_getsockopt net/socket.c:2425 [inline] __se_sys_getsockopt net/socket.c:2422 [inline] __x64_sys_getsockopt+0xb5/0xd0 net/socket.c:2422 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fce4187cae9 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:00007fce4252b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007fce4199bf80 RCX: 00007fce4187cae9 RDX: 0000000000000023 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 00007fce418c847a R08: 00000000200004c0 R09: 0000000000000000 R10: 0000000020000380 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fce4199bf80 R15: 00007fffd7034098