Re: [PATCH v2] selftests/seccomp: Get page size from sysconf

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

 



On Fri, 2015-11-13 at 14:41 -0800, Kees Cook wrote:

> On Thu, Nov 12, 2015 at 7:17 PM, Bamvor Jian Zhang
> <bamvor.zhangjian@xxxxxxxxxx> wrote:

> > The commit fd88d16c58c2 ("selftests/seccomp: Be more precise with
> > syscall arguments.") use PAGE_SIZE directly which lead to build
> > failure on arm64.
> > 
> > Replace it with generic interface(sysconf(_SC_PAGESIZE)) to fix this
> > failure.
> > 
> > Build and test successful on x86_64 and arm64.
> > 
> > Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@xxxxxxxxxx>
> 
> Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>
> 
> Shuah, can you please pull this for kselftest? It fixes arm64 after
> Robert's changes.

Also works on powerpc with 64k pages.

Tested-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>

cheers

--
To unsubscribe from this list: send the line "unsubscribe linux-api" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux