Re: free(9) while holding a rwlock

2018-02-21 Thread Philip Guenther
On Wed, Feb 21, 2018 at 1:26 AM, Martin Pieuchot wrote: > Is it safe? What kind of deadlock/weird situation can occur? > > I'm asking because the diff below, that introduces a lock to protect uid > globals, has an XXX comment from guenther@ asking if it is a problem. > The

Re: free(9) while holding a rwlock

2018-02-21 Thread David Gwynne
> On 21 Feb 2018, at 19:26, Martin Pieuchot wrote: > > Is it safe? What kind of deadlock/weird situation can occur? i think it is safe. > > I'm asking because the diff below, that introduces a lock to protect uid > globals, has an XXX comment from guenther@ asking if it is

free(9) while holding a rwlock

2018-02-21 Thread Martin Pieuchot
Is it safe? What kind of deadlock/weird situation can occur? I'm asking because the diff below, that introduces a lock to protect uid globals, has an XXX comment from guenther@ asking if it is a problem. There's currently multiple free(9) happening while the NET_LOCK() is being held, so I