Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp516266lqa; Sat, 27 Apr 2024 11:25:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYacIeZrLzjimb6IS714X7ZEY/oAKWLLFF0FlJtIdjqtsqDiCOiBbOrly8726DV9yGoZYEdcS3pYN5lm/f/BvM8s0BanYHAVfbSBQ0jw== X-Google-Smtp-Source: AGHT+IG/Y12UgzdHynyjkoLjNfAcEMEC1JZYgUhwP23zrMmfEepxz7pPO3dmsP6DOGwNN2ARon/r X-Received: by 2002:a05:622a:2516:b0:437:bedb:3ff with SMTP id cm22-20020a05622a251600b00437bedb03ffmr5550310qtb.27.1714242316997; Sat, 27 Apr 2024 11:25:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714242316; cv=pass; d=google.com; s=arc-20160816; b=NU0D2Yn5per14zgPYG7PS2dCZaUaJ68R8pJigfpe6nGoFJbREXXcPeyiSa8iLT2nZC FC2VD+WKSt7yg6zIeDCiah/exRCXU0I39GIsvOwauHZdmUSnUeSCbv4lnszz7acLwhuo rEnw7Kr20Mf6TJ1VMwnE6E7N/tuHRBy67AAuQ3k4b3vkr+R/xC+SHksQhT09CJ26EwdV fFRjXvELDiwMfE81CytNPx9YFMYF1okad5kqTCNIbB9q9eTIZv/I57LX+xe11vs5mcaU NZvH45f8nV8CyA/0/iS/m2fAa19l6ae7cRiZu2dlSvUgury43EVh13LIuh25lJ1mZy4q SJCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=mryOBMGyDjVCgxkOiJi6/7hI2yMziEkko+lbmm71JJA=; fh=d+1W4chOG8udZdrep68hzFcNOw1Nsj/mjKanLQmmKj4=; b=Rkwhz0OZInK3ZuRnQBHeKFRpO6+JvkCLow2iRGOaBMWiydNMxCD7x+LE8wWPfWbb0q +KoxvMt81ocoeiV7O0LAJTOb/BcvnTnFdQBIRic5uJdcmvvXMVm39X1Dh+lz5fYopR55 jGUcvtOsDcmERK/lcRnWl4SSkOKc9Uhdqe2cA1IPg0cwsUJit/Y/FwhfcDyIRossRy2A Y2t6mzOSQCiyKEOvvRBwLQvZE7GEwGHJLL8F0j3UMETYTt/raKBpwLQ8qKNuuGiemwDk S9gajO4cgKAyn9BFGKe27jGNM/CSQRyvDiI/Z2t2TXhZ6i8krcnFrSYizBsJfIKS8gcZ //9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=jvBjRyX6; arc=pass (i=1 dkim=pass dkdomain=nbd.name dmarc=pass fromdomain=nbd.name); spf=pass (google.com: domain of linux-kernel+bounces-161126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k7-20020ac85fc7000000b00438d78f664dsi19255341qta.325.2024.04.27.11.25.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 11:25:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=jvBjRyX6; arc=pass (i=1 dkim=pass dkdomain=nbd.name dmarc=pass fromdomain=nbd.name); spf=pass (google.com: domain of linux-kernel+bounces-161126-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B32A1C20F71 for ; Sat, 27 Apr 2024 18:25:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84130145B31; Sat, 27 Apr 2024 18:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b="jvBjRyX6" Received: from nbd.name (nbd.name [46.4.11.11]) (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 6205A14389A; Sat, 27 Apr 2024 18:24:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.4.11.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714242271; cv=none; b=AQyljcAym94BTaOPeev+1aBOzJomspYJz/u8qzzhJog3yrf/q8fdDeN+dt/sOmVHONTULFCPKJ8G78wngF+BJoKc+i5MW1CzQ6OKn9bfVMKvNACK1mehYQG22SiO1dT6Q796EfFeCfNnc62R4kiMG5WUsvj0WQzYrXp5nv4QWck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714242271; c=relaxed/simple; bh=G4qbu3HbZE/UnM3R1/lR8f8xJ+TyR3rhnFyLhZ55ENA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V4MmaQ9ZZijfyPnMwoNh4p4+jJw2WYt6BalesF16UJ96Fa/LyWism3PfurT9Dcdw5uQg+z8irJeexj+Pc9i2ZyWXIdHiEUdTiMJsx8zsi468Yrr0rzAdLQ7fWXWWTOb79VCE7Fduum0GJPC+XXNsN3wbSp9fNLf1g8mHTaFk33I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name; spf=none smtp.mailfrom=nbd.name; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b=jvBjRyX6; arc=none smtp.client-ip=46.4.11.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=nbd.name DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=mryOBMGyDjVCgxkOiJi6/7hI2yMziEkko+lbmm71JJA=; b=jvBjRyX6OALj+dpn3PoWl4Br3/ Ffm2f3e6sg5NlbhTriNJShgQBBaI4fcj/aq1GIcDNVNA0Kg4O3tZ0Esc5etXN8WSjPT52inVLQ38b 4QF00njGxHgFB5mKqickjtmKFZY8jnAIz92XRMOWr1+MB1PzEtXEFYMrfQ9D9cjM3jBY=; Received: from p54ae9c93.dip0.t-ipconnect.de ([84.174.156.147] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.96) (envelope-from ) id 1s0mik-008hL3-26; Sat, 27 Apr 2024 20:24:22 +0200 From: Felix Fietkau To: netdev@vger.kernel.org, Roopa Prabhu , Nikolay Aleksandrov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , =?UTF-8?q?Linus=20L=C3=BCssing?= Cc: bridge@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH net 1/2] net: bridge: fix multicast-to-unicast with fraglist GSO Date: Sat, 27 Apr 2024 20:24:18 +0200 Message-ID: <20240427182420.24673-1-nbd@nbd.name> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Calling skb_copy on a SKB_GSO_FRAGLIST skb is not valid, since it returns an invalid linearized skb. This code only needs to change the ethernet header, so pskb_copy is the right function to call here. Fixes: 6db6f0eae605 ("bridge: multicast to unicast") Signed-off-by: Felix Fietkau --- net/bridge/br_forward.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c index 7431f89e897b..d7c35f55bd69 100644 --- a/net/bridge/br_forward.c +++ b/net/bridge/br_forward.c @@ -266,7 +266,7 @@ static void maybe_deliver_addr(struct net_bridge_port *p, struct sk_buff *skb, if (skb->dev == p->dev && ether_addr_equal(src, addr)) return; - skb = skb_copy(skb, GFP_ATOMIC); + skb = pskb_copy(skb, GFP_ATOMIC); if (!skb) { DEV_STATS_INC(dev, tx_dropped); return; -- 2.44.0