From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Subject: Re: [PATCH v2] selftests/seccomp: Get page size from sysconf Date: Mon, 16 Nov 2015 16:42:21 +1100 Message-ID: <1447652541.959.8.camel@ellerman.id.au> References: <1447384671-17758-1-git-send-email-bamvor.zhangjian@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kees Cook , Shuah Khan Cc: Linux API , Robert Sesek , Bamvor Jian Zhang List-Id: linux-api@vger.kernel.org On Fri, 2015-11-13 at 14:41 -0800, Kees Cook wrote: > On Thu, Nov 12, 2015 at 7:17 PM, Bamvor Jian Zhang > 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 > > Acked-by: Kees Cook > > 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 cheers