Re: [PATCH] aio: Fix io_pgetevents() struct __compat_aio_sigset layout

2019-10-21 Thread Al Viro
On Thu, Oct 17, 2019 at 03:48:00PM +0200, Jan Kara wrote: > On Wed 21-08-19 05:38:20, Guillem Jover wrote: > > This type is used to pass the sigset_t from userland to the kernel, > > but it was using the kernel native pointer type for the member > > representing the compat userland pointer to the

Re: [PATCH] aio: Fix io_pgetevents() struct __compat_aio_sigset layout

2019-10-17 Thread Jan Kara
On Wed 21-08-19 05:38:20, Guillem Jover wrote: > This type is used to pass the sigset_t from userland to the kernel, > but it was using the kernel native pointer type for the member > representing the compat userland pointer to the userland sigset_t. > > This messes up the layout, and makes the

Re: [PATCH] aio: Fix io_pgetevents() struct __compat_aio_sigset layout

2019-08-22 Thread Jeff Moyer
Guillem Jover writes: > This type is used to pass the sigset_t from userland to the kernel, > but it was using the kernel native pointer type for the member > representing the compat userland pointer to the userland sigset_t. > > This messes up the layout, and makes the kernel eat up both the >

Re: [PATCH] aio: Fix io_pgetevents() struct __compat_aio_sigset layout

2019-08-21 Thread Christoph Hellwig
On Wed, Aug 21, 2019 at 05:38:20AM +0200, Guillem Jover wrote: > This type is used to pass the sigset_t from userland to the kernel, > but it was using the kernel native pointer type for the member > representing the compat userland pointer to the userland sigset_t. > > This messes up the layout,

[PATCH] aio: Fix io_pgetevents() struct __compat_aio_sigset layout

2019-08-20 Thread Guillem Jover
This type is used to pass the sigset_t from userland to the kernel, but it was using the kernel native pointer type for the member representing the compat userland pointer to the userland sigset_t. This messes up the layout, and makes the kernel eat up both the userland pointer and the size