From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753594AbbJOOIF (ORCPT ); Thu, 15 Oct 2015 10:08:05 -0400 Received: from lists.s-osg.org ([54.187.51.154]:57855 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753234AbbJOOIC (ORCPT ); Thu, 15 Oct 2015 10:08:02 -0400 Subject: Re: [PATCH v3] selftests/seccomp: build and pass on arm64 To: Kees Cook References: <20151006193025.GA11826@www.outflux.net> Cc: AKASHI Takahiro , Arnd Bergmann , Andy Lutomirski , Will Drewry , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan From: Shuah Khan X-Enigmail-Draft-Status: N1110 Organization: Samsung Open Source Group Message-ID: <561FB33F.5030906@osg.samsung.com> Date: Thu, 15 Oct 2015 08:07:59 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151006193025.GA11826@www.outflux.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/06/2015 01:30 PM, Kees Cook wrote: > Changing arm64 syscalls is done via a specific register set, more like s390 > than like arm (specific ptrace call) and x86 (part of general registers). > Since (restarting) poll doesn't exist on arm64, switch to using nanosleep > for testing restart_syscall. And since it looks like the syscall ABI is > inconsistent on arm-compat, so we must work around it (and document it) in > the test. > > Signed-off-by: Kees Cook > --- > v3: > - correctly set syscall number on native arm64. > v2: > - switch to nanosleep from a bad mix of poll and ppoll for testing restart. > --- Is this good to go? Failed to apply to linux-kselftest next. If you can rebase and resend. I can get this into 4.4-rc1 thanks, -- Shuah -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh@osg.samsung.com | (970) 217-8978