Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1940097lqa; Tue, 30 Apr 2024 04:07:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/4aPb2a3kLylGhw7iFAQsw7MxxawnzUGJxPn8q5SZemjlOrRpj7WxYACcHk+tl7MkkYSjgU3H1OI0z2hCS2M4lxM4zb/gjCKRPo6jtA== X-Google-Smtp-Source: AGHT+IEmt3jzwWfQLUMoq4A83M5B4Xs0Mudb4qDsI0O83VvXPfea4EeMUuMaM8SXvJD88HMnmzS3 X-Received: by 2002:a17:902:bb8d:b0:1e2:bc3c:bef6 with SMTP id m13-20020a170902bb8d00b001e2bc3cbef6mr2172095pls.37.1714475272796; Tue, 30 Apr 2024 04:07:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714475272; cv=pass; d=google.com; s=arc-20160816; b=RQRX8SN+k61zBQOqH0u1jew59leWLFPwmNltvXK+lfVeasNcAsq4Rrd+lLIa99Ybna mwyKbw2+W6+c5nuxUpq5kbskdb+vG5KBwMOODQaUiput88e8mg3Ve+2NjL9KD4r4Kv4z qkAowH/kQHiwb/XR/CiI+Nh6ALo4X7HFz1w4fF1xBBdlca7FXeWG39JKHdCAf9irYL2W SaD+5I/qmFY11+YC19xyPcyOaIXd+KJUveLjvaC/nb+uLzkF4VMqOVM9BefdCfnn6C3S oyiYwdh1Sa0rabvXwft6dmyOVvVhRxzoHqi7Leev9QpI0RqrAgqcrAj3XSiHR4Uyaciv VR2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=479+9n3x4cuBmKHOomGQFmMun7aOPyQx0HKnJJwE/uc=; fh=URh0+TbqiWqCwU4oJCLwHMHLJgXKMgDwTFQhisirpLU=; b=iYVFXTFGTJz0UFcpdpOArqZjQGepUr/Jeh5A6hCfDWzQfKt0qfVA1wkhIgXBn7YXgi WTY1V1S+pWCzB7ahJPGuFkuTelK9c93fGepMfaoq/44+WMqUwHrqiQnpNS3P0wVk7xm0 WFbtgrSa37Ccx40WG5/0n5nhKO6Rqv/WocJrHvCTVeiM6kdZ05o6S9Zhb67dyXEYT5/v a0SUb7SSYxcyhLI1ZpkEOswVxPkWnP6DJ6BEVuIglPOJ7Ylu/BB1Jt7qxFed2fmcOVQ3 +A/jm0yLOAIVr5GJMdoFli4rwRZo+wOHutx28DA2C8M8xRztSefYwuD28hHkmMFp4Fka bwGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VLIiCAwa; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-163821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q14-20020a170902a3ce00b001ec32cbe1b5si1332054plb.608.2024.04.30.04.07.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 04:07:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VLIiCAwa; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-163821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 68531282347 for ; Tue, 30 Apr 2024 11:07:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCB1312D77B; Tue, 30 Apr 2024 11:07:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VLIiCAwa" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 6D73A1E50A for ; Tue, 30 Apr 2024 11:07:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714475248; cv=none; b=M10QUPCMOB5ERsm2PvTF4lmi35/EkvGgD8udkW+bPMHthmZkSPBHZOFqOLBaYpwwEb5NltM5trJ3+/QUAWkvDZ6rrqLblX5x+2DfzV9DJoELPPUmkSHagKS96QaKSTcgmgjnZyXgh7ZJ+z1klWJK2PftWSQwmVMgAowBeoFJ9Z4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714475248; c=relaxed/simple; bh=2RAQXx9Hs2V88qI0iAiCTAiB8WYUsdO56+IVGIPnsSE=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=svjVqGrPbxigwlBUfYzBvF+/2ajtdxfhJWwLkeKtF5BxGg698zjapE7/T1iUCHm7tFXjUD7UKx7J54KP0svIZfp8ICnEHQBwRXW64mQHJ+JqyBvPkZUOb/kKJMkcYd9lBtrgPf6dqPrqpL2b3UJ7QRS+nNDkOyaY19ZkRiHUukc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=VLIiCAwa; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714475246; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=479+9n3x4cuBmKHOomGQFmMun7aOPyQx0HKnJJwE/uc=; b=VLIiCAwaTQemw/dB7IQi/lQ6oCx5c7Hg73O0kLBZtdipOtt9qb1uxubGB51+2KlD71YbPn 2fLO5jjcjBEfLYAlzNnzbQi09gNc0a7CqyikEmqUoHrDTkKs8XrsB+29hmi8KCYUc1RNjQ 4y5GdWEgLP03mbPiM58K7J2tLZ9/50o= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-643-7pmW1EF_NOmuhxSyOmw4Xg-1; Tue, 30 Apr 2024 07:07:24 -0400 X-MC-Unique: 7pmW1EF_NOmuhxSyOmw4Xg-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-416640b7139so6678015e9.1 for ; Tue, 30 Apr 2024 04:07:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714475243; x=1715080043; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=479+9n3x4cuBmKHOomGQFmMun7aOPyQx0HKnJJwE/uc=; b=KNGYOGcpz6PhgiYF9w3nyhQFKkJRJ26jrQD3tqg31ayw9cwNMd3lc1sPrDZmTGkH+B VgIFD/ocf3eQeASWtLCTBh02nj7rD16RkdQZb5eeONzTJgpJwGPhNWiDQuVJz8hqD7I8 KSIrDDgzUOyuVEGxsfyl65J8xcDglBCgb6BacDim5C6qpXhB0qx4Y04WKhOmpEgzmKm3 uuKwqDIntUxOOj+BHSE+aOWgNDyUmPKH9HgwLssiVZ5ibTG/9gh3tVPXTSlkd4HyxatU pj4CEkUCFxT+SMevrHhEBilKUcdedzaX+kFQrcuudw8yeuq3VWr/u08TQlO5GYEVnqLT M8KA== X-Forwarded-Encrypted: i=1; AJvYcCUxGTykfzI4smfRjqdaTByYJEiUCT0+kZuo1R/wFiy/fnWA+UHaQGDZ59vxtVsFBiqSjDkm3QvoMfnQqtZvD7mhKdb71kJ/uzE1N0wH X-Gm-Message-State: AOJu0Yz4WSIP/MtfXwRgYeuFFEk2hhr7QZUCtel+/R75eHFObe4VlKoU h0mtVfBKLsLTCBFqMZbEuxHNHRm5X8idsqJ9jIJd8kzVG8s7bhP/1HQoVOFxNI7bQJ3VZdOyS96 wBuLR+tz8jQY4ZKNZyHfSfIlvvu4wJfP31i0nka2oO3nLSh4SzBBsWdtegKmiyg== X-Received: by 2002:a5d:5692:0:b0:34d:7d77:36fa with SMTP id f18-20020a5d5692000000b0034d7d7736famr1006353wrv.5.1714475243644; Tue, 30 Apr 2024 04:07:23 -0700 (PDT) X-Received: by 2002:a5d:5692:0:b0:34d:7d77:36fa with SMTP id f18-20020a5d5692000000b0034d7d7736famr1006332wrv.5.1714475243219; Tue, 30 Apr 2024 04:07:23 -0700 (PDT) Received: from gerbillo.redhat.com ([2a0d:3341:b0ae:6a10::f71]) by smtp.gmail.com with ESMTPSA id w5-20020a5d6805000000b0034c8b0354a6sm9179999wru.106.2024.04.30.04.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 04:07:22 -0700 (PDT) Message-ID: Subject: Re: [PATCH net 1/2] net: bridge: fix multicast-to-unicast with fraglist GSO From: Paolo Abeni To: Felix Fietkau , netdev@vger.kernel.org, Roopa Prabhu , Nikolay Aleksandrov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Linus =?ISO-8859-1?Q?L=FCssing?= Cc: bridge@lists.linux.dev, linux-kernel@vger.kernel.org Date: Tue, 30 Apr 2024 13:07:21 +0200 In-Reply-To: <20240427182420.24673-1-nbd@nbd.name> References: <20240427182420.24673-1-nbd@nbd.name> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKgG6ogVlLYeJa9WyfVMOHDF6f0wRjFjxVoPO6p/ZDkuEa67KCpJnXNYipLJ3MYhdKWBZw0xc3LKiKc+nMfQlo76T/qHMDfRMa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X6RW0XmA53PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sat, 2024-04-27 at 20:24 +0200, Felix Fietkau wrote: > 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. >=20 > Fixes: 6db6f0eae605 ("bridge: multicast to unicast") > Signed-off-by: Felix Fietkau > --- > net/bridge/br_forward.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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 =3D=3D p->dev && ether_addr_equal(src, addr)) > return; > =20 > - skb =3D skb_copy(skb, GFP_ATOMIC); > + skb =3D pskb_copy(skb, GFP_ATOMIC); > if (!skb) { > DEV_STATS_INC(dev, tx_dropped); > return; LGTM, but let's wait a little more time for Nikolay Acked-by: Paolo Abeni