Re: [PATCH 1/2] uio: Add late_release callback to uio_info

2021-02-11 Thread Bodo Stroesser
On 11.02.21 07:51, Greg Kroah-Hartman wrote: On Wed, Feb 10, 2021 at 08:57:11PM +0100, Bodo Stroesser wrote: On 10.02.21 20:47, Greg Kroah-Hartman wrote: On Wed, Feb 10, 2021 at 08:40:30PM +0100, Bodo Stroesser wrote: If uio_unregister_device() is called while userspace daemon still holds the

Re: [PATCH 1/2] uio: Add late_release callback to uio_info

2021-02-10 Thread Greg Kroah-Hartman
On Wed, Feb 10, 2021 at 08:57:11PM +0100, Bodo Stroesser wrote: > On 10.02.21 20:47, Greg Kroah-Hartman wrote: > > On Wed, Feb 10, 2021 at 08:40:30PM +0100, Bodo Stroesser wrote: > > > If uio_unregister_device() is called while userspace daemon > > > still holds the uio device open or mmap'ed, uio

Re: [PATCH 1/2] uio: Add late_release callback to uio_info

2021-02-10 Thread Bodo Stroesser
On 10.02.21 20:47, Greg Kroah-Hartman wrote: On Wed, Feb 10, 2021 at 08:40:30PM +0100, Bodo Stroesser wrote: If uio_unregister_device() is called while userspace daemon still holds the uio device open or mmap'ed, uio will not call uio_info->release() on later close / munmap. At least one user o

Re: [PATCH 1/2] uio: Add late_release callback to uio_info

2021-02-10 Thread Greg Kroah-Hartman
On Wed, Feb 10, 2021 at 08:40:30PM +0100, Bodo Stroesser wrote: > If uio_unregister_device() is called while userspace daemon > still holds the uio device open or mmap'ed, uio will not call > uio_info->release() on later close / munmap. > > At least one user of uio (tcmu) should not free resources

[PATCH 1/2] uio: Add late_release callback to uio_info

2021-02-10 Thread Bodo Stroesser
If uio_unregister_device() is called while userspace daemon still holds the uio device open or mmap'ed, uio will not call uio_info->release() on later close / munmap. At least one user of uio (tcmu) should not free resources (pages allocated by tcmu which are mmap'ed to userspace) while uio device