Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1688577rdb; Thu, 7 Dec 2023 06:23:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGl4qrxWAAJcXcW1rAU8YGsWV9x4kyKsgHB7RTiWUY2g98FFSe+YQJUbVKTb7meYNUS//eb X-Received: by 2002:a17:902:650e:b0:1d0:6ffd:e2b5 with SMTP id b14-20020a170902650e00b001d06ffde2b5mr2957061plk.79.1701959019173; Thu, 07 Dec 2023 06:23:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701959019; cv=none; d=google.com; s=arc-20160816; b=OI/9YxTjBedX3j2Yh13UEUb980Dry+NbkceSzbBjVfVH8Mmx0M5eCD78kxg+9k2PMu nyJjEp3MupL2W3ClvIgsRTxFfDJRVI/+TFLpxcIXi1vfX4hh6Xd5zb19+0/Ww6J/k1DW F21Qsb9B3ZiWHpmW5orHU3Ndmw1lrAxoqy5Vr3ASG0W6tXUjvb6ekiac44/wQ10SCFa2 PXgmX+ryYwZmxpczN23gzf1JWsjA6GaWEgPZYghDhq/RUf3P16QydQDqBd0iitMOggyv AIoqvhW5itcfxRZTkbev7Y27PwQEslM1rBWfW19Ukg1DtZJXGhhCayzIqcHwMJNh5VzN GKzg== 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=cg+kyvs6whLnp94BpNVRhpcWLXdDwv5DFCjHXa8X9m8=; fh=JG7nFc8Onc8/KMkOfJtwxsy5o4lLjh0llpoYAbwvbfA=; b=tPhosaazxXxS0q9F3ds8SSIEJAKbp6UaZyToahhYXLTkxQso8NSlgQJcCOqUYWgw0Z dT0wRccuSevQVEfH4ZxRdP8atSiNEWNNIQiAT03lkwvwZGZxz2/7r2aUF6YCrCBDXkvU s0u9TVvVD383hBujvztUN1Kq7GyzrmaVFkrzjZx+8rPVJyFeEQJoP/Kz9JPoZFvp4M4k p8acedPonep4/8FIbV7LV31Pog0cI77Fp99BCqc3RBVzS1Jj2lto36N+QEAAK/Uyojqz moBiJB4S4/d2krNAHiiNKdnqazMlvNfgUqkcGnIOb862rsA8j3w2cX8EbNErE/7MaQT3 zpYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hzdNbJ1m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q10-20020a170902daca00b001d0b1392c7fsi1276664plx.350.2023.12.07.06.23.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 06:23:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=hzdNbJ1m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 847898042039; Thu, 7 Dec 2023 06:23: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 S1443362AbjLGOXS (ORCPT + 99 others); Thu, 7 Dec 2023 09:23:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443216AbjLGOXF (ORCPT ); Thu, 7 Dec 2023 09:23:05 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B022D7B for ; Thu, 7 Dec 2023 06:20:00 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-54744e66d27so12194a12.0 for ; Thu, 07 Dec 2023 06:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701958797; x=1702563597; 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=cg+kyvs6whLnp94BpNVRhpcWLXdDwv5DFCjHXa8X9m8=; b=hzdNbJ1mORZNZ6W4cIJfjbmvTEFc5XJQTz7NXrjj3Fij+klTwEv6EgPuDJacDxmHh1 ZNcWM/c0TIogF5o0FnpRtlpp6o9rpYPK7vnQd3IqAfn2QzZAiSfDOuKoWYfKkpf2EXCD I/jSBXELtN7jeYJFr/XRRlbMCPvsQijd06h9dKiRQ6qXIvLJIFrBElwC+HreJAhyFW3k rWTb24Drjbl5OBZahiHMT4I0eiChgqbceN46bJrrrfrIbyyTmL2joDelAOxaTWb9rjMA yijnJMIhSQOq0SVPc91tzpXBRTSyMfrUa8QvtIuHEKPKiU03FX5neMEZvjZUGAmgxdwK AZsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701958797; x=1702563597; 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=cg+kyvs6whLnp94BpNVRhpcWLXdDwv5DFCjHXa8X9m8=; b=CQivT/8MYY38zQCFZZJFY0QGwu1OPAxdye3FC7uVDjvlwGe5jn2AmdZGEzKJkZ+m9H d33zgIeOM01iBJPxAQU7Nlr64AVuph1PDedVvvb+xHWoAEC5xnh4G+tPXwzQ4teEUdW+ xAepWaKBliLsfPeUcHo5i8mtZOZJknHqJutnCqaDVpN3iwRpWj4sH5b4bawJAzqyKPjo vQui/nFsfMamanMrnCeSYSIIlRUMEftG1DyPXgr5WCRuaJ6PLahS9QXHFTlI0QcOgUPL THG3mofxgiegnRA69s8Ys3pw2D7F/8dzspp2bm9PvxBTGji8jQLoDNkSEKluRU4dIFOw QjBA== X-Gm-Message-State: AOJu0YzglMjAtEIJhg0MrzlJtpHIjlCPNUtSA5tpJV2esC78+DNBjJJ+ 41V+Rgy4f6gc8WSwo8kJhb8eDzt/Zr1BJepeOpUZHQ== X-Received: by 2002:a50:9f89:0:b0:54b:bf08:a95f with SMTP id c9-20020a509f89000000b0054bbf08a95fmr229791edf.6.1701958796595; Thu, 07 Dec 2023 06:19:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Eric Dumazet Date: Thu, 7 Dec 2023 15:19:45 +0100 Message-ID: Subject: Re: KMSAN: uninit-value in ip_tunnel_xmit To: xingwei lee Cc: davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller@googlegroups.com, syzbot+4a2c52677a8a1aa283cb@syzkaller.appspotmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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]); Thu, 07 Dec 2023 06:23:35 -0800 (PST) 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 agentk.vger.email On Thu, Dec 7, 2023 at 2:27=E2=80=AFPM xingwei lee = wrote: > > Hello, > > 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/b41fbc928cd203823783fd90= c98b6583#file-console_log > report: https://gist.github.com/xrivendell7/b41fbc928cd203823783fd90c98b6= 583#file-report > kernel commit: bee0e7762ad2c6025b9f5245c040fcc36ef2bde8 > kernel config: https://syzkaller.appspot.com/text?tag=3DKernelConfig&x=3D= ce27066613dacbb6 > repro.c: https://gist.github.com/xrivendell7/b41fbc928cd203823783fd90c98b= 6583#file-repro-c > repro.txt: https://gist.github.com/xrivendell7/b41fbc928cd203823783fd90c9= 8b6583#file-repro-txt > > In the lasted kernel: bee0e7762ad2c6025b9f5245c040fcc36ef2bde8 the > [ 199.471467][ T8590] =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 > [ 199.475015][ T8590] BUG: KMSAN: uninit-value in ip_tunnel_xmit+0x857/0= x3e80 > [ 199.478180][ T8590] ip_tunnel_xmit+0x857/0x3e80 > [ 199.480541][ T8590] ipgre_xmit+0xd1c/0xe20 > [ 199.482393][ T8590] dev_hard_start_xmit+0x247/0xa10 > [ 199.484530][ T8590] __dev_queue_xmit+0x33b8/0x5130 > [ 199.486433][ T8590] __bpf_redirect+0xdd7/0x1600 > [ 199.488258][ T8590] bpf_clone_redirect+0x328/0x470 > [ 199.490250][ T8590] ___bpf_prog_run+0x2180/0xdb80 > [ 199.491997][ T8590] __bpf_prog_run512+0xb5/0xe0 > [ 199.493691][ T8590] bpf_test_run+0x482/0xb00 > [ 199.495215][ T8590] bpf_prog_test_run_skb+0x14e5/0x1f20 > [ 199.497026][ T8590] bpf_prog_test_run+0x6af/0xac0 > [ 199.498701][ T8590] __sys_bpf+0x649/0xd60 > [ 199.500029][ T8590] __x64_sys_bpf+0xa0/0xe0 > [ 199.501411][ T8590] do_syscall_64+0x44/0x110 > [ 199.502757][ T8590] entry_SYSCALL_64_after_hwframe+0x63/0x6b > [ 199.504463][ T8590] > [ 199.505159][ T8590] Uninit was created at: > [ 199.506344][ T8590] slab_post_alloc_hook+0x129/0xa70 > [ 199.507690][ T8590] kmem_cache_alloc_node+0x5e9/0xb10 > [ 199.509191][ T8590] kmalloc_reserve+0x13d/0x4a0 > [ 199.510411][ T8590] pskb_expand_head+0x226/0x1a00 > [ 199.511657][ T8590] skb_ensure_writable+0x3d3/0x460 > [ 199.512905][ T8590] bpf_clone_redirect+0x17f/0x470 > [ 199.514135][ T8590] ___bpf_prog_run+0x2180/0xdb80 > [ 199.515325][ T8590] __bpf_prog_run512+0xb5/0xe0 > [ 199.516479][ T8590] bpf_test_run+0x482/0xb00 > [ 199.517580][ T8590] bpf_prog_test_run_skb+0x14e5/0x1f20 > [ 199.518901][ T8590] bpf_prog_test_run+0x6af/0xac0 > [ 199.520015][ T8590] __sys_bpf+0x649/0xd60 > [ 199.520996][ T8590] __x64_sys_bpf+0xa0/0xe0 > [ 199.521949][ T8590] do_syscall_64+0x44/0x110 > [ 199.522926][ T8590] entry_SYSCALL_64_after_hwframe+0x63/0x6b > > and I notice the problem is reported at 2018/2020 and seems fixed twice. > > https://syzkaller.appspot.com/bug?id=3Df62d236e2fceaeb104f4e8f77d2324ef9d= a4b41b > https://syzkaller.appspot.com/bug?extid=3D4a2c52677a8a1aa283cb > > > > If you fix this issue, please add the following tag to the commit: > Reported-by: Yikebaer Aizezi I think a fix was merged into the net tree yesterday, please double check. 80d875cfc9d3711a029f234ef7d680db79e8fa4b ipv4: ip_gre: Avoid skb_pull() failure in ipgre_xmit()