syzbot


WARNING in subflow_data_ready (2)

Status: upstream: reported C repro on 2024/01/24 10:25
Subsystems: mptcp
[Documentation on labels]
Reported-by: syzbot+732ab7be796ec0d104ac@syzkaller.appspotmail.com
First crash: 96d, last: 75d
Cause bisection: introduced by (bisect log) :
commit 14c56686a64c65ba716ff48f1f4b19c85f4cb2a9
Author: Geliang Tang <geliang.tang@suse.com>
Date: Wed Oct 18 18:23:55 2023 +0000

  mptcp: avoid sending RST when closing the initial subflow

Crash: WARNING in subflow_data_ready (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mptcp?] WARNING in subflow_data_ready (2) 1 (2) 2024/02/05 16:21
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in subflow_data_ready mptcp 42 100d 184d 25/26 fixed on 2024/01/20 21:18
linux-6.1 WARNING in subflow_data_ready C 6 23d 107d 0/3 upstream: reported C repro on 2024/01/11 08:07
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/02/25 12:45 23m retest repro upstream OK log
2024/02/25 11:59 23m retest repro upstream OK log
2024/02/25 10:58 23m retest repro net-next OK log
2024/02/11 08:52 17m retest repro net report log
2024/02/11 08:52 20m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5088 at net/mptcp/subflow.c:1412 subflow_data_ready+0x3a0/0x690 net/mptcp/subflow.c:1412
Modules linked in:
CPU: 0 PID: 5088 Comm: syz-executor133 Not tainted 6.7.0-syzkaller-12263-gdbc153fd3c14 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:subflow_data_ready+0x3a0/0x690 net/mptcp/subflow.c:1412
Code: 89 ee e8 23 73 16 f7 40 84 ed 75 21 e8 e9 77 16 f7 44 89 fe bf 07 00 00 00 e8 4c 73 16 f7 41 83 ff 07 74 09 e8 d1 77 16 f7 90 <0f> 0b 90 e8 c8 77 16 f7 48 89 df e8 70 b2 ff ff 31 ff 89 c5 89 c6
RSP: 0018:ffffc90003bfed38 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88801e103100 RCX: ffffffff8a71a9a4
RDX: ffff888028131dc0 RSI: ffffffff8a71a9af RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000007
R10: 000000000000000b R11: 1ffffffff1a36fa8 R12: 1ffff9200077fda7
R13: ffff88802be70b80 R14: ffff888019ea7000 R15: 000000000000000b
FS:  00007f8f29d4c6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8f29d4b1b8 CR3: 000000001c25f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tcp_data_ready+0x14c/0x5b0 net/ipv4/tcp_input.c:5143
 tcp_data_queue+0x19bb/0x5190 net/ipv4/tcp_input.c:5223
 tcp_rcv_state_process+0x11d2/0x4e30 net/ipv4/tcp_input.c:6859
 tcp_v4_do_rcv+0x369/0xa10 net/ipv4/tcp_ipv4.c:1929
 sk_backlog_rcv include/net/sock.h:1092 [inline]
 __release_sock+0x132/0x3b0 net/core/sock.c:2972
 release_sock+0x5a/0x1f0 net/core/sock.c:3538
 __mptcp_close_ssk+0xb12/0xfd0 net/mptcp/protocol.c:2421
 mptcp_pm_nl_rm_addr_or_subflow+0x29e/0xa30 net/mptcp/pm_netlink.c:818
 mptcp_pm_remove_subflow+0x34/0xa0 net/mptcp/pm.c:69
 mptcp_pm_remove_addrs_and_subflows+0x5a2/0x6a0 net/mptcp/pm_netlink.c:1558
 mptcp_nl_remove_addrs_list net/mptcp/pm_netlink.c:1575 [inline]
 mptcp_pm_nl_flush_addrs_doit+0x3fe/0x6e0 net/mptcp/pm_netlink.c:1616
 genl_family_rcv_msg_doit+0x1fc/0x2e0 net/netlink/genetlink.c:1113
 genl_family_rcv_msg net/netlink/genetlink.c:1193 [inline]
 genl_rcv_msg+0x561/0x800 net/netlink/genetlink.c:1208
 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2543
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1217
 netlink_unicast_kernel net/netlink/af_netlink.c:1341 [inline]
 netlink_unicast+0x53b/0x810 net/netlink/af_netlink.c:1367
 netlink_sendmsg+0x8b7/0xd70 net/netlink/af_netlink.c:1908
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0xd5/0x180 net/socket.c:745
 ____sys_sendmsg+0x6ac/0x940 net/socket.c:2584
 ___sys_sendmsg+0x135/0x1d0 net/socket.c:2638
 __sys_sendmsg+0x117/0x1e0 net/socket.c:2667
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f8f29db0d89
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1a 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:00007f8f29d4c228 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f8f29e3b438 RCX: 00007f8f29db0d89
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000006
RBP: 00007f8f29e3b430 R08: 00007f8f29d4c6c0 R09: 00007f8f29d4c6c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8f29e3b43c
R13: 00007f8f29e07610 R14: 6d705f706374706d R15: 00007ffe50487cb8
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/22 09:45 net dbc153fd3c14 9bd8dcda .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in subflow_data_ready
2024/01/22 14:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 9bd8dcda .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in subflow_data_ready
2024/01/22 09:50 upstream 6613476e225e 9bd8dcda .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in subflow_data_ready
2024/01/22 04:57 upstream 6613476e225e 9bd8dcda .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in subflow_data_ready
2024/01/22 09:45 net-next 736b5545d39c 9bd8dcda .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in subflow_data_ready
2024/01/28 05:19 upstream 8a696a29c690 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in subflow_data_ready
2024/01/25 14:40 upstream 6098d87eaf31 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in subflow_data_ready
2024/01/22 00:09 upstream 6613476e225e 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in subflow_data_ready
2024/01/23 20:31 upstream 7ed2632ec7d7 74d5594c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in subflow_data_ready
* Struck through repros no longer work on HEAD.