diff options
author | Christoph Hellwig <hch@lst.de> | 2018-07-11 09:48:46 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-07-17 23:26:58 -0400 |
commit | 9ba546c01976a426292af99e682a557075d6c010 (patch) | |
tree | 316963a30a975e8a02fcd677e9c4700916594f55 /fs/aio.c | |
parent | c7e9075fb89362812059fbf8e25bb4a6e825c4c5 (diff) |
aio: don't expose __aio_sigset in uapi
glibc uses a different defintion of sigset_t than the kernel does,
and the current version would pull in both. To fix this just do not
expose the type at all - this somewhat mirrors pselect() where we
do not even have a type for the magic sigmask argument, but just
use pointer arithmetics.
Fixes: 7a074e96 ("aio: implement io_pgetevents")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Adrian Reber <adrian@lisas.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2042,6 +2042,11 @@ SYSCALL_DEFINE5(io_getevents, aio_context_t, ctx_id, | |||
2042 | return ret; | 2042 | return ret; |
2043 | } | 2043 | } |
2044 | 2044 | ||
2045 | struct __aio_sigset { | ||
2046 | const sigset_t __user *sigmask; | ||
2047 | size_t sigsetsize; | ||
2048 | }; | ||
2049 | |||
2045 | SYSCALL_DEFINE6(io_pgetevents, | 2050 | SYSCALL_DEFINE6(io_pgetevents, |
2046 | aio_context_t, ctx_id, | 2051 | aio_context_t, ctx_id, |
2047 | long, min_nr, | 2052 | long, min_nr, |