From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757376Ab2IUQvr (ORCPT ); Fri, 21 Sep 2012 12:51:47 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:37583 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756456Ab2IUQvp (ORCPT ); Fri, 21 Sep 2012 12:51:45 -0400 Date: Fri, 21 Sep 2012 17:51:37 +0100 From: Russell King To: Kees Cook Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] ARM: add finit_module syscall to ARM Message-ID: <20120921165137.GB28875@flint.arm.linux.org.uk> References: <1348243081-6725-1-git-send-email-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1348243081-6725-1-git-send-email-keescook@chromium.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 21, 2012 at 08:58:00AM -0700, Kees Cook wrote: > Add finit_module syscall to the ARM syscall list. > > Signed-off-by: Kees Cook > Cc: Russell King > --- > arch/arm/include/asm/unistd.h | 1 + > arch/arm/kernel/calls.S | 1 + > 2 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h > index 0cab47d..904b579 100644 > --- a/arch/arm/include/asm/unistd.h > +++ b/arch/arm/include/asm/unistd.h > @@ -404,6 +404,7 @@ > #define __NR_setns (__NR_SYSCALL_BASE+375) > #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376) > #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377) > +#define __NR_finit_module (__NR_SYSCALL_BASE+378) This gives us a different syscall ordering if we add the kcmp syscall. That brings up another question though - when was kcmp added to x86, and why aren't we getting notifications from checksyscalls.sh that ARM hasn't been updated? It seems to be that the script was broken, and no one has noticed. commit 29dc54c673ea2531d589400badb4ada5f5f60dae Author: H. Peter Anvin Date: Fri Nov 11 15:57:53 2011 -0800 checksyscalls: Use arch/x86/syscalls/syscall_32.tbl as source Use the new arch/x86/syscalls/syscall_32.tbl file as source instead of arch/x86/include/asm/unistd_32.h. Cc: Michal Marek Cc: Geert Uytterhoeven Cc: Sam Ravnborg Signed-off-by: H. Peter Anvin is the culpret, more specifically this fragment: + echo <:1220:2: warning: #warning syscall kcmp not implemented So, actually, I want to add this kcmp syscall _now_ into -rc which I'm afraid will break your patch, and bump your syscall number on ARM to 379. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: