This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] posix: Add invalid flags test for p{write,read}v2
- From: Christoph Hellwig <hch at lst dot de>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 16 Jun 2017 17:42:08 +0200
- Subject: Re: [PATCH] posix: Add invalid flags test for p{write,read}v2
- Authentication-results: sourceware.org; auth=none
- References: <1497625780-8732-1-git-send-email-adhemerval.zanella@linaro.org>
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.