Files
twx-linux/arch/s390/kernel
Eugene Syromiatnikov a76abe4449 s390: fix handling of -1 in set{,fs}[gu]id16 syscalls
commit 6dd0d2d22a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-22 15:44:58 +01:00
..
2015-08-07 09:57:39 +02:00
2015-08-07 09:57:39 +02:00
…
…
2015-06-25 09:39:26 +02:00
2017-05-25 14:30:09 +02:00
…
2016-04-12 09:08:31 -07:00
2015-11-16 12:51:11 +01:00
…
…
…
…
2015-10-27 09:33:57 +01:00
…
…
2017-12-16 10:33:49 +01:00
…
2015-10-14 14:32:01 +02:00