Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25F2FC6FD1D for ; Wed, 15 Mar 2023 17:42:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231987AbjCORmc (ORCPT ); Wed, 15 Mar 2023 13:42:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbjCORm3 (ORCPT ); Wed, 15 Mar 2023 13:42:29 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C84359224C; Wed, 15 Mar 2023 10:41:55 -0700 (PDT) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32FHEKPb007673; Wed, 15 Mar 2023 17:41:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=e2FesA8HeGh4f4SA6PJuDQ4fC32m0QQ8CO7VOQyRWN8=; b=QFS2V7MdQhF5B61JEfLgyJGoZ8QHPmwpuOY2B3gWNOlyzcUL3Htri/RQI6P+omaixk7c BC6HaWqiP26Bxfve03jc/vZMear9CpxaUA28e6TQdVhCWW78crv20ORkvCm4rQGZo0gh 7zrbU2BiWEp3e1iwPspntg7NSdWMYlHC4r5KLPSBYd7hgfLPcOYbINSLB6Eg0G0LPEKV Vj1odf4SnyCjWc8VEKnbLhfrClo1YnaDOa8UATUngQcP4Q8qzDKIhqQQtzgSOvJsCoWU tkB1AoGYU5pe11fcTUMSJnuOz3Q5fEGQ+PlAjs3lulMH6E0kOjuyN/aIsEPpVP2APAJJ /w== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3pb2xpj1gh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Mar 2023 17:41:15 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 32FHZsbD038347; Wed, 15 Mar 2023 17:41:13 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3pb2w8pa4j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Mar 2023 17:41:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=anV9UpiLB1UJniebLEO9WxjipUhx/pZ2ibUMPRcvBKJankgMolFKyRN/n/IZ4BfvB/OxOTvSkm/0rbOpZqeeeCEbW2b2vY4qz3Aanq89CfztBxo0qSP+2qa8fdi68itwScxELJJqkfHMiGdU22saugqvr9hyRg/8IHi9ML5/4I2JyZ/Riq93UE/KANvBn5hnEtF+KmGR4zOrVLXl4eyM7x8KODDhwCUjef03qXbkiDY8UYJp8UUr+3xjdc9K8+ec4wsvsasqb0PrSIou+R3k+e7x+dU11yYqExNU8YGxDG2ZKVoIqCEGiArPobhf0dk0pQ+71He3xlYEls1beIAVag== 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=e2FesA8HeGh4f4SA6PJuDQ4fC32m0QQ8CO7VOQyRWN8=; b=WxHMeSrBHWqUQ2yFZRg75VcWSjOx3Rbrjr6CA+EOBcgDM3N3iv5bPTwSEw8yA5NYNF0REm0Tim11331gaE01HdYXdZLibeNCpa8nvLhT8qes3xS92BpYoBQm42QyIboZrO8cfXx/kfZDu2P4YYtRl9Ko56IdY34VLT5mk3ZvxnXkTA2o4AzXKUkl0XNYmMsIDbfn+Xo2Z9HpetHLUGe1e60u7q+l73t6D8w1WCYEefh+We/vkoXUuAo0rTfUZbOd729mNHvu51o5UXweqTzguNndRo3dfsmR16IsYfeLE/BVQMOEwBoVPxclMysh5hLPGGV3DPAmzSzAlvkK7Mfqqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e2FesA8HeGh4f4SA6PJuDQ4fC32m0QQ8CO7VOQyRWN8=; b=n0LWn2w1F76Bnm/YVhxmExbL0vFhAOWlMyfmg4V1sLujChRF1jTE+Trx9e6THgFj8jvRsurfVhRbJPSy5KLFvTaItMHgKcA9X2DFBfxdTrcBr/p8mN7LbgbbVDx6f/N/sPVRTF2hR2pke/ngIzjzw9IucuO1wBHOKx7obsvBSRw= Received: from BY5PR10MB4129.namprd10.prod.outlook.com (2603:10b6:a03:210::21) by IA0PR10MB7135.namprd10.prod.outlook.com (2603:10b6:208:401::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19; Wed, 15 Mar 2023 17:41:12 +0000 Received: from BY5PR10MB4129.namprd10.prod.outlook.com ([fe80::311:f22:99b6:7db7]) by BY5PR10MB4129.namprd10.prod.outlook.com ([fe80::311:f22:99b6:7db7%3]) with mapi id 15.20.6178.026; Wed, 15 Mar 2023 17:41:11 +0000 From: Anjali Kulkarni To: Jakub Kicinski CC: "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "zbr@ioremap.net" , "brauner@kernel.org" , "johannes@sipsolutions.net" , "ecree.xilinx@gmail.com" , "leon@kernel.org" , "keescook@chromium.org" , "socketcan@hartkopp.net" , "petrm@nvidia.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Anjali Kulkarni Subject: Re: [PATCH v2 2/5] connector/cn_proc: Add filtering to fix some bugs Thread-Topic: [PATCH v2 2/5] connector/cn_proc: Add filtering to fix some bugs Thread-Index: AQHZVuR/gMApZDZt5kiq6XYKUuZ/aK77TNSAgADQDIA= Date: Wed, 15 Mar 2023 17:41:11 +0000 Message-ID: References: <20230315021850.2788946-1-anjali.k.kulkarni@oracle.com> <20230315021850.2788946-3-anjali.k.kulkarni@oracle.com> <20230314221633.1e6c9bef@kernel.org> In-Reply-To: <20230314221633.1e6c9bef@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY5PR10MB4129:EE_|IA0PR10MB7135:EE_ x-ms-office365-filtering-correlation-id: 175fa94c-c9a3-4f7f-344f-08db257c77cb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Zibe6ZtvSz0sI6S5E7Ook9PoL2jCm4XFGHdfepxP4wYJpN+2G4CUDYzXFnfNqPAoEzXe6iIKlRHjRVMlE6z0Xy/nNIR45bTTv92q5RtSCYFuZRjosrptcJkODFDc7SLuUL7qzbpPPI6VEJaLe600+KzrW/dagNTV5xkpDa3SHvYilzTjL2ANmPu147IVMbW0ESbT7Lsd0hB8GmvN0sl/WjiXHMQTxp9g/FpqK/l7nWxlUpploEifuGYxGW1LL/DG8ZOmGbhwWp6SoA4wXxEdT3q9LiAZ6jQsLtOMfft+yby5KQVkx+KBiMFrTRi5isqguXfvJkEpNZItNkWaR5L4yy+PCnZGKHpk4h7aea3TwyIJmeyhbebwwcZ3S0f/kahUGfkbdBI/XuEB0Cw9r8agMiQmpb32aJvJFJvIn9RsW73jZAzkpYV3ZrkGdRhlgk+tegViFdb+fNqVXVt2z1/zBlNQjhRmNoBjFC9CEPPbi7FCwy8/Lmo6jAUwU0h9SH8lqKVuNPiVcb4pskGzeXW0ikTN3BhWZAlFZTjRjVb9IgX2e81FgFTa5sQKE3AI3EXeKYNfrQJh5KOkpW782fBTwzYasul5enx6BA2XyGCQS+Uja9q+3kRZ1uR7YV4RKk6pk7yVvf42QcBOw+mbsFy/U5ZY35xS642Gby94lpZRlOvHFrbD6AXcrfeAViml3Kfnng3Zk7A4ZlCfBNwGKGXfToldQ7SaIYNvOU0qtMj582M= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB4129.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(136003)(376002)(346002)(396003)(366004)(39860400002)(451199018)(53546011)(38070700005)(33656002)(36756003)(478600001)(86362001)(54906003)(71200400001)(2616005)(66946007)(66476007)(107886003)(8676002)(76116006)(64756008)(6506007)(186003)(91956017)(66556008)(6512007)(6486002)(316002)(7416002)(2906002)(6916009)(83380400001)(66446008)(38100700002)(4326008)(122000001)(8936002)(41300700001)(5660300002)(45980500001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Bp0xqm04IrEBTk5EZutr/3TeUwsgE05lEQX8WVObj61XZ2x73c5HWSpSZlh3?= =?us-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4OWofC2jcGUuj3Yj1RVU/?= =?us-ascii?Q?vKTsG+P8oPTseyFYFNcAV+PWYwRlsa3fpmmICuiYW8AhiCOnjG6gzEL74kje?= =?us-ascii?Q?Py0V/+ZEhUarZqGq0Tc7036mezL4FX3Q5NqFlYJK1rkAmxYR3paK1Pkr++qw?= =?us-ascii?Q?d7GgTiuyKvbngcO/gi+fl/6/Ma38+Sbe+cNbGmI4vRPbjQu0KWpq8Cp2RKkw?= =?us-ascii?Q?sNHIB157e43q/fc9/EoGgMs/iZfdGSCtZCEiD/Zk1lEGUdtJhVHPvIdvr3ns?= =?us-ascii?Q?emlTelVYvmwbAaDrnKNBYEv7FKwU8prwrQzcTyimvsM06qxlZxVJFM+kaI3G?= =?us-ascii?Q?TuFpGk/IJR/eC6XGtW3lhLjLqSXZBWtFljoWdPgD2Udt9QyOltVTcaWJyLAI?= =?us-ascii?Q?SOOTTFAy00ufRoV+SuIobIm4TnUW/qsxA1ZBWUyGarZaphgkFrzFdC+wD0hp?= =?us-ascii?Q?jPvPjKy+Ebi5jT3WCPPQtsDBD0Mp5dMbZaGFaCxxj7iUKVcaJNwCX2MZrvto?= =?us-ascii?Q?ShkdqTNULDHGC5OJQnTt+5u6mLSd/mJQ/ysHpEf82zGZvYcYm5DgWdznCagg?= =?us-ascii?Q?bEwsNvtsIgBxXF/cH+PCwQO5qhiF52BOayC8xhLU4Od7DUYFOHjvO3GvG0k+?= =?us-ascii?Q?HaxGeMC4d4yYNcbwCgzxyq9QSl1Kj2ZQ6K96AEz9UFTZC15qE4m8QUV2Xl7x?= =?us-ascii?Q?SMLVPG28mXB3zZQ91oHb8rRRuVSUx3jdECNsFOtL/SBF?= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?us-ascii?Q?bDg4GQUdya0mLigbTdyyk2MZAa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ascii?Q?BenK57A/rPkFC2yav4tl2TihFbHQzfHI5CvVBk8b1+KYloc6HlMl1eYoSiQa?= =?us-ascii?Q?2Xx1S0CEr2ZC67mGX4aphUUX0orpdghZXf1XlRX0OBkQnSYmlAgOqPH3alOe?= =?us-ascii?Q?9dgQMPy1LWnPYfK3e8xeNsb7qFjRi1ip56bqE7UmjnJVyYmZgr3P8wpsH3h0?= =?us-ascii?Q?arbeg9rLLJjEsLa6YCo8xCF0bGI75A=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4129.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 175fa94c-c9a3-4f7f-344f-08db257c77cb X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2023 17:41:11.8879 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: S6hL7SLVtkvxSX1BDqpXDZCDYWlpQity5Y9OkWaiJ6PAdL54Toas11Cj2TCjFfP8CyWRaC6kY8GZ08FteJl61TRJ0VOWuatgCaO25B3yX9w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR10MB7135 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-15_09,2023-03-15_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 suspectscore=0 spamscore=0 bulkscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2302240000 definitions=main-2303150148 X-Proofpoint-ORIG-GUID: DL6kdSvdfY4EJFe7KKj1iriI0m6dz75Q X-Proofpoint-GUID: DL6kdSvdfY4EJFe7KKj1iriI0m6dz75Q Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mar 14, 2023, at 10:16 PM, Jakub Kicinski wrote: >=20 > On Tue, 14 Mar 2023 19:18:47 -0700 Anjali Kulkarni wrote: >> diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c >> index 003c7e6ec9be..ad8ec18152cd 100644 >> --- a/net/netlink/af_netlink.c >> +++ b/net/netlink/af_netlink.c >> @@ -63,6 +63,7 @@ >> #include >> #include >> #include >> +#include >=20 > Not needed any more. Will remove >=20 >> /* must not acquire netlink_table_lock in any way again before unbind >> * and notifying genetlink is done as otherwise it might deadlock >> */ >> - if (nlk->netlink_unbind) { >> + if (nlk->netlink_unbind && nlk->groups) { >=20 > Why? Just an additional check, will remove >=20 >> int i; >> - >> for (i =3D 0; i < nlk->ngroups; i++) >> if (test_bit(i, nlk->groups)) >> nlk->netlink_unbind(sock_net(sk), i + 1); >=20 > Please separate the netlink core changes from the connector > changes. Will do in the next revision >=20 > Please slow down with new versions, we have 300 patches in the queue, > replying to one version just to notice you posted a new one is > frustrating. Give reviewers 24h to reply. Ok, sure! Anjali