From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 746E2C43461 for ; Tue, 15 Sep 2020 15:54:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 112CD208E4 for ; Tue, 15 Sep 2020 15:54:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="21vrTwl5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 112CD208E4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ubuntu.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ORw3pDUv5MXuNpwQl6yZ08oILvpfI5UdTGeccyGDmfU=; b=21vrTwl5G5goXZPwwSGO7XbxQ L5iwm4eDgH+oAgMOpyl0BXgScJYWw2rj0fI5SZdXZNIe+TEpC2yeqMzvRLc6QLnbuT2JM6pOiJ5pS wtUnhV7+QFMTE2pEzwF9epNnKht4eS+DAzHtoTa0pnBziSIqe25omO4fBkZXC4sUb7tUvo1ni4ZDx SEaEbyZzo/ioT/lgNztzsE3qpHleVUMDCuFrC2uLghjCBdOe+YvKQnitAsbuKUAAbUC7eZZ0Q7lhT sYQUg0IJvdQXjNf6NtxEZLUMuXKVMWTfIBv22qoNn7/FHSzCAN/giQbv4tLwUewnCyFAR9HkM844t Wb0m+/O/Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIDGn-0006ZV-3F; Tue, 15 Sep 2020 15:53:25 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIDGj-0006YW-Lq for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2020 15:53:22 +0000 Received: from ip5f5af089.dynamic.kabel-deutschland.de ([95.90.240.137] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kIDGb-0005SV-UL; Tue, 15 Sep 2020 15:53:14 +0000 Date: Tue, 15 Sep 2020 17:53:13 +0200 From: Christian Brauner To: Kees Cook Subject: Re: [PATCH 02/15] selftests/seccomp: Provide generic syscall setting macro Message-ID: <20200915155313.s5a3gxmjb2da6762@wittgenstein> References: <20200912110820.597135-1-keescook@chromium.org> <20200912110820.597135-3-keescook@chromium.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200912110820.597135-3-keescook@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200915_115321_841218_ECCC0FAA X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thadeu Lima de Souza Cascardo , Will Drewry , linux-xtensa@linux-xtensa.org, Michael Ellerman , linux-kernel@vger.kernel.org, Andy Lutomirski , Max Filippov , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Christian Brauner Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Sep 12, 2020 at 04:08:07AM -0700, Kees Cook wrote: > In order to avoid "#ifdef"s in the main function bodies, create a new > macro, SYSCALL_NUM_SET(), where arch-specific logic can live. > > Signed-off-by: Kees Cook > --- SYSCALL_SWITCH(_regs, nr)? But looks good either way! Acked-by: Christian Brauner _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel