linux/arch/parisc/kernel/syscalls
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
..
Makefile parisc: add system call table generation support 2018-12-10 08:26:03 +01:00
syscall.tbl parisc: Add wrapper syscalls to fix O_NONBLOCK flag usage 2020-10-23 20:14:07 +02:00
syscallhdr.sh asm-generic: fix unistd_32.h generation format 2020-04-07 10:43:42 -07:00
syscalltbl.sh parisc: remove nargs from __SYSCALL 2020-04-05 22:57:40 +02:00