Re: [PATCH net] netlink: access nlk groups safely in netlink bind and getname

2017-09-11 Thread Cong Wang
On Sun, Sep 10, 2017 at 4:45 AM, Xin Long wrote: > On Sat, Sep 9, 2017 at 7:35 AM, Cong Wang wrote: >> On Tue, Sep 5, 2017 at 8:53 PM, Xin Long wrote: >>> Now there is no lock protecting nlk ngroups/groups' accessing in >>>

Re: [PATCH net] netlink: access nlk groups safely in netlink bind and getname

2017-09-10 Thread Xin Long
On Sat, Sep 9, 2017 at 7:35 AM, Cong Wang wrote: > On Tue, Sep 5, 2017 at 8:53 PM, Xin Long wrote: >> Now there is no lock protecting nlk ngroups/groups' accessing in >> netlink bind and getname. It's safe from nlk groups' setting in >>

Re: [PATCH net] netlink: access nlk groups safely in netlink bind and getname

2017-09-08 Thread Cong Wang
On Tue, Sep 5, 2017 at 8:53 PM, Xin Long wrote: > Now there is no lock protecting nlk ngroups/groups' accessing in > netlink bind and getname. It's safe from nlk groups' setting in > netlink_release, but not from netlink_realloc_groups called by > netlink_setsockopt. > >

Re: [PATCH net] netlink: access nlk groups safely in netlink bind and getname

2017-09-06 Thread David Miller
From: Xin Long Date: Wed, 6 Sep 2017 11:53:29 +0800 > Now there is no lock protecting nlk ngroups/groups' accessing in > netlink bind and getname. It's safe from nlk groups' setting in > netlink_release, but not from netlink_realloc_groups called by > netlink_setsockopt. >