Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1651767rdb; Thu, 7 Dec 2023 05:28:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEl4ST+p0QJIZkFMfjmXyxe1+hU5VE/gBMafkbcuzZoOq444vuO6be8OOdayN/I6UKbvqN6 X-Received: by 2002:a17:902:ecc7:b0:1d0:b503:2edb with SMTP id a7-20020a170902ecc700b001d0b5032edbmr2336890plh.69.1701955694459; Thu, 07 Dec 2023 05:28:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701955694; cv=none; d=google.com; s=arc-20160816; b=bY9+lK+EI7E0hlXQNdmy2vD0BHl2MWVKksLQmAT0ZIHhKBqUKl180TvQeMT0lCNnZv d9owM1fOXb4Pj69mQCnxzYa7/3V8IBY7SmOhRrfePW1hTOP/qHuCM928NFnsloY0TGER V4va35MNamutYrBdq6ic/oBvxTR2Y3k0BlJ0XzHFFVf9b7Ynb8/0bjXTVJDs0DXgdEF8 Yd+CM02Bx/6d6XSeFOubIlaiMtYlzOw7qqhQO+6E+Sw0OMag7kEHdmqrpJz1fGcrNrD3 5AtU0Bc9/hwHzIEk9UPPUXzKIDyUZ4mJeoHexMvfq7J8mtVbV4l3ZLCsiQMQgZDYOtm4 VlUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=qy8bCqLkc/ug6mEJ+c+F03iEuHRroYlHNOEVG+qZwYo=; fh=z5yqs4hWWBo/kRM7r4d98WKjiX6oCGOGhjYx3164z08=; b=akq3V5focMEkdWlCyY0LgP/pTYHF0845ldQ7ZlSqDZrXclv/YY6F58l6SeCkSIzOeE R7vxwNPAyIhkVe+1LBapOCPUY24Oi8ViLjxI7TeumebwI16yMlKo+Xi5wyiLv+qcOyPb Dg+ANKZ6H6G4m3cCxVhV6Vix/82R/gXNu6RTrChVyzcmUlrfFpoViVxnnEGWqlrQOKOI 1Lucfd4Cn1kssHgPqf520YRA0iWaVB1jGq6yDOT98Hia/Qy6zyk0Q+G6KAcFVLY5G3/1 tqE15/JTlqWBt3ITs9BtaakBnyYEPpd7SiACEtuX4myxzwrL/U8UZwD5Rf5qi1BDUU57 6QXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RiJb+HL5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c3-20020a170903234300b001d0220f3f11si1203620plh.373.2023.12.07.05.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 05:28:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RiJb+HL5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 41DFD80764AC; Thu, 7 Dec 2023 05:28:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232784AbjLGN1x (ORCPT + 99 others); Thu, 7 Dec 2023 08:27:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229949AbjLGN1v (ORCPT ); Thu, 7 Dec 2023 08:27:51 -0500 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D4ECD5E; Thu, 7 Dec 2023 05:27:58 -0800 (PST) Received: by mail-pl1-x641.google.com with SMTP id d9443c01a7336-1d1e1edb10bso7683565ad.1; Thu, 07 Dec 2023 05:27:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701955678; x=1702560478; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=qy8bCqLkc/ug6mEJ+c+F03iEuHRroYlHNOEVG+qZwYo=; b=RiJb+HL5+viDEhmHm9O3FUeHqM/qPXpEZra2WZGCZoQBcKogQTDPdLLT8d7MfrmgLo FZtBVVEEPDGp8XGnRrkkW2LrTM4AeoKewUPnGNKWxsio2I/+Z2zrNwfhAAaouf5DKvFy th+qIB0fLfSznYqv1se3caQcIhL0LaAIuy5HCIbTCCn6yS2ILOEz6ulurAE9gli89TEP vczBVbmXIVDgVzwoZbJhU4m15b7auJUgCfvKSLmQ7Xt+DfNS2PaXsNpeN1ru/qv1FNcF Db5K4DBhvkZmFId3SBj4+/KsWR60QblA4uJ0t1VOlIX60LOD6RlGXFMIfTEhplR1kgIa LVuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701955678; x=1702560478; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qy8bCqLkc/ug6mEJ+c+F03iEuHRroYlHNOEVG+qZwYo=; b=d7TQFF4eCpCzJH4XAUuKop47qkVv1nMPAp3fuHVhxjGnAdf/Fzco+pOGdIv/8D96Bv 2tJBvWDUABRKvx2IN/75Jezub1cL6g0L0zx/lKN4vrVpUS+7DlN0oocU2jVdWdlO0f7W KwDef0Z0hVXxkYaKzouhaaJb8JZwjTye0FZmCQsEY4bsW9yARqZcsUQIV3nTu6EMUuBy hPOn/qQqxIMvXobEbWgodnPkCWny13YpxYAIWzdSBBQfwQ2phwWgw4Bhwv16OTsE7vUn zLCGAy+akaDKtMV78iHvqhxsudcRAIR1OtP453/wZwACwpgfvI3tMs22Am1dBHGtAl0r bJ2g== X-Gm-Message-State: AOJu0YybVIIpaOjeWuqIi44tMwtP4JJ3i2lhV7vYU8N/tkBzUb5Idtfu 7R2qqk4/L6PFSpXi6v30aZlZWwdU0vQwkt9OvHo= X-Received: by 2002:a17:903:32d0:b0:1d0:9c03:a7c9 with SMTP id i16-20020a17090332d000b001d09c03a7c9mr2471428plr.97.1701955677729; Thu, 07 Dec 2023 05:27:57 -0800 (PST) MIME-Version: 1.0 From: xingwei lee Date: Thu, 7 Dec 2023 21:27:46 +0800 Message-ID: Subject: KMSAN: uninit-value in ip_tunnel_xmit To: davem@davemloft.net Cc: dsahern@kernel.org, Eric Dumazet , 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" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 07 Dec 2023 05:28:11 -0800 (PST) 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/b41fbc928cd203823783fd90c98b6583#file-console_log report: https://gist.github.com/xrivendell7/b41fbc928cd203823783fd90c98b6583#file-report kernel commit: bee0e7762ad2c6025b9f5245c040fcc36ef2bde8 kernel config: https://syzkaller.appspot.com/text?tag=KernelConfig&x=ce27066613dacbb6 repro.c: https://gist.github.com/xrivendell7/b41fbc928cd203823783fd90c98b6583#file-repro-c repro.txt: https://gist.github.com/xrivendell7/b41fbc928cd203823783fd90c98b6583#file-repro-txt In the lasted kernel: bee0e7762ad2c6025b9f5245c040fcc36ef2bde8 the [ 199.471467][ T8590] ===================================================== [ 199.475015][ T8590] BUG: KMSAN: uninit-value in ip_tunnel_xmit+0x857/0x3e80 [ 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=f62d236e2fceaeb104f4e8f77d2324ef9da4b41b https://syzkaller.appspot.com/bug?extid=4a2c52677a8a1aa283cb If you fix this issue, please add the following tag to the commit: Reported-by: Yikebaer Aizezi