diff options
author | Eugene Syromiatnikov <esyr@redhat.com> | 2018-01-15 20:38:17 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-01-23 07:36:54 +0100 |
commit | 6dd0d2d22aa363fec075cb2577ba273ac8462e94 (patch) | |
tree | 0fd63b313c0874957d24686d230af62aa20ca8a3 /arch/riscv/mm/ioremap.c | |
parent | 7fbf8315fb7fc7321919e6c880d70077aded515e (diff) |
s390: fix handling of -1 in set{,fs}[gu]id16 syscalls
For some reason, the implementation of some 16-bit ID system calls
(namely, setuid16/setgid16 and setfsuid16/setfsgid16) used type cast
instead of low2highgid/low2highuid macros for converting [GU]IDs, which
led to incorrect handling of value of -1 (which ought to be considered
invalid).
Discovered by strace test suite.
Cc: stable@vger.kernel.org
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/riscv/mm/ioremap.c')
0 files changed, 0 insertions, 0 deletions