------------[ cut here ]------------ TCP recvmsg seq # bug 2: copied 384E239C, seq 38242C4E, rcvnxt 383E4E7F, fl 40 WARNING: CPU: 0 PID: 5834 at net/ipv4/tcp.c:2650 tcp_recvmsg_locked+0x872/0x3c80 net/ipv4/tcp.c:2648 Modules linked in: CPU: 0 UID: 0 PID: 5834 Comm: syz-executor935 Not tainted 6.13.0-rc2-syzkaller-00485-gc1bad69f8baf #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:tcp_recvmsg_locked+0x872/0x3c80 net/ipv4/tcp.c:2648 Code: 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 37 01 00 00 8b 0a 48 c7 c7 60 83 15 8d 44 89 fe 89 da 44 8b 44 24 3c e8 af 6b 36 f7 90 <0f> 0b 90 90 4c 8b 7c 24 48 e9 3d ff ff ff 44 89 e1 80 e1 07 80 c1 RSP: 0018:ffffc90003587060 EFLAGS: 00010246 RAX: c52c8fd1d143b800 RBX: 0000000038242c4e RCX: ffff888034e93c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90003587470 R08: ffffffff81600a42 R09: fffffbfff1cfa210 R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: 1ffff11006a5f545 R13: dffffc0000000000 R14: ffff8880352faa28 R15: 00000000384e239c FS: 000055558fea8380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000021000000 CR3: 0000000035582000 CR4: 00000000003526f0 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+0x824/0x25c0 net/ipv4/tcp.c:2123 do_tcp_getsockopt+0x2491/0x3570 net/ipv4/tcp.c:4583 tcp_getsockopt+0xfb/0x1c0 net/ipv4/tcp.c:4673 do_sock_getsockopt+0x3c4/0x7e0 net/socket.c:2385 __sys_getsockopt net/socket.c:2414 [inline] __do_sys_getsockopt net/socket.c:2421 [inline] __se_sys_getsockopt net/socket.c:2418 [inline] __x64_sys_getsockopt+0x2a1/0x370 net/socket.c:2418 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:0x7f0581d420f9 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:00007fff81ee32a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0581d420f9 RDX: 0000000000000023 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000020000380 R09: 0000000000000f06 R10: 0000000020000340 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001