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 3B433C2D0E0 for ; Tue, 15 Sep 2020 16:13:48 +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 E6C3D21D41 for ; Tue, 15 Sep 2020 16:13:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IKXKxa1P" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E6C3D21D41 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=BFSw3rO6G80d/M1hZEwl9olbPufcnqOYYUQ3EaRhldw=; b=IKXKxa1PM80GB51pX+MchpaEg +Tu3b1AoXMEuTJsFfxrBPn3vfrRqU8zJdADgohG8hAwMh3UiXoZrAYhnoEkDjUaanaWW2z1R7xDh1 pCwQseK+KFiqQO9tGwg8HGl8MBaX+iu01vzKp5p03Fv4t0Ah6LNweqEB6BtIgPlxvlqsRHIBeadpB 4j8OhGlhRMKouIxwuRBQUQZ7G+iqY8bQeqC0Nb74RkCsoy6gvBxz5gHy9yxcMPb2mEq4wiDrEVvQi h72ZBc6JiTN+MP6nHBMVH+ONGP+e4eCz3HrrqDHomAHucmzTt4apOCMyEP/Y3otCBrXDm84fjicPX Uqq8ZpX3A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIDYx-0005cn-3c; Tue, 15 Sep 2020 16:12:11 +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 1kIDYQ-0005Q2-5Q for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2020 16:11:40 +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 1kIDYD-0007Hd-J1; Tue, 15 Sep 2020 16:11:25 +0000 Date: Tue, 15 Sep 2020 18:11:24 +0200 From: Christian Brauner To: Kees Cook Subject: Re: [PATCH 11/15] selftests/seccomp: Remove SYSCALL_NUM_RET_SHARE_REG in favor of SYSCALL_RET_SET Message-ID: <20200915161124.oqgoiegni3jqwtno@wittgenstein> References: <20200912110820.597135-1-keescook@chromium.org> <20200912110820.597135-12-keescook@chromium.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200912110820.597135-12-keescook@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200915_121138_349802_4A90FE01 X-CRM114-Status: GOOD ( 11.63 ) 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:16AM -0700, Kees Cook wrote: > Instead of special-casing the specific case of shared registers, create > a default SYSCALL_RET_SET() macro (mirroring SYSCALL_NUM_SET()), that > writes to the SYSCALL_RET register. For architectures that can't set the > return value (for whatever reason), they can define SYSCALL_RET_SET() > without an associated SYSCALL_RET() macro. This also paves the way for > architectures that need to do special things to set the return value > (e.g. powerpc). > > Signed-off-by: Kees Cook > --- Looks good! Acked-by: Christian Brauner _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel