Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1689181rdb; Thu, 7 Dec 2023 06:24:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/5HQwnhhAWISwuwzeY4gBCnInoY4as5J9ZT6eT4TlvjNGJJRL4KpVndEyzaxruRxyKi0Y X-Received: by 2002:a17:90a:9a8d:b0:286:6cc1:28e with SMTP id e13-20020a17090a9a8d00b002866cc1028emr2238312pjp.89.1701959080066; Thu, 07 Dec 2023 06:24:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701959080; cv=none; d=google.com; s=arc-20160816; b=tqgLSCdzV+XlH7qFjbpb3wlN3xzoOuwTUxM/X/+2nMaUYClutcJinBX7UnAkVMSwnB B1/wgrBeSWkuIjvpoNVgBO42naSyA8oZcpGZAVLEg/Mchlb2PTWQiM/JqmddmGD2wVhu NGs/gLpo4e4aVxeQLU2DhtU628kXB9fqyWcC69zd2h5r9Y82HSIMdFzPf7ncHOkCOAmh Dq8Ko74FAvr4dxfVWa0QhCf2p8k4HWkgj2nF+OwqyyKpDGxOO62vRmf4kweVGkA4LQmJ akcB9MXp+Iks5mRvPjXiMWFA/U0G+eHghGk5UAD80az0FfOubBMc7HOUYSGxvt1qNMx8 dNZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GkRewiu/NZNFWUxZGqBol41tT6ZsnLqbUhftzqAc+jE=; fh=GVlCa3sgDPKkFThJaAGk4ByIoJFe9v41iVnbVsQoEAU=; b=PRIdKkX4DCeOkw0Eix0JwwIwVCA9LD7sNsyH9i2O3Zr/vDXi/fYienlxvMUt5MzOFF jIHuDjZb+SYGli0Ebd5MWgMO7kXfIRu6ZkpMcZjRQQh6VE6giJuNT1ACcgVel4Tuj3No WYyhL5CDu7UuDDnCpri3mtrbFH8SdvTo/hjKKCi38exuisY7rzLTlJk+BQmkeiW0F90s 6Dq+ti1IK8sSk6ae6PvCB6DDjZwm04RAvIJSx46MUrPc8qnDTU5qT3grN/u2GbCRBcjT lhtBv1PFDqSLbcBmxNWI2qG4Ga/MUi8D8jOwRz5uh3tNZ7XfkianMRtWlUMqjGk4Hx23 yJTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MEAqqvBG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id j9-20020a170903024900b001d0513ec98csi1233350plh.224.2023.12.07.06.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 06:24:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MEAqqvBG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D760E8033888; Thu, 7 Dec 2023 06:24:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443347AbjLGOYQ (ORCPT + 99 others); Thu, 7 Dec 2023 09:24:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443199AbjLGOX7 (ORCPT ); Thu, 7 Dec 2023 09:23:59 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97EBA30DB for ; Thu, 7 Dec 2023 06:20:56 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-54c79cca895so12250a12.0 for ; Thu, 07 Dec 2023 06:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701958854; x=1702563654; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GkRewiu/NZNFWUxZGqBol41tT6ZsnLqbUhftzqAc+jE=; b=MEAqqvBG99bOv9gYMpP2Qo4DQNDbq0xm69Wc707OAVXHOGS76Oti4rMXUdVp/2kBWp Z1lNl4UW84d+7rg2LDGfLya0Oi2N3CBkAl25y+hdUHilYo6E/Jupv8D8ofcjsrF157+6 kYqbXC+V8shxRycKm9S8xtGvBMfZXYoFMhlO+GtlThmfwLIsnYqKOp8+gFOm0YkgM8LC L9wri7O8KBdfyZpPVVYU/AU6jaxzBcsRAcEb86v+NTMvDVbwFAO1wslrhzmjUNdgRMh6 SjwEHRGZTx45BedVgHZGk4O9yo63BDNj3ugEQLUgmjG2hcV2lgmEiQpj0GpYQzZoXrNn aK+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701958854; x=1702563654; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GkRewiu/NZNFWUxZGqBol41tT6ZsnLqbUhftzqAc+jE=; b=DZLIPr/ArrEjdpRQGamYrC6t0Cvx45Z2K/eVRt09qwS/5GuANZtGdfPfw96tQ0yIL7 /0WAfghXQArJOf2dOlaeSyXYVj5rTxONCKwhQ1EGhQ6+vISafqa9b26vfut8UAworkNV vSHjPTlGEIyeDTc8D8OTPxWkvnS7m95+qjccSfEzs8+7wx3qhzmkBQMEV+lecpC4QuJ7 9PpC63R7i1nd3TeaCHjYI/5mXPMjpBvcRNskfNcCVEpJu2JNGUQwwN555tX/OzbYiPsc AV5O3PqOMg5Pj0acvbyb2a3S5/j+OyCN7Yd/Z5T5wl1WbjeJJgg/h48Qlrk8pvUCwVJ0 NrIA== X-Gm-Message-State: AOJu0Yx2/SUK8n7JMEpTRLE+pZFkrIMVnzi4HsuQ0vuQJVuPFfAdISE2 4BmVWfY0Qs5dPzGNA/9v/x45Uu9O0o2LgtvMiYMPKg== X-Received: by 2002:a50:c35d:0:b0:54c:79ed:a018 with SMTP id q29-20020a50c35d000000b0054c79eda018mr252385edb.2.1701958854365; Thu, 07 Dec 2023 06:20:54 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eric Dumazet Date: Thu, 7 Dec 2023 15:20:43 +0100 Message-ID: Subject: Re: KMSAN: uninit-value in ip_route_output_key_hash_rcu (4) To: xingwei lee Cc: syzbot+549e451574ba8bfd0fd6@syzkaller.appspotmail.com, davem@davemloft.net, glider@google.com, kuba@kernel.org, Alexey Kuznetsov , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, yoshfuji@linux-ipv6.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Thu, 07 Dec 2023 06:24:36 -0800 (PST) On Thu, Dec 7, 2023 at 2:36=E2=80=AFPM xingwei lee = wrote: > > Hello > > I reproduced this bug in the latest upstream linux with repro.c and repro= .txt > > When fuzzing the latest upstream linux 6.7-rc4, the following crash > was triggered. > HEAD commit: bee0e7762ad2c6025b9f5245c040fcc36ef2bde8 > > If you fix this issue, please add the following tag to the commit: > Reported-by: xingwei Lee > > console_log: https://gist.github.com/xrivendell7/195eb3c1946ea466f9d8f597= 7b90c6ed#file-console_log > report: https://gist.github.com/xrivendell7/195eb3c1946ea466f9d8f5977b90c= 6ed#file-report > kernel commit: bee0e7762ad2c6025b9f5245c040fcc36ef2bde8 > kernel config: https://syzkaller.appspot.com/text?tag=3DKernelConfig&x=3D= ce27066613dacbb6 > repro.c: https://gist.github.com/xrivendell7/195eb3c1946ea466f9d8f5977b90= c6ed#file-repro-c > repro.txt: https://gist.github.com/xrivendell7/195eb3c1946ea466f9d8f5977b= 90c6ed#file-repro-txt > > In the lasted kernel: bee0e7762ad2c6025b9f5245c040fcc36ef2bde8 the > crash likes below: > [ 209.523497][ T8593] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > [ 209.530316][ T8593] BUG: KMSAN: uninit-value in > ip_route_output_key_hash_rcu+0x1ee8/0x3810 > [ 209.533357][ T8593] ip_route_output_key_hash_rcu+0x1ee8/0x3810 > [ 209.535524][ T8593] ip_route_output_flow+0x14f/0x320 > [ 209.537312][ T8593] ip_tunnel_xmit+0x1450/0x3e80 > [ 209.538995][ T8593] ipgre_xmit+0xd1c/0xe20 > [ 209.540511][ T8593] dev_hard_start_xmit+0x247/0xa10 > [ 209.542211][ T8593] __dev_queue_xmit+0x33b8/0x5130 > [ 209.543742][ T8593] __bpf_redirect+0xdd7/0x1600 > [ 209.545235][ T8593] bpf_clone_redirect+0x328/0x470 > [ 209.546807][ T8593] ___bpf_prog_run+0x2180/0xdb80 > [ 209.548288][ T8593] __bpf_prog_run512+0xb5/0xe0 > [ 209.549864][ T8593] bpf_test_run+0x482/0xb00 > [ 209.551178][ T8593] bpf_prog_test_run_skb+0x14e5/0x1f20 > [ 209.552612][ T8593] bpf_prog_test_run+0x6af/0xac0 > [ 209.553902][ T8593] __sys_bpf+0x649/0xd60 > [ 209.555000][ T8593] __x64_sys_bpf+0xa0/0xe0 > [ 209.556114][ T8593] do_syscall_64+0x44/0x110 > [ 209.557249][ T8593] entry_SYSCALL_64_after_hwframe+0x63/0x6b > [ 209.558676][ T8593] > [ 209.559232][ T8593] Uninit was stored to memory at: > [ 209.560528][ T8593] ip_tunnel_xmit+0x1161/0x3e80 > [ 209.561676][ T8593] ipgre_xmit+0xd1c/0xe20 > [ 209.562711][ T8593] dev_hard_start_xmit+0x247/0xa10 > [ 209.563864][ T8593] __dev_queue_xmit+0x33b8/0x5130 > [ 209.564963][ T8593] __bpf_redirect+0xdd7/0x1600 > [ 209.566044][ T8593] bpf_clone_redirect+0x328/0x470 > [ 209.567151][ T8593] ___bpf_prog_run+0x2180/0xdb80 > [ 209.568184][ T8593] __bpf_prog_run512+0xb5/0xe0 > [ 209.569187][ T8593] bpf_test_run+0x482/0xb00 > [ 209.570201][ T8593] bpf_prog_test_run_skb+0x14e5/0x1f20 > [ 209.571308][ T8593] bpf_prog_test_run+0x6af/0xac0 > [ 209.572284][ T8593] __sys_bpf+0x649/0xd60 > [ 209.573131][ T8593] __x64_sys_bpf+0xa0/0xe0 > [ 209.574010][ T8593] do_syscall_64+0x44/0x110 > [ 209.574902][ T8593] entry_SYSCALL_64_after_hwframe+0x63/0x6b > [ 209.576008][ T8593] > [ 209.576456][ T8593] Uninit was created at: > [ 209.577301][ T8593] slab_post_alloc_hook+0x129/0xa70 > [ 209.578284][ T8593] kmem_cache_alloc_node+0x5e9/0xb10 > [ 209.579233][ T8593] kmalloc_reserve+0x13d/0x4a0 > [ 209.580177][ T8593] pskb_expand_head+0x226/0x1a00 > [ 209.581096][ T8593] skb_ensure_writable+0x3d3/0x460 > [ 209.582015][ T8593] bpf_clone_redirect+0x17f/0x470 > [ 209.582963][ T8593] ___bpf_prog_run+0x2180/0xdb80 > [ 209.583859][ T8593] __bpf_prog_run512+0xb5/0xe0 > [ 209.584725][ T8593] bpf_test_run+0x482/0xb00 > [ 209.585556][ T8593] bpf_prog_test_run_skb+0x14e5/0x1f20 > [ 209.586527][ T8593] bpf_prog_test_run+0x6af/0xac0 > [ 209.587347][ T8593] __sys_bpf+0x649/0xd60 > [ 209.588058][ T8593] __x64_sys_bpf+0xa0/0xe0 > [ 209.588802][ T8593] do_syscall_64+0x44/0x110 > [ 209.589613][ T8593] entry_SYSCALL_64_after_hwframe+0x63/0x6b Please double check the latest net tree.