Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp478741pxb; Thu, 5 Nov 2020 05:23:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxD+BJexvTNRy3yX2dDFO9EDZTpMzSwZbzWeuEBQTsxfd6XjS8N6qBJqgrIsRwuwXKIaKPA X-Received: by 2002:a17:906:1a0b:: with SMTP id i11mr2377832ejf.404.1604582603080; Thu, 05 Nov 2020 05:23:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604582603; cv=none; d=google.com; s=arc-20160816; b=Gl6Mp3dKXv77dYBAw4JZQK3SoWz3HbWk1FsCepNsGZMkK+S1ZqhU1YnCNAbbcaFe95 X1tPIdUnjLfA2j9+dIE3qhItPh+/zcjCcj9HYcdRRmqZdKYI8izfBde8t+sVUQQ120b4 QQbusnGaZfK96LzW/KqbJI1yAlCXdIoPaOyVhmF574243zuIn1LqIeT2EX8mBf6st//z LB8HMs3N9FGK3da298lSY5avXHcTCRxkUtB//vZ1sHh0EIvM4uCr/eBD8CL6o8lO948+ T5+BGfSGkvKoO5Dgy/+enmADrITyLy89ZAJYfTxrtkSADEg5/EdOiElHxjQfZCP13mZb zxUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:dkim-signature; bh=7rTa1IFql/LR+33ZxnfZbGdQk0m7ruYrJa4oCUH1pio=; b=aEWAvWKxW/ZBfTnFuAlxz0x0jtqfGaM6ESijOaXA+gLtbifyBRETtxdlyp56VAb9VE YrttwB0cavZ/P9pDw2R12oKf2lMes1+kmiW4TQjvQmgLmCd54hMAenpuYNEDGjCH9xGS 0r68NbMoV39CIeLHmfbK3UTH/pRwitlbYzdNOCOFpuzIih3pRo/WC1+h1ZZm4VvdFm3u VTZnAGmhbO0TpTRlHvxc9kQCQ69oLzrmBShq4oLvFc7Sdgl3Hgb46yNzD2H0Q4QHisO5 t4buruahuLjt/h/7n3z3Ck5Hl2S+OGDzyaoAJWxL/UtqTjdKsFxX9t5NRHRrNri/rE7W B3cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=jhdcsWVe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si1286535ejk.65.2020.11.05.05.22.59; Thu, 05 Nov 2020 05:23:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=jhdcsWVe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730703AbgKENO7 (ORCPT + 99 others); Thu, 5 Nov 2020 08:14:59 -0500 Received: from mout.gmx.net ([212.227.17.21]:56837 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgKENO6 (ORCPT ); Thu, 5 Nov 2020 08:14:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604582062; bh=hvl3a/DWoP3yKdUCuEnO965iNCdGwTGX9IdgK9GEq0c=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=jhdcsWVeG7mrfIXkpGSS9ZzerLWnZEoNFfundMNdRZv1Ln4NeaWBB1INcUjv0ed0p KHGmWOs331ogm8AwG/7Ba6n5i5uCnbn/Gv2SfRhEzVXeH03nDh2d+XKUJh8tNQtcCn prAh0zp7b6qRdpzdE+eko1E7CgeTdXR1DH75X2T8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.156.55]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M5wLT-1kgPSP0uoV-007U0t; Thu, 05 Nov 2020 14:14:22 +0100 Subject: Re: [PATCH seccomp 2/8] parisc: Enable seccomp architecture tracking To: YiFei Zhu , containers@lists.linux-foundation.org Cc: YiFei Zhu , linux-csky@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org, Aleksa Sarai , Andrea Arcangeli , Andy Lutomirski , David Laight , Dimitrios Skarlatos , Giuseppe Scrivano , Hubertus Franke , Jack Chen , Jann Horn , Josep Torrellas , Kees Cook , Tianyin Xu , Tobin Feldman-Fitzthum , Tycho Andersen , Valentin Rothberg , Will Drewry References: <9bb86c546eda753adf5270425e7353202dbce87c.1604410035.git.yifeifz2@illinois.edu> From: Helge Deller Autocrypt: addr=deller@gmx.de; keydata= mQINBF3Ia3MBEAD3nmWzMgQByYAWnb9cNqspnkb2GLVKzhoH2QD4eRpyDLA/3smlClbeKkWT HLnjgkbPFDmcmCz5V0Wv1mKYRClAHPCIBIJgyICqqUZo2qGmKstUx3pFAiztlXBANpRECgwJ r+8w6mkccOM9GhoPU0vMaD/UVJcJQzvrxVHO8EHS36aUkjKd6cOpdVbCt3qx8cEhCmaFEO6u CL+k5AZQoABbFQEBocZE1/lSYzaHkcHrjn4cQjc3CffXnUVYwlo8EYOtAHgMDC39s9a7S90L 69l6G73lYBD/Br5lnDPlG6dKfGFZZpQ1h8/x+Qz366Ojfq9MuuRJg7ZQpe6foiOtqwKym/zV dVvSdOOc5sHSpfwu5+BVAAyBd6hw4NddlAQUjHSRs3zJ9OfrEx2d3mIfXZ7+pMhZ7q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rtlfmTCj8JhNksNr0NcsNXTkaOy++4Wb9lKDAUcRma7TgMk Yq21O5RINec5Jo3xeEUfApVwbueBWCtq4bljeXG93iOWMk4cYqsRVsWsDxsplHQfh5xHk2Zf GAUYbm/rX36cdDBbaX2+rgvcHDTx9fOXozugEqFQv9oNg3UnXDWyEeiDLTC/0Gei/Jd/YL1p XzCscCr+pggvqX7kI33AQsxo1DT19sNYLU5dJ5Qxz1+zdNkB9kK9CcTVFXMYehKueBkk5MaU ou0ZH9LCDjtnOKxPuUWstxTXWzsinSpLDIpkP//4fN6asmPo2cSXMXE0iA5WsWAXcK8uZ4jD c2TFWAS8k6RLkk41ZUU8ENX8+qZx/Q== Message-ID: <8d86100a-a3d6-d3bd-856c-38d17f363864@gmx.de> Date: Thu, 5 Nov 2020 14:14:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <9bb86c546eda753adf5270425e7353202dbce87c.1604410035.git.yifeifz2@illinois.edu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:1QVEQuqTmgX7JJqdEkHcs098MrIPbhiET1stBdJlwnGaXA8bIuH tW64Kumdb/ZadHYHAmwWlDtRvnkZLheeVmHw0n+SNEN6lO0J+uCOH9+wGGTIeuYOSc6tkD+ poAVk3TTqwiGNkfCAafeLOV5nxm9gzXgw5FNQM0x8N/zUaa4fR3cbkwefeor/CrqpGOfxfy T4uZ6SGJcO+c06shUWGlA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Zm6k9jpZc6g=://srLO+3z3UASrT4Ku8wWY p+UVgWkCiG2npqOmCd+TK5QLisIG3vnoU2YhFnLYIE71e1Q4IMptcfHTiGv85u1mTrMoY0kfZ KTZLvJ7v8FqEhp2pVGf1KX9H4csbzYjrrkvc44kb6ey1Y3oXf8a9HihMRs9uUocF26PP0J8YD q5qHXtcd9EqlblqcKcxPWkxu03qYhf2LRCeySqppq+qyX/DcOqjJIpCJ2cKGEk7QFDoaQXL8e 0u/1fDLCFykbgC3GmWubqefKQC8JdSXl/gMXDo/iAaqTOR6g0rd97a8dQm48IviqbhtUBhaf8 PyzbqTbjTlenSI5sEKQIGCqtZOZTKJBv2U9IJlodWcEd0c3DXmpdgCn7uKwNFP8OncuJiucUL cGXR3hq+P2rRZCB/0V8qa7krrc3eHVjq9DOHcX1dj7SRbnDCgBgwYludzkk6L8utwnyiC1Xjr qR+s7JF9tOtkYd01gdSUPntspUMyMdRdebTHbleMyWGItnsFbL+PTamgIYoxUsfkwPcZhpeNp 4CH64IYJP3g2l23FC+hImWEzv0jDAXc1pEQmSiWPABYQbY/pU0wvID33YJM82r6f1hlGW5uvK wwOyIeJE2cYO48ufw3obHECg2+5RtrsOl7F/VREpnsiVWs/U9bR0QPyQ0m+bY+61jL7vkdbMH 04GlOp/982qPBnN8KRa6tRQaxUiRbsnZAJu2VW1uMPStt8nJcMBhY2q5TTs67A/oBUmSJP/nm XVpPohmauLQH5UhaenS4gWSGJoUbUbz+XaMDlt1r0pToJy7t6fu9S4AM/cNtXIIBkFXnF8teV S2Wcc+gjGH/vA6WJTIuk0rdPbqRvytWlYR1X6pGzX5mhxES8Qx5WA35R9/Ulq9k0GNJho9zsv T6nB6eRPQ2R6CfvK3qcA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/3/20 2:42 PM, YiFei Zhu wrote: > From: YiFei Zhu > > To enable seccomp constant action bitmaps, we need to have a static > mapping to the audit architecture and system call table size. Add these > for parisc. > > Signed-off-by: YiFei Zhu I did compile- and boot-tested it, works on 32- and 64-bit parisc kernel. I don't know how to test it actually, but anyway: Acked-by: Helge Deller Thanks! Helge > --- > arch/parisc/include/asm/Kbuild | 1 - > arch/parisc/include/asm/seccomp.h | 22 ++++++++++++++++++++++ > 2 files changed, 22 insertions(+), 1 deletion(-) > create mode 100644 arch/parisc/include/asm/seccomp.h > > diff --git a/arch/parisc/include/asm/Kbuild b/arch/parisc/include/asm/Kb= uild > index e3ee5c0bfe80..f16c4db80116 100644 > --- a/arch/parisc/include/asm/Kbuild > +++ b/arch/parisc/include/asm/Kbuild > @@ -5,5 +5,4 @@ generated-y +=3D syscall_table_c32.h > generic-y +=3D kvm_para.h > generic-y +=3D local64.h > generic-y +=3D mcs_spinlock.h > -generic-y +=3D seccomp.h > generic-y +=3D user.h > diff --git a/arch/parisc/include/asm/seccomp.h b/arch/parisc/include/asm= /seccomp.h > new file mode 100644 > index 000000000000..b058b2220322 > --- /dev/null > +++ b/arch/parisc/include/asm/seccomp.h > @@ -0,0 +1,22 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +#ifndef _ASM_SECCOMP_H > +#define _ASM_SECCOMP_H > + > +#include > + > +#ifdef CONFIG_64BIT > +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC64 > +# define SECCOMP_ARCH_NATIVE_NR NR_syscalls > +# define SECCOMP_ARCH_NATIVE_NAME "parisc64" > +# ifdef CONFIG_COMPAT > +# define SECCOMP_ARCH_COMPAT AUDIT_ARCH_PARISC > +# define SECCOMP_ARCH_COMPAT_NR NR_syscalls > +# define SECCOMP_ARCH_COMPAT_NAME "parisc" > +# endif > +#else /* !CONFIG_64BIT */ > +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC > +# define SECCOMP_ARCH_NATIVE_NR NR_syscalls > +# define SECCOMP_ARCH_NATIVE_NAME "parisc" > +#endif > + > +#endif /* _ASM_SECCOMP_H */ >