Re: [RFC PATCH] parisc: Add wrapper syscalls to fix O_NONBLOCK flag usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 22 Oct 2020 18:40:07 +0200
Helge Deller <deller@xxxxxx> wrote:

> The commit 75ae04206a4d ("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: 75ae04206a4d ("parisc: Define O_NONBLOCK to become 000200000")
> Signed-off-by: Helge Deller <deller@xxxxxx>

That fixes all the previous problems.


Regards,
     jer



[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux