Message ID | 20240710130453.3242707-2-danielj@nvidia.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WJylf0lhwz1xqj for <incoming@patchwork.ozlabs.org>; Wed, 10 Jul 2024 23:05:50 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1sRX0y-0003gv-JM; Wed, 10 Jul 2024 13:05:44 +0000 Received: from mail-dm6nam12on2069.outbound.protection.outlook.com ([40.107.243.69] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <danielj@nvidia.com>) id 1sRX0v-0003gg-O5 for kernel-team@lists.ubuntu.com; Wed, 10 Jul 2024 13:05:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SivlBgUXl3ufzoY3HkbECljbbelbc9073OIiTsv5ntvzMovZk4s+NUGbBtwAxI+lgVzg3raQ+kzT3lr+5cMTont7r3fIzUKP+pAj95D0mLMuurnsD6hROgw1X/5KHn7phB6eQ6iDKl0ayfCLZa/6VH5fQJoSDlPi6O8LNmT5VlQk5A9YaM8X7YCYyf9jWvomSUOMiMLPNdirnV8HWot6ixLUaJx6sq/5q8ykA8KAKvnxuBrkDMJey+twD8iTWp4OgC2kZWeeiu6iFeLUl5kkoU7ad58VHeQ7tAjWCmXZohMy28DDsnPvhSBou3gbkPzZfgRFkEX7j8xnQASkJFlCcQ== 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=vykPEsQJvbp3qkBdAgmSYDNzwAQDeRt/RFqYwccyBJ0=; b=cPyUnODKWoBZnFGPkHpBYZgaqSsgQiy+ES6cpF1lrH8BoLyxVzKGj0JfJxY9nXSwViE+aqSnePY51miCHvfxltsauliqqUflr4Vpn84Pn0KwujfxrDKi2ESaRsKwUENr5VnbKytwWTM0yOzcGRlXObY9/W56i+08w6cD38YQV1W/J0ziKH/7GrdnXd2EIKuELKFWVYjVrT3PCF3ESVAbXTga+0AROkC17ZysvHNBT48e3nA4pCmq4zPQuCwvi4ql+yAKq6CBuuVic94tfl0UG8M7f9wdv0s5yMgjvMilIBTFNojQVed4kC/N/yW6t2G8bB/dARFNKz7A61V+cI3EBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from SJ0PR05CA0006.namprd05.prod.outlook.com (2603:10b6:a03:33b::11) by MN2PR12MB4422.namprd12.prod.outlook.com (2603:10b6:208:265::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.36; Wed, 10 Jul 2024 13:05:34 +0000 Received: from CO1PEPF000044F5.namprd05.prod.outlook.com (2603:10b6:a03:33b:cafe::3) by SJ0PR05CA0006.outlook.office365.com (2603:10b6:a03:33b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19 via Frontend Transport; Wed, 10 Jul 2024 13:05:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by CO1PEPF000044F5.mail.protection.outlook.com (10.167.241.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Wed, 10 Jul 2024 13:05:32 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 10 Jul 2024 06:05:12 -0700 Received: from drhqmail202.nvidia.com (10.126.190.181) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 10 Jul 2024 06:05:12 -0700 Received: from vdi.nvidia.com (10.127.8.11) by mail.nvidia.com (10.126.190.181) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 10 Jul 2024 06:05:11 -0700 From: Daniel Jurgens <danielj@nvidia.com> To: <kernel-team@lists.ubuntu.com>, <vlad@nvidia.com>, <dann.frazier@canonical.com>, <danielj@nvidia.com> Subject: [SRU][J:linux-bluefield][PATCH 1/1] net/sched: act_ct: set 'net' pointer when creating new nf_flow_table Date: Wed, 10 Jul 2024 16:04:53 +0300 Message-ID: <20240710130453.3242707-2-danielj@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240710130453.3242707-1-danielj@nvidia.com> References: <20240710130453.3242707-1-danielj@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044F5:EE_|MN2PR12MB4422:EE_ X-MS-Office365-Filtering-Correlation-Id: 07e70254-1298-496e-9050-08dca0e0fae0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|82310400026|376014|36860700013; X-Microsoft-Antispam-Message-Info: T4VYk4G9wKk+83M3kh+rp14APeVcaxd0kKphBffn3tn2t+za7aEiBfZGy0diIxq1qckmx7hGyr2pvmBxTKQT/UQ9eApskE8IQFEwRzBLk1G+k7jttR8kCGyOkWQBxfEuq7dYqnd7JzA4Tf0joOLcLihWrcSxTBUdsTaREVhQGy9XqpHwhr+P7oLXTxgnTw/YPycqOVMDcpGw38ERlE5IifhVGVUw7EAZJnS/Rd83fEoAnzzQDLl9z5zWMjAGgic7javKvmBNo+KNGzN6aIxI4nTY1ASqjq+q2/yq9eMilnG8i5sK9N/5MPGlQalYpld23f3VQIkjkkvaQxDRIbNEhgZFkhcC9Nktk9HU/lQmuroXsOUn9fQ2m4D6JAbdWJnbMnhG+aef1v6nkQRFI0wsgN8zp4THOKSefgcfSSITreZw0vp+wBmIpjcUzwt54szmf99QvOAouAaZxkdkRwoGLHQ/KlSfVv4b/3DvUGANnvlBdnfmbORtNFJqu/ipHn29dccGwzt73iwuZfmIKS1pZGuM8qyGc1+bVV7BwFiGLZLoycOJseQjvk2uLrYdD+jSH1E5bEEpdrlGJYBUrUCeR3VX7GKjsF51atvGirZb0pwR4Z6XPFnhdVra5l0JukK3bFFyvSupe3k74K/b6v8oL0IpUoq77zRDyALS1U4P+nogUKxu9V/J89omKlzixmUsqf1gNTHlviuIEW0ufrHVXCJmv9N0YvOWis6ZKWluTh9qPv0oZbOylkgAi1QWoVpTuP1MlI8JuM7MDjOwbTnaVa+we1cnu/37NYdk+qmhklHWBuZrPH5YThwazlij/tQvOZLUkUzNdI/NtnAbIqdST0WlmI8UVTl3XpS1Qie1JI+2QRBWg9H0XrXfMahekode0QE36TB8RpDm3CEf9qujkDVr+I+HDDtJrz5kppzEK6OcMGLf9SXLCzU96gqstRFQiOxoi+hZ2uL+jIKAUThKWf4e4j5f1dSUW8LP6rPtlIafd21Elfsauyz206ta+uZa6tqlBLZ3ngGDXlrKEZCEqOESpRBWFMspBV37RyBvulXrmlLClCBg4l2xf6Fow/TSrBiVXXWMkhJFxPD3WepbFBC/ynV7A3PJ3WCRZw2LtLXiVoLGJiyXeOXZPnpZbYHavQqyOUlK73PFPj4CR3gzNzpGOeZPG5LFxartS2ZEzWTvc5XqI1dA566P3wh+vFwHnC6hrrvSRs3aCw5zfoiUs1+Quv3H1PwlR2LnrD2M3eV56um3RKOxdzyA7KTcg13OtckFGYnP9Ccv4GAFUnTnTtKcE+nbdOdkEB88L4+CQXaWSfVFIz6n72icS2DwWWh5WnlQQCrjOFVTfpgmwLxiSPJvyjm/yRykR+LZ5k9aoWzMFK+882jOm5CZBU1tRPa40MFLfLy1oIWSEnmMrGlGA5HFdlDsl1EavzMUp007dqmrB7kq/5tKwBifQDVQEA2Q X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(82310400026)(376014)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2024 13:05:32.0969 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 07e70254-1298-496e-9050-08dca0e0fae0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000044F5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4422 Received-SPF: softfail client-ip=40.107.243.69; envelope-from=danielj@nvidia.com; helo=NAM12-DM6-obe.outbound.protection.outlook.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Cc: bodong@nvidia.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Fix ct crash
|
expand
|
diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c index 94ad56eccb09..e390fb25caef 100644 --- a/net/sched/act_ct.c +++ b/net/sched/act_ct.c @@ -287,7 +287,7 @@ static struct nf_flowtable_type flowtable_ct = { .owner = THIS_MODULE, }; -static int tcf_ct_flow_table_get(struct tcf_ct_params *params) +static int tcf_ct_flow_table_get(struct net *net, struct tcf_ct_params *params) { struct tcf_ct_flow_table *ct_ft; int err = -ENOMEM; @@ -313,6 +313,7 @@ static int tcf_ct_flow_table_get(struct tcf_ct_params *params) err = nf_flow_table_init(&ct_ft->nf_ft); if (err) goto err_init; + write_pnet(&ct_ft->nf_ft.net, net); __module_get(THIS_MODULE); out_unlock: @@ -1435,7 +1436,7 @@ static int tcf_ct_init(struct net *net, struct nlattr *nla, if (err) goto cleanup; - err = tcf_ct_flow_table_get(params); + err = tcf_ct_flow_table_get(net, params); if (err) goto cleanup_params;