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

2019-10-22 Thread Arnd Bergmann
On Tue, Oct 22, 2019 at 12:49 AM 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 mak

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

2019-10-21 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 into t