From mboxrd@z Thu Jan 1 00:00:00 1970 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 7890732B106; Sat, 30 May 2026 17:32:49 +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=1780162370; cv=none; b=doDnSRxsfoCq4ZfkX1hCq0HHMitRFP6dK16xEyOKIwMaQrIWyKvN4bEC6gDk+pdtW9cupdEW+NPoySOPEQ3ZTgKkVExrZ8iCCR3n+FuKm5geTBHXsVPiz+E3iE9GqEDZnS80/nwqyFCQPdmqMIZRvT3xKUUPIZr7ATdLBPny5SQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780162370; c=relaxed/simple; bh=QFw+ZPOTEjrLdHiJOAIbijvJIOpAQcuMPJ4GOSDrKmc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MAiZS5Njh9wdwPxowJ4PBuyc/R4Ra83GQABtQR+HO84VYS+VK5hraLAoY2XUGX0aOHJhrmzI+hg6tZst0iJeyE/QVJp6Jegew9/9Xaba2bz+4kx4AFnTAec8GcXkDWztS2QLa3xLYaE08TFHDE5FF+G/KlY5gZCWPYrcBFiWfV0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Bq7sxi4w; 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="Bq7sxi4w" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC3DC1F00893; Sat, 30 May 2026 17:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780162369; bh=F1GRNvUDnwpSV9bvOM6YWs8Zb7gtUlFbB8hI6MH0i60=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Bq7sxi4wUlAActiLghD2cmYBHOY0PuEWSqSXFio71Jcv8ns1wljTfFl+YBUBdwSXZ Rcnk6Ag0Gzdsfx5rEs9sTMtBQ1akWdRP/nXT45uN96NcZ64C3CJjy9gVHVTmXwUJRr /PcYaI6kjCn2Ju7c8hqZukZV3QmdeWHk/7TF+TbM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marcin Szycik , Aleksandr Loktionov , Simon Horman , Tony Nguyen , Jakub Kicinski , Rinitha S Subject: [PATCH 6.1 862/969] ice: fix setting promisc mode while adding VID filter Date: Sat, 30 May 2026 18:06:26 +0200 Message-ID: <20260530160324.474394433@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160300.485627683@linuxfoundation.org> References: <20260530160300.485627683@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.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marcin Szycik commit ebc8de716c9ec2be384abdc2dd866da26c6580d1 upstream. There are at least two paths through which VSI promiscuous mode can be independently configured via ice_fltr_set_vsi_promisc(): - ice_vlan_rx_add_vid() (netdev op) - ice_service_task() -> ... -> ice_set_promisc() Both paths may try to program promiscuous mode concurrently. One such scenario is: 1. Add ice netdev to bond 2. Add the bond netdev to bridge 3. ice netdev enters allmulticast mode (IFF_ALLMULTI) 4. Service task programs promisc mode filter 5. Bridge -> bond calls ice_vlan_rx_add_vid() Crucially, ice_vlan_rx_add_vid() fails if ice_fltr_set_vsi_promisc() returns any error, including -EEXIST. This causes VLAN filtering setup to fail on the bond interface. ice_set_promisc() already handles -EEXIST correctly. Fix by adding the same -EEXIST check to ice_vlan_rx_add_vid(): if the promisc filter is already programmed, continue without returning error. Fixes: 1273f89578f2 ("ice: Fix broken IFF_ALLMULTI handling") Cc: stable@vger.kernel.org Signed-off-by: Marcin Szycik Signed-off-by: Aleksandr Loktionov Reviewed-by: Simon Horman Tested-by: Rinitha S (A Contingent worker at Intel) Signed-off-by: Tony Nguyen Link: https://patch.msgid.link/20260515182419.1597859-4-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -3616,7 +3616,7 @@ ice_vlan_rx_add_vid(struct net_device *n ret = ice_fltr_set_vsi_promisc(&vsi->back->hw, vsi->idx, ICE_MCAST_VLAN_PROMISC_BITS, vid); - if (ret) + if (ret && ret != -EEXIST) goto finish; }