glibc/sysdeps/unix
Adhemerval Zanella 9db2970506 linux: Clear mode_t padding bits (BZ#25623)
The kernel might not clear the padding value for the ipc_perm mode
fields in compat mode (32 bit running on a 64 bit kernel).  It was
fixed on v4.14 when the ipc compat code was refactored to move
(commits 553f770ef71b, 469391684626, c0ebccb6fa1e).

Although it is most likely a kernel issue, it was shown only due
BZ#18231 fix which made all the SysVIPC mode_t 32-bit regardless of
the kABI.

This patch fixes it by explicitly zeroing the upper bits for such
cases.  The __ASSUME_SYSVIPC_BROKEN_MODE_T case already handles
it with the shift.

(The aarch64 ipc_priv.h is superflous since
__ASSUME_SYSVIPC_DEFAULT_IPC_64 is now defined as default).

Checked on i686-linux-gnu on 3.10 and on 4.15 kernel.

(cherry picked from commit 82025bad80429c67a4d75f098155b5e02b5112b4)
2020-03-10 09:09:39 -03:00
..
alpha Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
arm Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bsd Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
i386 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
inet Remove obsolete, never-implemented XSI STREAMS declarations 2019-03-14 15:44:15 +01:00
mips Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
powerpc Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sh Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sysv/linux linux: Clear mode_t padding bits (BZ#25623) 2020-03-10 09:09:39 -03:00
x86_64 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
confstr.h
get_child_max.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getlogin_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getlogin.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getpagesize.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
grantpt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ifreq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Implies
make-syscalls.sh Remove vDSO support from make-syscall.sh 2020-01-03 10:02:05 -03:00
Makefile Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pt-fcntl.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
s-proto-cancel.S
s-proto.S
setxid.h
sockatmark.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
syscall-template.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
syscall.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
syscalls.list Use clock_gettime to implement gettimeofday. 2019-10-30 17:11:10 -03:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00