[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <FD3D56A4-EDD3-43CA-B12C-CAF736A3821E@oracle.com>
Date: Wed, 15 Mar 2023 17:41:11 +0000
From: Anjali Kulkarni <anjali.k.kulkarni@...cle.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"edumazet@...gle.com" <edumazet@...gle.com>,
"pabeni@...hat.com" <pabeni@...hat.com>,
"zbr@...emap.net" <zbr@...emap.net>,
"brauner@...nel.org" <brauner@...nel.org>,
"johannes@...solutions.net" <johannes@...solutions.net>,
"ecree.xilinx@...il.com" <ecree.xilinx@...il.com>,
"leon@...nel.org" <leon@...nel.org>,
"keescook@...omium.org" <keescook@...omium.org>,
"socketcan@...tkopp.net" <socketcan@...tkopp.net>,
"petrm@...dia.com" <petrm@...dia.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Anjali Kulkarni <anjali.k.kulkarni@...cle.com>
Subject: Re: [PATCH v2 2/5] connector/cn_proc: Add filtering to fix some bugs
> On Mar 14, 2023, at 10:16 PM, Jakub Kicinski <kuba@...nel.org> wrote:
>
> 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 <linux/net_namespace.h>
>> #include <linux/nospec.h>
>> #include <linux/btf_ids.h>
>> +#include <linux/connector.h>
>
> Not needed any more.
Will remove
>
>> /* 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) {
>
> Why?
Just an additional check, will remove
>
>> int i;
>> -
>> for (i = 0; i < nlk->ngroups; i++)
>> if (test_bit(i, nlk->groups))
>> nlk->netlink_unbind(sock_net(sk), i + 1);
>
> Please separate the netlink core changes from the connector
> changes.
Will do in the next revision
>
> 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
Powered by blists - more mailing lists