Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89D4B1D7E5C; Sat, 12 Sep 2026 15:10:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789225860; cv=none; b=SdD7xymOfUUP4ZTASIErlIuR+mp+LqitltyLYB7EdRX0HaJCLpiYU/hEAhx07AouzPW5Zm4V3/okUWaY+8pUhqaieJ+RdRcgdo8hxwd38D1xHFJcpJaru53FoHRrxtDFAN89OKNiiCkbaU1cs/l0ZMZig967I+YDebQaRb8HU90= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789225860; c=relaxed/simple; bh=GG71TdtIX4MclSQ867eH+DXe3wPCdnYsasHDi6oA2lA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Bp+mHrF1sMHUH1H4ab5HBS/vrC4/0ckYM69mIzQA24FOd8uXP60L1AS9/b5Ut911mtwyCCQ5Dc8sS0tim71DVQkH/uslqpR/5LhBDXHfFMPu4o7axrR/dxT2+OU1HhE2d/iZ46oQvDAv31kvLGvpDPQlIoiXNj624VZAfsWkAAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Jxl/3EJr; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Jxl/3EJr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44D911F000FF; Sat, 12 Sep 2026 15:10:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789225859; bh=YMF6PsquBW0tqKz4Hu6tJc3yTuDSHuElRFLtPMYOqwI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Jxl/3EJrafIvCUTRqDXKwUDV+rR2dm9Rdjc8btHw0AMp/HEHXWGGPWsxWy62LC/xo YMo8MuvC+lKk4PqKoQmP8cqnq4TepnuifXyXKdHWFEex74cDR8ZKZ52MiVUfOigYVX twiEWU1ARKV/jxCYyRQG3DLxR3voQVqgbR14wWlQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ido Schimmel , Nikolay Aleksandrov , "David S. Miller" , Sasha Levin Subject: [PATCH 6.6 1285/1424] vxlan: mdb: Adjust function arguments Date: Sat, 12 Sep 2026 09:01:57 +0200 Message-ID: <20260912065636.052207536@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065607.279695368@linuxfoundation.org> References: <20260912065607.279695368@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ido Schimmel [ Upstream commit ff97d2a956a142bc0383f52560dd46e003c216dd ] Adjust the function's arguments and rename it to allow it to be reused by future call sites that only have access to 'struct vxlan_mdb_entry_key', but not to 'struct vxlan_mdb_config'. No functional changes intended. Signed-off-by: Ido Schimmel Acked-by: Nikolay Aleksandrov Signed-off-by: David S. Miller Stable-dep-of: bc2dc66a6693 ("vxlan: mdb: Fix use-after-free in vxlan_mdb_flush()") Signed-off-by: Sasha Levin --- drivers/net/vxlan/vxlan_mdb.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/vxlan/vxlan_mdb.c b/drivers/net/vxlan/vxlan_mdb.c index eb919fc05cdf9..b2d6b28e95139 100644 --- a/drivers/net/vxlan/vxlan_mdb.c +++ b/drivers/net/vxlan/vxlan_mdb.c @@ -371,12 +371,10 @@ static bool vxlan_mdb_is_valid_source(const struct nlattr *attr, __be16 proto, return true; } -static void vxlan_mdb_config_group_set(struct vxlan_mdb_config *cfg, - const struct br_mdb_entry *entry, - const struct nlattr *source_attr) +static void vxlan_mdb_group_set(struct vxlan_mdb_entry_key *group, + const struct br_mdb_entry *entry, + const struct nlattr *source_attr) { - struct vxlan_mdb_entry_key *group = &cfg->group; - switch (entry->addr.proto) { case htons(ETH_P_IP): group->dst.sa.sa_family = AF_INET; @@ -504,7 +502,7 @@ static int vxlan_mdb_config_attrs_init(struct vxlan_mdb_config *cfg, entry->addr.proto, extack)) return -EINVAL; - vxlan_mdb_config_group_set(cfg, entry, mdbe_attrs[MDBE_ATTR_SOURCE]); + vxlan_mdb_group_set(&cfg->group, entry, mdbe_attrs[MDBE_ATTR_SOURCE]); /* rtnetlink code only validates that IPv4 group address is * multicast. -- 2.53.0