From nobody Wed Nov 27 13:04:48 2024 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2041.outbound.protection.outlook.com [40.107.21.41]) (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 D2D7720C460; Fri, 11 Oct 2024 07:49:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728632955; cv=fail; b=sQN9+vw07LrD1LyHdm9M+x8QhwZMhl13jNuVtiU8+9O2H3Wo7ox+8LRzvTS5sQZVqmf1ENTjT+aZIQ49O2O/loLQ5J0eQywlsOZ253oE6YCLsdBohH1OXc5gHXu8JHHJfJmSYA6BMexzsZ1+xhG3fZ8X8NYANdwS6bagtoXEgRw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728632955; c=relaxed/simple; bh=0TZBWaT8/m2CB3ub0+FGUA21FoqKUXG+bYXQtNb/i1I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=G5ebxBmz5iC5zMOToBKWH9jCcXr7Vwagsu7t6QZ2Yv0OmVnCqBdv2RKRrM1YU5ffHI7133oFi8D9LVWI7hmUmx92T44NRgUYiI9LDE9vN9ll3k2KayEecuDnPhUMLjtUl1GmI3kzcLj+5lu1Ct3XLz6tGzmL5j43JjahtRLpxhQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nokia.com; spf=fail smtp.mailfrom=nokia.com; dkim=pass (2048-bit key) header.d=nokia.com header.i=@nokia.com header.b=Q8ARyHai; arc=fail smtp.client-ip=40.107.21.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nokia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nokia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nokia.com header.i=@nokia.com header.b="Q8ARyHai" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Gmid/qnCVlCtmt5UxTOm1RNfIgJjlyQdPaoBqOQ1Sdizbm/1q0zp4cNPDAmLFCylN02M8yGEe7sMwuK0mCrVVI3MH09PxJWwsr8Dpq6cXrSkcyzDa4x6rTv465N6ZZfZP8Gkafh/sz8ZUSNRgfvBMbctFco6VxUn4gAaVM629UplvlElHsICSQlUYJ4NgLvRKmfi7LO34dWrkkOtyKQxQY/Oi9s5MLa18KqN6i1dk62LrVZCtHm5REU7Zon+hE9U8x5IRKfWsNzZ0FLbLP/Bevlf8oALB5XO17Lh/Z6+WJS6NLbiD3b60BWW2GvHhvFGYHP4C36efw/GbUYjbLf/2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=yPfSonQcYqCmQH4rzpVWQ7ao5gpbLP1Z7dagYjM8uXc=; b=DVwa/b1WzgCGOGpeCNOehVehl65xLfMqzW8QiRxk9PMBQI/oD0OSS7DNYAwh4LQgkBVI01bcRfmNmjDrZScbKf0nZzj9hInhs/00gHNTfC6zun8qj97KleilZhtuHyBfpsu3/OYAddXdcNjVAb2aaU+vURMrbeqcE6sxv0KqQUkqNUf+SaqkLQ9xuM7OkgpcegnVPVwiRkkbqxBamFYpVn2e4LP7wgs+m/1FT0tAXooX5bAAPbRP5LnudFhbNl0mwt3MH3IHBYLCqe+9KkrMLFh6FcmXNvG9wWxMTh5phUIjP0tdQ8LRnD/lFP3kZtlDcep7O2pxo6S0bgeqgkr1yQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yPfSonQcYqCmQH4rzpVWQ7ao5gpbLP1Z7dagYjM8uXc=; b=Q8ARyHaiRBeSMlk0A/M25b2HBfVzt344KMiYLH5Q6RlmoapvNjWhs84/2sgEA10ILQd7NuKcioHhqe9ui/ZH3VHA19dAL2yXBwRNXG81ujYgM5nuq+/sMNrLVubCqIJOTI6MThzDt8jQjq/XqmVNavekd2UJm+9VhflE7hVP8beb8f32IcVktYTQg/hBSAG7hwGVukqw96T4A4X1IZS0rwc8MRL3XWxPUMsn93PTvEeL8hLX0D1GeOhx34xfg3IPlVmlyP4vGpRVoc1QZDMWD3oM9FELQoOsMFvFQbZ+bQsqZ4E5T7S9iBATkjLI+Jxe16YkQujXoq1GG3hGlNaL1g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; Received: from PAWPR07MB9688.eurprd07.prod.outlook.com (2603:10a6:102:383::17) by DB9PR07MB10028.eurprd07.prod.outlook.com (2603:10a6:10:4cd::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.22; Fri, 11 Oct 2024 07:49:08 +0000 Received: from PAWPR07MB9688.eurprd07.prod.outlook.com ([fe80::6b9d:9c50:8fe6:b8c5]) by PAWPR07MB9688.eurprd07.prod.outlook.com ([fe80::6b9d:9c50:8fe6:b8c5%4]) with mapi id 15.20.8048.013; Fri, 11 Oct 2024 07:49:08 +0000 From: Stefan Wiehler To: "David S . Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Wiehler Subject: [PATCH net v4 5/5] Revert "ipv6: Fix suspicious RCU usage warning in ip6mr" Date: Fri, 11 Oct 2024 09:23:28 +0200 Message-ID: <20241011074811.2308043-9-stefan.wiehler@nokia.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20241011074811.2308043-3-stefan.wiehler@nokia.com> References: <20241011074811.2308043-3-stefan.wiehler@nokia.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9f::12) To PAWPR07MB9688.eurprd07.prod.outlook.com (2603:10a6:102:383::17) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAWPR07MB9688:EE_|DB9PR07MB10028:EE_ X-MS-Office365-Filtering-Correlation-Id: d0f3eece-5f67-471e-7724-08dce9c93047 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?fJ8ahpUYfaAylsmjUUo5oOAIb88+LJSPtthtHICNlUIl0AjTl9NtKRkTmzZt?= =?us-ascii?Q?treXHNSAPuQxnHutCf82eB8Xn+ldCDcOWA2J1MUpDJ3ej416QyVZkj57tHuZ?= =?us-ascii?Q?ytNIiA++SB0wiyIgXG5fQd3nR3GIKyg9CKcYxC0daX4RzNJQQ2Fbmav6dthX?= =?us-ascii?Q?3EvgOVTu/L2m6CusJlYR4imYDBL8WpUfBGXm5hULgmBKozVZLfdyGg5SeMAz?= =?us-ascii?Q?nGyWJcMpstEOUvARgPc08l158z54Wole+p8kL+0B/bLDUI03kiOf/Pp7/cRT?= =?us-ascii?Q?XEp2Df4xVtOCwX0lw9t+3z0QrLo0O4xj2P7mHISGQtn+nxzhMlHTIv2Flhri?= =?us-ascii?Q?Uq6oB6DjiWdXWI7x13glA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-ascii?Q?hI2flGj7FovUMIkfovvQm5ruFr6JkcAyw8lF3lXd2ypFK862Zu5JrObQMNPq?= =?us-ascii?Q?m31HUyvZ/ExebjpGDcqGs1kGUEMp2Lq583Tuza3ym+VQYA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAWPR07MB9688.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?4Ras1qTfUGx5qpCV5aqm3FdinYlLzI3tWe66WzsCmyXdm1+kV451va16Ftcx?= =?us-ascii?Q?0qGFETQB0TOWPOwLg1sET+rT4IDAd7vorWteVwiuZHsv75I5Qrb3T5R1ijW4?= =?us-ascii?Q?NFwhGAbbqlARMHFxGoUOE6Q8Xp8jFwDf1pGEH5Yifmp/s22jey0fLtsWLk+V?= =?us-ascii?Q?UZQnWXw6IOZOGKmFaIPYMdLZfuc+k1wlnZLfqKrDTFSUB0ix+kNHYrnUxOHO?= =?us-ascii?Q?khkmJUpbOPCJfs+CZ3vb1QR9auytnm34tlg6rMTOzi/CkH2zglJ2KNXaVxGy?= =?us-ascii?Q?rrO6n3LGVZ/8/Qd3yjZpQVNEu5ice0AxPmdkW+LpYGfqTtz0bAToffADyDuZ?= =?us-ascii?Q?d3d2tDSNHqiTQu19+4jQp5Hdagqn9bnNvzUXL9k3PCMefQobBSglkh9kTk2q?= =?us-ascii?Q?7xztTPwA/GepKbM35gDqB3ne/KIDyeQNY8Wf9CpqhBSKizx6gvPVFiDjmCyJ?= =?us-ascii?Q?17165sPg0lMiTBDXhH46DSwGorfzqMKkd+7Xpm9TtLs2+uVcjx7OgQLaASHA?= =?us-ascii?Q?Pg2/q6xXxz6GofsB7ytsZaslF8YSlBcAfIO3g8S6T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SdQj8fTIwVxge6S7pP8Wqn2mKG+1hznBPd1DKDMJ+c8plStJJB?= =?us-ascii?Q?5ehso1cIvgn8JOWQpjVlHZDUE7cvkXNDaqFcPHaSN/2YJRsbyqSDoKSWQWgB?= =?us-ascii?Q?7a/zBw61hF28RqiwEcLK5m+9iwNNAOIY02HDx3qrazrg85jU+gQrPsoUSiW6?= =?us-ascii?Q?vA=3D=3D?= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0f3eece-5f67-471e-7724-08dce9c93047 X-MS-Exchange-CrossTenant-AuthSource: PAWPR07MB9688.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2024 07:49:08.8348 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: E5M9kwwVd4OW8XMlksFHRqfv1FpfFeDZJek7aDmEEU6J8jvGjHB4R/IT/IGGcCYT4sdOROeIQ1QshS7D2+Qdkzu9NXKEp2gbOCUEhoMuKjQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR07MB10028 Content-Type: text/plain; charset="utf-8" This reverts commit b6dd5acde3f165e364881c36de942c5b252e2a27. We should not suppress Lockdep-RCU splats when calling ip6mr_get_table() without RCU or RTNL lock. Signed-off-by: Stefan Wiehler --- net/ipv6/ip6mr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index a817b688473a..44e2b4d1ca23 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c @@ -105,8 +105,7 @@ static void ipmr_expire_process(struct timer_list *t); #ifdef CONFIG_IPV6_MROUTE_MULTIPLE_TABLES #define ip6mr_for_each_table(mrt, net) \ list_for_each_entry_rcu(mrt, &net->ipv6.mr6_tables, list, \ - lockdep_rtnl_is_held() || \ - list_empty(&net->ipv6.mr6_tables)) + lockdep_rtnl_is_held()) =20 static struct mr_table *ip6mr_mr_table_iter(struct net *net, struct mr_table *mrt) --=20 2.42.0