[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170906.212425.1399303829278739542.davem@davemloft.net>
Date: Wed, 06 Sep 2017 21:24:25 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: lucien.xin@...il.com
Cc: netdev@...r.kernel.org, fw@...len.de
Subject: Re: [PATCH net] netlink: access nlk groups safely in netlink bind
and getname
From: Xin Long <lucien.xin@...il.com>
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.
>
> netlink_lock_table is needed in both netlink bind and getname when
> accessing nlk groups.
>
> Acked-by: Florian Westphal <fw@...len.de>
> Signed-off-by: Xin Long <lucien.xin@...il.com>
Applied.
Powered by blists - more mailing lists