Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1836443rwb; Fri, 28 Jul 2023 16:14:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlHEonTgMAmzZHNaNi122cCcQ22u6XnH2mA5uScteTl5Skq1MqkNkhBxAgns6dtsbn/qoo+w X-Received: by 2002:aa7:d40b:0:b0:522:37f1:5fd0 with SMTP id z11-20020aa7d40b000000b0052237f15fd0mr2883775edq.5.1690586043835; Fri, 28 Jul 2023 16:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690586043; cv=none; d=google.com; s=arc-20160816; b=KoEXBvspsI7WTs+IG1FhC+yUcXKargFRmPiKHb2+YDUE3Iw27UW37fmma9CCe1PSPz XcRaKKiCfrmEBA9vT0XpMbfaVxn87jDYV79fuMNAeT+QYpRX5y/hhchVp+mJsKJ+sWzG Jp4QuLUb5TEJD9lxUf7xA1Zncq3EpATMdFIySNztqwoQgR6hacMYaObkjAXJJig7RP89 Q/jnVu9YeQJ0SvR+vuEaPjj8Lc9sJJ7ODgWlcrsQB9BMblY9b9so5yG4uPpJLr9ne2tW WYgOMhMqYROu0vVpcfTjB1GOUcRebg9504ulr+UPYHgY/pW0QNtiJjJ6rndSFEsaGVwb ThmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=w/n44WWEzsmCHjtTbAcG1V9mMTPpNrgP52VF/JNIwi8=; fh=2CSI++e+wahlpoaVsLiomp9QFIwIEJn/hb2AaGq49uE=; b=P6Sx5tEYdoBjXDhsWf5DumMjhMIbQLnlQXkVABEa6DDcL8dOO3iQ41Fp47jGnNpERs 9LX7pXmTTMtema8dPeuQn3LTP5GrhOuO6vjUJEqjod/Jy7Uqy4yBo9NENA1SJQFcTJfD +l81gHxna8esUD0LdivI+qQc/LbB2wilj5Wuxyj1yq3oncpQyCg8ys88X6nDkToLojKm OomVsCj+27z9mGT0GEYJZOcIOMPVOcncUm+MT/KK7VHAesHa8AUmAseMqtHf4SuuIRW8 HF4F3JS0ImEn/k9I79yM+Ekn8Wlz9jJTLfI9qZFdfo2z4AtW7USDlaAVEj+JhR/PguUB poKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cPSF9/ep"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020aa7cf12000000b0052230def6ffsi3639343edy.234.2023.07.28.16.13.37; Fri, 28 Jul 2023 16:14:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cPSF9/ep"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231226AbjG1VVs (ORCPT + 99 others); Fri, 28 Jul 2023 17:21:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjG1VVr (ORCPT ); Fri, 28 Jul 2023 17:21:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0712944A0 for ; Fri, 28 Jul 2023 14:21:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9350962204 for ; Fri, 28 Jul 2023 21:21:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90F58C433C8; Fri, 28 Jul 2023 21:21:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690579302; bh=edGCRJ0flhlER9HpXmivZeXp4EX2gRZndfukWqPCczg=; h=Date:Subject:To:References:From:In-Reply-To:From; b=cPSF9/epTXmcZRnCHhaUMiLiJ8LOggxO+jLjjYswTQq6KeDJb87VocGU/nH1hA67r JDx2V8N1xlNjJC1S7hYuG7Kd4ya6cRZGwo86dUxnV3W9912B9U/7Yj7f+icgNdit4F vO4rvUos63tF2xiZP9wLZ7OQmkzMLGCLNMIqyzN6jAYk5VoKpzhRsVGG6pWDQOsc4i iN4xLC8v9863JNmwvTnD3a1jnSXQET91vlNVbdn/wydGSnvWTEA9O0a+Gj8Y686Wq2 txrIWK+X/JZX29xv5utrtYOF6mtt+BeuHPJQhPxieN6Y0TkCOkG9GRybybr4UNJPDe gYIFYvArtw/3A== Message-ID: <7adc43f3-725d-84df-065d-7d77d03327f6@kernel.org> Date: Fri, 28 Jul 2023 15:21:40 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v3 1/1] net: gro: fix misuse of CB in udp socket lookup Content-Language: en-US To: Richard Gobert , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, willemdebruijn.kernel@gmail.com, tom@herbertland.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, gal@nvidia.com References: <20230727152503.GA32010@debian> <20230727153353.GA32089@debian> From: David Ahern In-Reply-To: <20230727153353.GA32089@debian> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/27/23 9:33 AM, Richard Gobert wrote: > This patch fixes a misuse of IP{6}CB(skb) in GRO, while calling to > `udp6_lib_lookup2` when handling udp tunnels. `udp6_lib_lookup2` fetch the > device from CB. The fix changes it to fetch the device from `skb->dev`. > l3mdev case requires special attention since it has a master and a slave > device. > > Fixes: a6024562ffd7 ("udp: Add GRO functions to UDP socket") > Reported-by: Gal Pressman > Signed-off-by: Richard Gobert > --- > include/net/gro.h | 43 ++++++++++++++++++++++++++++++++++++++++++ > net/ipv4/udp.c | 8 ++++++-- > net/ipv4/udp_offload.c | 7 +++++-- > net/ipv6/udp.c | 8 ++++++-- > net/ipv6/udp_offload.c | 7 +++++-- > 5 files changed, 65 insertions(+), 8 deletions(-) > I still think the text in the cover letter should be in this commit message. Code wise, it looks ok to me: Reviewed-by: David Ahern