Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3298428pxk; Tue, 15 Sep 2020 15:48:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP/9kFKO+FEpCKmjDG3fRRhGGMVr4WP/X6Alb4P9WQqdWbLTOS9SFvOcDAiRU2Ew7qVG7S X-Received: by 2002:a17:906:9941:: with SMTP id zm1mr22029034ejb.288.1600210111075; Tue, 15 Sep 2020 15:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600210111; cv=none; d=google.com; s=arc-20160816; b=iq4xFTSOGdZNb7fRD+7m3JZuPVahyZIfvk6n7HovEMWZ2o2/DfSo4+WTD5wc62Hmqu yLmZImInRXRcJAvWJvTiWg6BJq7et58cTpX6yVmFtTbAFEANqx7xpyYKUYd5KL1nG+hw sx0tdbCKZTk3s1moKF94D0S8kgqaiEIxEvm0hz+h8PWlDTO2JsFlXOBp/LMC24RqfhTb BGXHocfgCz+cm+E6UxKoVVJGI34UlSE/kKIulGSRVWjbQhR3GdfoMT+7vNRjammEZkIK wWvDqF+bYkGcijAh/2nWsWhboPtm+2JBYeWjaDdaMIUhpSJOxiYYCHe6RoAPJ2/8b5yn GFaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zeKJbRnWju8a5rQGEKfbuFSdxKAE0eKhbkBUHlwfkbo=; b=hoMw4FvZ7hNKzYysTyxKji6vQAN883iAY9QjraFBQ3YpYDknbE/2qiaN5foxJlYnBF bU/uVPuBCZns/iZ1cFm8Yw06HNlPr7goOaUanBRnlT1YbARv2nHCrzn2xPlONci8sBE2 J4QownTLIocIenExQx9gI077mzASatEmv91Rsq8qPeDoWOLf/eAASfz49RZR+FXIyPFQ IHemEp82c5q0pLwT9vSeSdJa7Maei8JcPzK9GAz2WGAQ6V5PTu1YocPDiAJl+BxHpR2c tqbWravTVuHgNDCr5PcTJORGTUoa1MPHVWCYEayM3EsxFvm6mCFmdA6l0tBa86S5dbyB t4HA== ARC-Authentication-Results: i=1; mx.google.com; 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 j17si10073279ejc.26.2020.09.15.15.48.07; Tue, 15 Sep 2020 15:48:31 -0700 (PDT) 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; 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 S1727688AbgIOWpp (ORCPT + 99 others); Tue, 15 Sep 2020 18:45:45 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:47842 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727509AbgIOPxy (ORCPT ); Tue, 15 Sep 2020 11:53:54 -0400 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 Cc: linux-kernel@vger.kernel.org, Thadeu Lima de Souza Cascardo , Max Filippov , Michael Ellerman , Christian Brauner , Andy Lutomirski , Will Drewry , linux-kselftest@vger.kernel.org, linux-mips@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org 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-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200912110820.597135-3-keescook@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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