linux/arch
Helge Deller 44a4c9e443 parisc: Add wrapper syscalls to fix O_NONBLOCK flag usage
The commit 75ae04206a ("parisc: Define O_NONBLOCK to become
000200000") changed the O_NONBLOCK constant to have only one bit set
(like all other architectures). This change broke some existing
userspace code (e.g.  udevadm, systemd-udevd, elogind) which called
specific syscalls which do strict value checking on their flag
parameter.

This patch adds wrapper functions for the relevant syscalls. The
wrappers masks out any old invalid O_NONBLOCK flags, reports in the
syslog if the old O_NONBLOCK value was used and then calls the target
syscall with the new O_NONBLOCK value.

Fixes: 75ae04206a ("parisc: Define O_NONBLOCK to become 000200000")
Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Meelis Roos <mroos@linux.ee>
Tested-by: Jeroen Roovers <jer@xs4all.nl>
2020-10-23 20:14:07 +02:00
..
alpha Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
arc Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
arm Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
arm64 Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
c6x Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
csky Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
h8300 Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
hexagon Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
ia64 Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
m68k Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
microblaze Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
mips Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
nds32 Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
nios2 Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
openrisc Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
parisc parisc: Add wrapper syscalls to fix O_NONBLOCK flag usage 2020-10-23 20:14:07 +02:00
powerpc Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
riscv Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
s390 Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
sh Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
sparc Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
um Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
x86 Kbuild updates for v5.10 2020-10-22 13:13:57 -07:00
xtensa Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
.gitignore
Kconfig Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00