Re: [PATCH] nbd: fix use after free on module unload

2017-04-28 Thread Jens Axboe
On 04/28/2017 07:49 AM, Josef Bacik wrote: > list_for_each_entry() isn't super safe if we're freeing the objects > while we traverse the list. Also don't bother taking the extra > reference, the module refcounting stuff will save us from having anybody > messing with the device while we're trying

[PATCH] nbd: fix use after free on module unload

2017-04-28 Thread Josef Bacik
list_for_each_entry() isn't super safe if we're freeing the objects while we traverse the list. Also don't bother taking the extra reference, the module refcounting stuff will save us from having anybody messing with the device while we're trying to unload. Reported-by: Ming Lei