[PATCH] posix: Add invalid flags test for p{write,read}v2

Christoph Hellwig hch@lst.de
Fri Jun 16 15:42:00 GMT 2017


On Fri, Jun 16, 2017 at 12:09:40PM -0300, Adhemerval Zanella wrote:
> This patch add an extra test for passing invalid flags and check its
> expected failure.  It shows an invalid LO_HI_LONG macro definition for
> x86_64 with leads to passing invalid flags on some configurations.
> 
> The new tests fails on i686-linux-gnu and potentially on other 32 bits
> architecture that uses the compat syscall definition due a kernel bug.
> It is intended to be fixed upstream.  I have added a comment for it and
> I think disabling this is not the correct approach since if the syscall
> is ignoring the flag it defeats the whole purpose of the syscall.  The
> failure indicates the kernel requires an update.

Linus just merged the fix for that issue, so Linux 4.12 should be.
It will also go into the stable trees.



More information about the Libc-alpha mailing list