Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1986063rwo; Sun, 23 Jul 2023 05:25:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHd3O3URiSQd3dwOF5iOmgO3GPaEaq54Ho7I+6vh/oKiiIiSdCgE9cVdfmSt9GKEGgJKWMm X-Received: by 2002:a17:906:76d4:b0:988:882b:9a3 with SMTP id q20-20020a17090676d400b00988882b09a3mr7628181ejn.36.1690115125018; Sun, 23 Jul 2023 05:25:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690115125; cv=pass; d=google.com; s=arc-20160816; b=Psku/J6rkGB0WWLWMTmhR1UlZz4NK2rMBOgsAk45yLsBbgj7vw0VLyOZ9h+2R/ASDb I8x9wS60Zyjv4rDK3C5VrjT4GZiqBy7AkxuT5hveeXkswzwozY1ScQajXZfLRduYA5Qo ye818EOOABiQtq0rAg2Q94nIPYnICDEnJ/F8MLcahkvnwAfVHVnEX7aGrgMvtQCVJFuS zY2WywMf7gBT+ycNkeLzNk2g6fp16kISz8ZcqLxu2dkVNVqp5xMH/0sVAz0sQdTIadnd m2e0b6vGZB1yBMjWmETvcMBwfp8ZMXDFGXDNENtnWIB43jyNRoZN85CyWlLVXEtD2+8N n6mA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:to:subject:user-agent :date:message-id:dkim-signature; bh=gNxzL8V20kQoVIfw0BAEpTYkIyl6R6R3HUcV5MzsMgk=; fh=WaxDH6rsN3Wd9khijGKTD7Wsa+HV2fHl8LPc/olcnjY=; b=AgKFcfO+x9PKJ/4VYWmYOrnvCx+XBMh2pSuao6XY+CMGwKP2uw6pK315QSHdpAtnGg HdatTyLiHlUKr0mcECgE9jSlSPuGjhm1sMsOf32GpXYQDc6xXoQ10coTRaeiLHZqYHiD L4WbF3G9DEvVnLaeOLyF42dLi2tB0QLroi/hhWbW35uhYaZemOYo+yJT4k9gTvQHLe/q oG8h8P7LJbdU8I23jb14oz4LQGrBDW0y7wmHg8IEQHj8Sbzc2Ckp7vut2bMeVneLLVea 5bTMeeNrCB2Ymii9DOQOe4K1ZFv24Wum9Esh+oTkmOFRwfPXAHc80DVtJqB6PfgHb+k+ Ns+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=I5zV4VQe; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gq24-20020a170906e25800b00986560ae9a7si4918480ejb.307.2023.07.23.05.25.00; Sun, 23 Jul 2023 05:25:24 -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=@Nvidia.com header.s=selector2 header.b=I5zV4VQe; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjGWMHi (ORCPT + 99 others); Sun, 23 Jul 2023 08:07:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjGWMHh (ORCPT ); Sun, 23 Jul 2023 08:07:37 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2070.outbound.protection.outlook.com [40.107.94.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E340310F2; Sun, 23 Jul 2023 05:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X0jj3N+fkZRUllGHzO4nzasRKyOMrYDinaCJLSJarqptTWZO4Oe50uU0U6FVceUN0GZ9U+8tn9y621uo1l+cz3if1a0MLq+N6M7yryVyuNczSIyICS7PtgVKI/LWC8mvop2s0R5XF1tghCFXcejYFAhK+Kr8fxzvZFO86Zupk/AeSh4JMKiX62il6dQZym0r6axbFshPhop2FLJOL/ntX/luNfxBb9NppglOp0HanBVZzDJMOmGokT7ag6sff/dXbf+ssRxbVNwN2xP8U7k8PzZStw2ULJYV/w76RwAIPKFX4vnb5vejIWsjKNQpHddZ6YKMgZiRd1LSbZ8txb6Uhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gNxzL8V20kQoVIfw0BAEpTYkIyl6R6R3HUcV5MzsMgk=; b=IIxHWWZirow5kYv+yUmwZckSNdtvmMxmuWfk0Z1V7mSzJJIQq1+OiJI74aMC1euYpjjJ9fOWPsnQ2UiCLdv5xoT69OAVOs4EMxzoXq2QMttyeB+a2NYVHFmznKXyO0g08dd2oXd7st6R5ctgkL2oNM2E8kZHhKbaqdClIpGPlbVESnborD7OaacMUZAXmpPeLDHwaIFOQOYP7CmNMuf6wpqVcWIXOr79VTT75kv6EzNgX/0I9tvHRJmriHgsCk1Y2AQrqcnqPaiir1VGkczWLPn6oik0R4WezZV2cubkjguRiqVppx48/ZJLZC3zRTezByp9IFIQ48nHsORcWbJ6cQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gNxzL8V20kQoVIfw0BAEpTYkIyl6R6R3HUcV5MzsMgk=; b=I5zV4VQesozAQ2pYzMe5ZXUEKzshwzzyKZtN2Yma2A25zecEsqbvg+aJzAbrR6W0HWhVwiOIRJiLS23hYuaVInsESlVeTwH9Vb93rZWmxYwoIB4rCzUKAUM+5fMjCX81tOl+hCTDJaFc3mFeJ4HEHBFrakwcBMIPe6uBO4sAM8GYr7u3wyvAOnLi8rsRLN3Eq5WozBzSg8TRPYx4SbtGso47aYTKYO8t5jS75CZr7Ea1x+eyFIXBzkOLFrerI1O1SOP4uVqeyM/PvMb7C5Mfydirj3Xgg7xiVIWhSmEFS5LxrPU14paLGPGrP9BiVNjxZG6i2KOYV0xSLegk5JltDQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DS7PR12MB6288.namprd12.prod.outlook.com (2603:10b6:8:93::7) by MW3PR12MB4506.namprd12.prod.outlook.com (2603:10b6:303:53::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.31; Sun, 23 Jul 2023 12:07:34 +0000 Received: from DS7PR12MB6288.namprd12.prod.outlook.com ([fe80::2666:236b:2886:d78b]) by DS7PR12MB6288.namprd12.prod.outlook.com ([fe80::2666:236b:2886:d78b%7]) with mapi id 15.20.6609.031; Sun, 23 Jul 2023 12:07:33 +0000 Message-ID: <9c0a3c64-2bcb-9b82-1805-a29cb7b7e617@nvidia.com> Date: Sun, 23 Jul 2023 15:07:24 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 1/1] net: gro: fix misuse of CB in udp socket lookup To: Richard Gobert , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, willemdebruijn.kernel@gmail.com, dsahern@kernel.org, tom@herbertland.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nimrod Oren References: <20230720161322.GA16323@debian> <20230720162624.GA16428@debian> Content-Language: en-US From: Gal Pressman In-Reply-To: <20230720162624.GA16428@debian> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0137.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9e::12) To DS7PR12MB6288.namprd12.prod.outlook.com (2603:10b6:8:93::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR12MB6288:EE_|MW3PR12MB4506:EE_ X-MS-Office365-Filtering-Correlation-Id: d068fe99-1d38-486a-80c6-08db8b7565b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9KQMtja0nUA7rLf05BbQ309yA0ltT4jSGNBARLkBYEUmfo1TAiWUYzwatD9CQhqvLp8i2cIsPoqsq5o/JWzDZkFDtg9p9DKsNC7AtKQPrILtpcgC03k3kbdRS4OOz5IDwhuRRINfNkcuw2DG7CC2bl+vUMWNjElcqTjwsMbtHyCxt6CeM1pgvcTAnOgyFbeBmxUSwV0IUqFUe7bkDUxSfDhsohexzQq7GJaclvzZVr0pjkoIeeEU9e1k9ZFTB7031wSkwDWZUnXw1eugwzNsKV6LnPl03evgMmAMfI7L7KnfI323gQHpT0BnE74lEWP9S9lgByVbrbHFgZfFQJNmZcsGG4dqMhzYJyyZ/J3nlz/fNnF12jJaIKszabTDBJc8kSXN9ytZuypgTU0Ql+Z+ZbthktA6fIAlbne1IDE6avBOIVe9oLpSlSIwCXxq3eXOVLV29qml0QabG/5e0ttAHx0CfsTsjqFpdAzvlPcaPjrqNtDnDYrqHNYurGd05XD8K+/toQuf81CnS6M0fg5Zg2AyN+Go81hES5x8bWwCXqcnVB8EeI8sZgCN9HhfSxt0siZkqadw5qlB+XLhU1lEd8UuqbIJ1jcd4ULWtmPCItvfK1prd5y1xgkR3qenTdzMBMKUWCP1Ta2BDPVwPIQnAaZeCvl4Bykna+z+lhV75z0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB6288.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(39860400002)(346002)(396003)(376002)(366004)(451199021)(31686004)(86362001)(31696002)(38100700002)(66556008)(66476007)(110136005)(478600001)(316002)(41300700001)(6636002)(66946007)(5660300002)(7416002)(8936002)(8676002)(6486002)(6666004)(6512007)(4744005)(2906002)(26005)(186003)(6506007)(921005)(36756003)(53546011)(2616005)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NVd1TmFLVTJ6VkREZzlyTlU2VUNzcjNuUjZ3MS9vUmFVdEh2b3pGa01DNG9M?= =?utf-8?B?N2dOSTZpelZTV3NhSitsNTUzU2lYekF1MnJLSFZSdmJwZkVBdjdTenBzaFl6?= =?utf-8?B?cjRHbFRGT00wdjBZdUN3dUIzR0VjSXhEVTBnVFlYY1F1YUNqV2ZaQ0hrclZ4?= =?utf-8?B?T1dFQjIrRS8zQkFlSFE3eGdRTnNNNWwzeSs3SzJYYXdWVEVLVHpSUytlODQ1?= =?utf-8?B?dloxSWhxOUpWN042aDg5MThFdnEzMjc5T01xK0t3dzlLM2Z2U0t4YnluMk1x?= =?utf-8?B?OVRSUm9jc0xaUUhNemtUNUtQ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LQTdacWgyclZw?= =?utf-8?Q?R8sMPDRg/pe6rGOX8DHPfL22p?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: d068fe99-1d38-486a-80c6-08db8b7565b9 X-MS-Exchange-CrossTenant-AuthSource: DS7PR12MB6288.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2023 12:07:33.9250 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Y5haIUzdFqYjX8TFbOo18FjB0F3k3C+47r4gJOEtYmyaCfN8Ud6IkP1lvDuH8OVc X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4506 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,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 20/07/2023 19:26, 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 Thanks Richard! Tested-by: Nimrod Oren