Re: no NET_RLOCK() for SIOCGIFCLONERS

2018-05-14 Thread Theo Buehler
On Mon, May 14, 2018 at 10:24:09AM +0200, Martin Pieuchot wrote: > On 14/05/18(Mon) 10:17, Theo Buehler wrote: > > This was pointed out to me by mpi a while ago. > > > > The if_clone_list() function accesses &if_cloners, which is only > > modified via if_clone_attach() and if_clone_detach(). > >

Re: no NET_RLOCK() for SIOCGIFCLONERS

2018-05-14 Thread Martin Pieuchot
On 14/05/18(Mon) 10:17, Theo Buehler wrote: > This was pointed out to me by mpi a while ago. > > The if_clone_list() function accesses &if_cloners, which is only > modified via if_clone_attach() and if_clone_detach(). > > The latter function is never called, as far as I can tell, while > if_clone

no NET_RLOCK() for SIOCGIFCLONERS

2018-05-14 Thread Theo Buehler
This was pointed out to me by mpi a while ago. The if_clone_list() function accesses &if_cloners, which is only modified via if_clone_attach() and if_clone_detach(). The latter function is never called, as far as I can tell, while if_clone_attach() is only called at boot time via the pdevinit[] m