From nobody Sun May 10 19:41:36 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gDCsX278wz6cr3l for ; Sun, 10 May 2026 19:41:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gDCsX1Grkz3W3s for ; Sun, 10 May 2026 19:41:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778442096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C7FpZeADhT0VtSnFfNZrRCMDVwQNvGo0aSAZjgmhqoc=; b=SNPMec+llm1f2SWshmpuSXy4a1a9k6vX1iRP027+5u9FW2OLfgxRnnI/f+oN2g7EHfEOQo gz1+XyXelNpiEIjL8XKDnnIbzBpH516vCxiLc+/Vq1tEk/pHU+cIth7L4rRLsVuxL+p7oi ntdCfxTL1KTvdxKr3kGYhJe2TSY4UOqPoPZjigCL4ETpsTJmHA8Nd/NXkjQyGq035yYt1I kx28pHuOyqvDEQYUW6FXqo/LhKSohcKjobKaes1HOFKSuO4t2x+Y78p1AwrLkAQAcxi3Fe r62ZtDQ46KFFPWo4XmXqG/mqw7srnQkqn5YmCZ7rtLLw7eGJ9zN08Dsn3MWe8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778442096; a=rsa-sha256; cv=none; b=CU9cZjN9xP0j6D9BjcRy9Q8kNKOsfZivjgVxqPqp802TfsNcrxGLpxUZb9GYa2vzL+vKN6 8X8dEZ0xJcMEvgPg3j5vxqmSdtAiZmeCGs981Sh1GF0B9IVvjk//Iei/cXrepOZHfDD7dt JWsftJSMQFx3ojPYWtOJyLNPskTTuVwwciRA8qilSQkwqklBs1jB3iuR8TaosgOs4MUnl/ ble7GWWU0JhByOoL1r+6ydUOQl8Ltms+wKuD1GRDFytn05tluGE3xKf5JXBUu2td8Jnqcg iuQWhwonUTxmddCH6nlWy6L+kOF/PO/msa108xgX3D5BzaOhvcc5/xJAYfZiRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778442096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C7FpZeADhT0VtSnFfNZrRCMDVwQNvGo0aSAZjgmhqoc=; b=WGIO1qtIcBXNfVtg6gbDB6uuYjY9FaZ2u0IuRyYOtUvLi2avsm7+9rwhVwhnCWV2OWD2br sXqQIDZ5xthvVxAtKW4E9ax5FABKYmCYcxVSg7t2LELTVy+0RgfNR71XEnG6PFxUlE3IAI jbCsaLTLDF4BdHSUYuYaxpTdMhwfUa2wu+h7/orjtp+XMlm+MMyWLxlUuc2C6AaIQsDJGL nCHEED/WtWD/rNKGrHuvc97aDvbZrCq1V70lyyfxjfw+SkW2vKme6scVJTJDKVzUGAsQX1 LDX7Htpe5SxB3COBOyFo/4aas1za4eT3yK8CV8YJrOdsJtQl2JETnnl9pj8StA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gDCsX0ptQzkgG for ; Sun, 10 May 2026 19:41:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1bef0 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 10 May 2026 19:41:36 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Pouria Mousavizadeh Tehrani Subject: git: 70ef02b5d3fd - main - if_geneve: Fix uninitialized variable use in geneve_udp_input() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pouria X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 70ef02b5d3fdbc4f51ea81404c4cbca310083ce6 Auto-Submitted: auto-generated Date: Sun, 10 May 2026 19:41:36 +0000 Message-Id: <6a00df70.1bef0.3cd82247@gitrepo.freebsd.org> The branch main has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=70ef02b5d3fdbc4f51ea81404c4cbca310083ce6 commit 70ef02b5d3fdbc4f51ea81404c4cbca310083ce6 Author: Pouria Mousavizadeh Tehrani AuthorDate: 2026-05-10 19:25:53 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-05-10 19:38:52 +0000 if_geneve: Fix uninitialized variable use in geneve_udp_input() Set the ifp variable as soon as soft_c becomes available so that interface statistics can be incremented. PR: 295129 Reported by: Robert Morris Fixes: e44d2e941e8e ("if_geneve: Add Support for Geneve ...") --- sys/net/if_geneve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/if_geneve.c b/sys/net/if_geneve.c index ab8b313e860a..59822045b77b 100644 --- a/sys/net/if_geneve.c +++ b/sys/net/if_geneve.c @@ -3021,6 +3021,7 @@ geneve_udp_input(struct mbuf *m, int offset, struct inpcb *inpcb, if (sc == NULL) return (false); + ifp = sc->gnv_ifp; if ((sc->gnv_flags & GENEVE_FLAG_RUNNING) == 0) goto out; @@ -3043,7 +3044,6 @@ geneve_udp_input(struct mbuf *m, int offset, struct inpcb *inpcb, if (error != 0) goto out; - ifp = sc->gnv_ifp; if (ifp == m->m_pkthdr.rcvif) /* XXX Does not catch more complex loops. */ goto out;