[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <599A2DBB.2060305@iogearbox.net>
Date: Mon, 21 Aug 2017 02:47:55 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Alexei Starovoitov <ast@...com>, davem@...emloft.net
CC: john.fastabend@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] bpf: fix double free from dev_map_notification()
On 08/21/2017 02:42 AM, Alexei Starovoitov wrote:
> On 8/20/17 4:48 PM, Daniel Borkmann wrote:
[...]
> I wonder why it was done the other way around in the first place then?
> dev_map_list is there only for notifier and since the map is freed
> with all the devices totally makes sense to isolate it from notifier
> as a first step.
Yep, agree. Initially this was done by the mutex, but that was not
correct due to RCU for map helpers, of course.
Powered by blists - more mailing lists