[PATCH] io_uring: fix memory leak of UNIX domain socket inode

2019-06-13 Thread Eric Biggers
From: Eric Biggers Opening and closing an io_uring instance leaks a UNIX domain socket inode. This is because the ->file of the io_uring instance's internal UNIX domain socket is set to point to the io_uring file, but then sock_release() sees the non-NULL ->file and assumes the inode reference i

Re: [PATCH] io_uring: fix memory leak of UNIX domain socket inode

2019-06-13 Thread Jens Axboe
On 6/12/19 3:58 PM, Eric Biggers wrote: > From: Eric Biggers > > Opening and closing an io_uring instance leaks a UNIX domain socket > inode. This is because the ->file of the io_uring instance's internal > UNIX domain socket is set to point to the io_uring file, but then > sock_release() sees t