From patchwork Mon Aug 11 13:37:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 35205 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 11D4D20AEC for ; Mon, 11 Aug 2014 13:37:34 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id v10sf28213111pde.10 for ; Mon, 11 Aug 2014 06:37:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=D1ge062MV+iURFKe5o9D9m7+sly2lp+iW+2cAFCaUf0=; b=WsCdi8QF4lu7/iPvpI/VP4j6TWD81UDOUf4uy5OcFvzfSvzhKRMmotvHHwlTUyrRpG ooPXrCRNKHrr6E47jvlaPOL+yebwPl0UCPLojwjNKxQvV3qtWiJHkT5Zdcc5RHDWnXta kRb9bhBerFZfzELtm7b8um2iGi1x1Kndv1PYLSUK09iyRz2WGFbvxKJwKBsikqpo1Hy+ T00v+aaIfkWatkJSKehaIjj9iW9aEMD/vLdCPmJDDdT1XCwnlCcRhxG08/uD3Oxy8951 nziDVdF1FJF+pSTEPoHUQSQOVEFrqcUOHHXNtxPCftdXQu8dfVkdI+kmCbQdxx/1zs19 P0og== X-Gm-Message-State: ALoCoQllVImg4EDWkDFSHuIS8MAqaqUd++5gI2QrnBx1LiI0Mpg6aLAhEv+2+OpSdqIPoVWVZhxy X-Received: by 10.68.135.99 with SMTP id pr3mr202446pbb.9.1407764254349; Mon, 11 Aug 2014 06:37:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.6 with SMTP id s6ls1377523qgd.22.gmail; Mon, 11 Aug 2014 06:37:34 -0700 (PDT) X-Received: by 10.52.61.99 with SMTP id o3mr1203696vdr.46.1407764254209; Mon, 11 Aug 2014 06:37:34 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id xv9si6500579vdb.0.2014.08.11.06.37.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Aug 2014 06:37:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so11406311vcb.4 for ; Mon, 11 Aug 2014 06:37:34 -0700 (PDT) X-Received: by 10.221.24.135 with SMTP id re7mr370241vcb.53.1407764254105; Mon, 11 Aug 2014 06:37:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp165450vcb; Mon, 11 Aug 2014 06:37:33 -0700 (PDT) X-Received: by 10.66.222.132 with SMTP id qm4mr1525997pac.140.1407764253172; Mon, 11 Aug 2014 06:37:33 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si9891705pdo.5.2014.08.11.06.37.32 for ; Mon, 11 Aug 2014 06:37:33 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753567AbaHKNha (ORCPT + 26 others); Mon, 11 Aug 2014 09:37:30 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:32809 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753398AbaHKNh2 (ORCPT ); Mon, 11 Aug 2014 09:37:28 -0400 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.34]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id s7BDb0wo007545; Mon, 11 Aug 2014 14:37:00 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 0D7F91AE2D99; Mon, 11 Aug 2014 14:37:13 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Will Deacon Subject: [PATCH 1/2] arm64: compat: wire up memfd_create and getrandom syscalls for aarch32 Date: Mon, 11 Aug 2014 14:37:07 +0100 Message-Id: <1407764228-7904-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.0.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.deacon@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , arch/arm/ just grew support for the new memfd_create and getrandom syscalls, so add them to our compat layer too. Signed-off-by: Will Deacon --- arch/arm64/include/asm/unistd.h | 2 +- arch/arm64/include/asm/unistd32.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/unistd.h b/arch/arm64/include/asm/unistd.h index 4bc95d27e063..6d2bf419431d 100644 --- a/arch/arm64/include/asm/unistd.h +++ b/arch/arm64/include/asm/unistd.h @@ -41,7 +41,7 @@ #define __ARM_NR_compat_cacheflush (__ARM_NR_COMPAT_BASE+2) #define __ARM_NR_compat_set_tls (__ARM_NR_COMPAT_BASE+5) -#define __NR_compat_syscalls 383 +#define __NR_compat_syscalls 386 #endif #define __ARCH_WANT_SYS_CLONE diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h index e242600c4046..da1f06b535e3 100644 --- a/arch/arm64/include/asm/unistd32.h +++ b/arch/arm64/include/asm/unistd32.h @@ -787,3 +787,8 @@ __SYSCALL(__NR_sched_setattr, sys_sched_setattr) __SYSCALL(__NR_sched_getattr, sys_sched_getattr) #define __NR_renameat2 382 __SYSCALL(__NR_renameat2, sys_renameat2) + /* 383 for seccomp */ +#define __NR_getrandom 384 +__SYSCALL(__NR_getrandom, sys_getrandom) +#define __NR_memfd_create 385 +__SYSCALL(__NR_memfd_create, sys_memfd_create)