]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix big-endian compat signal mask handling
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Mar 2019 14:34:53 +0000 (15:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Mar 2019 16:06:03 +0000 (10:06 -0600)
commit7a37fce98ef13b8189b45127e82f3ca539ba6284
tree6928ca0e842d8421e4cf2323e4403be71b22c7b0
parent847b3f4885e078ced445883511761869c40dc837
io_uring: fix big-endian compat signal mask handling

On big-endian architectures, the signal masks are differnet
between 32-bit and 64-bit tasks, so we have to use a different
function for reading them from user space.

io_cqring_wait() initially got this wrong, and always interprets
this as a native structure. This is ok on x86 and most arm64,
but not on s390, ppc64be, mips64be, sparc64 and parisc.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c