Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1186409rdf; Wed, 22 Nov 2023 07:46:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOSYFh5SMsGAGYAFu0IILEu1ca8yrd3mTxysUaGfIH7y/jVTWhKhchpFyCISHy2R3dwOBF X-Received: by 2002:a54:468c:0:b0:3a9:bb08:d468 with SMTP id k12-20020a54468c000000b003a9bb08d468mr2634854oic.55.1700668011659; Wed, 22 Nov 2023 07:46:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700668011; cv=none; d=google.com; s=arc-20160816; b=BxVgMo6GinwMeaw6p8kloGRPyIMRpNEDqsl349Ayz+PVztCs7RpKbGVC4L38z4ocFp C9E+vzAtzV0VJrgxxuYQ1tzmhIjQFKLrX4zMJHOzGDV5gtUR55dFwZJYM8sVOPXFqDfx LI5mNILYWC6S6oYgJkf/HKe+8La7YHMsbodw5+SEV58oeNPjNCn2qWoB0PVXCD1nyXMR P+gfZJkpK1djb5grdAp/hc7Dd0QfLupBISwdfhIMVsp/aJ3WhsCD+jsmcbDLrQmf76yr 8sIbwL8VUbKCInMhBfthlzoQWaNes2yoj5O7483hpkvCZbflbnqLq/Db2A/qk0Cestqj aPdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=CFtPKhGMv7Zp9VrcApbcd7/gxkt/GNlZA4pzGmzIan8=; fh=BZWnrvTK3dWaECIvJc6InAnC6Ylkj4da+ie2XJ/Upas=; b=L82gOxN/zpQs87eUVamsaFb5Tas5r+OpjzR++jcweDz+paGi8dTnTVSE11v+964kKf ALKTkN4u8zsvXJTHSwJdM3svNtsaLq/jP7cIonDySQ/LdIlBljBs/8MhXlbCOlmS05E0 CMkg7i5N89LwdM4P4O6fUGatlRmgdAaLXbUS14aHqsbGn8NugZ7zHI+roE51XA0hVcAw WE1cl6zy2WFgr2ZQymPJOCWjIbuHSWDvPR4qqf7mNHlswQpFZlXyf6Jkse0MjSpnoZYK et4WPBu5xfGafyBrq7dDutTGrh8rULW7Lhw+S+raET5kHuY/uJw1t0MIabc5hF6ixfP9 ANPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k19-20020a634b53000000b005c25a1d3916si4781796pgl.651.2023.11.22.07.46.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 07:46:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2DC1881CF7C1; Wed, 22 Nov 2023 07:46:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234691AbjKVPpN (ORCPT + 99 others); Wed, 22 Nov 2023 10:45:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235191AbjKVPod (ORCPT ); Wed, 22 Nov 2023 10:44:33 -0500 Received: from mail-pl1-f205.google.com (mail-pl1-f205.google.com [209.85.214.205]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AA1B26B9 for ; Wed, 22 Nov 2023 07:43:24 -0800 (PST) Received: by mail-pl1-f205.google.com with SMTP id d9443c01a7336-1cf61cbe570so35990465ad.0 for ; Wed, 22 Nov 2023 07:43:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700667804; x=1701272604; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CFtPKhGMv7Zp9VrcApbcd7/gxkt/GNlZA4pzGmzIan8=; b=LHrH8TsFdSq+IKr80v60fWxIS5d2cM3SxhXyP9L6BBmGxN5miLOlqg9f3tBxClM5i0 M7XkGqp3gN4OtJJQ2V62TTIuu7wsgJ/ym8p5ZWwiH8TtI8cvdaAt+rFm2IDnYM6IXCEL o3TPwIij6xrRIQ85k6FrzgURHXlV8R8Y7k81N5mnCbuO185NaLQZkBY/oVb1Wynr1ZNf Zd+5f9cdAaYsyS70IL/fmYAZDTGXCf8SWew4VDtMBTAStfawr3YvlrqXcPEWwXqzjqW2 byjsDx31QoxLRk9fsijDNv0I/xqULHQ5u6bqplnAc6r98qNlRYOOVlgLtucnTmQ9lVLE Ywqg== X-Gm-Message-State: AOJu0YyVs4kuief+oByrZ9pPpLVtPi4ztJh4wRVnZG69bO/J4ZcCL+kx /gi7Dq7ZxWt2TZlie9/K5Y5/6IOcMqkgEgF9W6AY3gIg0h/v MIME-Version: 1.0 X-Received: by 2002:a17:903:18f:b0:1cf:5085:cfa1 with SMTP id z15-20020a170903018f00b001cf5085cfa1mr727262plg.13.1700667803849; Wed, 22 Nov 2023 07:43:23 -0800 (PST) Date: Wed, 22 Nov 2023 07:43:23 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000545a26060abf943b@google.com> Subject: [syzbot] [mptcp?] KMSAN: uninit-value in mptcp_incoming_options From: syzbot To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, martineau@kernel.org, matthieu.baerts@tessares.net, matttbe@kernel.org, mptcp@lists.linux.dev, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=2.0 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SORTED_RECIPS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 07:46:35 -0800 (PST) X-Spam-Level: ** Hello, syzbot found the following issue on: HEAD commit: c2d5304e6c64 Merge tag 'platform-drivers-x86-v6.7-2' of gi.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=1536e3d4e80000 kernel config: https://syzkaller.appspot.com/x/.config?x=e32016b84cf917ca dashboard link: https://syzkaller.appspot.com/bug?extid=b834a6b2decad004cfa1 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11469724e80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13934aaf680000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/23ea827adf3b/disk-c2d5304e.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/0f964ac588f5/vmlinux-c2d5304e.xz kernel image: https://storage.googleapis.com/syzbot-assets/b061be889285/bzImage-c2d5304e.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+b834a6b2decad004cfa1@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in mptcp_incoming_options+0xc93/0x3a80 net/mptcp/options.c:1197 mptcp_incoming_options+0xc93/0x3a80 net/mptcp/options.c:1197 tcp_data_queue+0xb4/0x7f20 net/ipv4/tcp_input.c:5141 tcp_rcv_established+0x1132/0x2600 net/ipv4/tcp_input.c:6155 tcp_v4_do_rcv+0x8a8/0xff0 net/ipv4/tcp_ipv4.c:1906 tcp_v4_rcv+0x4ce0/0x51a0 net/ipv4/tcp_ipv4.c:2329 ip_protocol_deliver_rcu+0x264/0x1300 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2b8/0x440 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:314 [inline] ip_local_deliver+0x21f/0x490 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:461 [inline] ip_rcv_finish net/ipv4/ip_input.c:449 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ip_rcv+0x476/0x770 net/ipv4/ip_input.c:569 __netif_receive_skb_one_core net/core/dev.c:5529 [inline] __netif_receive_skb+0x1a6/0x5a0 net/core/dev.c:5643 process_backlog+0x480/0x8b0 net/core/dev.c:5971 __napi_poll+0xe3/0x970 net/core/dev.c:6533 napi_poll net/core/dev.c:6602 [inline] net_rx_action+0x884/0x16d0 net/core/dev.c:6735 __do_softirq+0x1b7/0x7c3 kernel/softirq.c:553 do_softirq+0x9a/0xf0 kernel/softirq.c:454 __local_bh_enable_ip+0x99/0xa0 kernel/softirq.c:381 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:817 [inline] __dev_queue_xmit+0x24ff/0x5130 net/core/dev.c:4373 dev_queue_xmit include/linux/netdevice.h:3112 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip_finish_output2+0x14be/0x1b40 net/ipv4/ip_output.c:235 __ip_finish_output+0x266/0x720 ip_finish_output+0x4b/0x550 net/ipv4/ip_output.c:323 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip_output+0x15f/0x3e0 net/ipv4/ip_output.c:433 dst_output include/net/dst.h:451 [inline] ip_local_out net/ipv4/ip_output.c:129 [inline] __ip_queue_xmit+0x1c02/0x1e00 net/ipv4/ip_output.c:535 ip_queue_xmit+0x60/0x80 net/ipv4/ip_output.c:549 __tcp_transmit_skb+0x3b26/0x4c40 net/ipv4/tcp_output.c:1462 tcp_transmit_skb net/ipv4/tcp_output.c:1480 [inline] tcp_write_xmit+0x3e0f/0x8940 net/ipv4/tcp_output.c:2792 __tcp_push_pending_frames+0xc4/0x380 net/ipv4/tcp_output.c:2977 tcp_push+0x755/0x7a0 net/ipv4/tcp.c:736 mptcp_push_release net/mptcp/protocol.c:1489 [inline] __mptcp_push_pending+0x8bc/0xde0 net/mptcp/protocol.c:1624 mptcp_sendmsg+0x1e90/0x2300 net/mptcp/protocol.c:1890 inet_sendmsg+0x105/0x190 net/ipv4/af_inet.c:847 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0x9c2/0xd60 net/socket.c:2584 ___sys_sendmsg+0x28d/0x3c0 net/socket.c:2638 __sys_sendmmsg+0x3c4/0x950 net/socket.c:2724 __do_sys_sendmmsg net/socket.c:2753 [inline] __se_sys_sendmmsg net/socket.c:2750 [inline] __x64_sys_sendmmsg+0xbc/0x120 net/socket.c:2750 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b Uninit was stored to memory at: mptcp_parse_option net/mptcp/options.c:110 [inline] mptcp_get_options+0x2d86/0x2e60 net/mptcp/options.c:396 mptcp_incoming_options+0x124/0x3a80 net/mptcp/options.c:1139 tcp_data_queue+0xb4/0x7f20 net/ipv4/tcp_input.c:5141 tcp_rcv_established+0x1132/0x2600 net/ipv4/tcp_input.c:6155 tcp_v4_do_rcv+0x8a8/0xff0 net/ipv4/tcp_ipv4.c:1906 tcp_v4_rcv+0x4ce0/0x51a0 net/ipv4/tcp_ipv4.c:2329 ip_protocol_deliver_rcu+0x264/0x1300 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x2b8/0x440 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:314 [inline] ip_local_deliver+0x21f/0x490 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:461 [inline] ip_rcv_finish net/ipv4/ip_input.c:449 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ip_rcv+0x476/0x770 net/ipv4/ip_input.c:569 __netif_receive_skb_one_core net/core/dev.c:5529 [inline] __netif_receive_skb+0x1a6/0x5a0 net/core/dev.c:5643 process_backlog+0x480/0x8b0 net/core/dev.c:5971 __napi_poll+0xe3/0x970 net/core/dev.c:6533 napi_poll net/core/dev.c:6602 [inline] net_rx_action+0x884/0x16d0 net/core/dev.c:6735 __do_softirq+0x1b7/0x7c3 kernel/softirq.c:553 Local variable mp_opt created at: mptcp_incoming_options+0x9b/0x3a80 net/mptcp/options.c:1116 tcp_data_queue+0xb4/0x7f20 net/ipv4/tcp_input.c:5141 CPU: 0 PID: 5031 Comm: syz-executor376 Not tainted 6.7.0-rc2-syzkaller-00014-gc2d5304e6c64 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 ===================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup