Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3111172pxk; Tue, 15 Sep 2020 10:17:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3J4nSLDOkuxb1afZ/qpB2LtP8OBGflV+swjp5caZOC4lV6wzoC+aQfYiwv7zs2Aam0qo/ X-Received: by 2002:aa7:d40f:: with SMTP id z15mr23897823edq.247.1600190235659; Tue, 15 Sep 2020 10:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600190235; cv=none; d=google.com; s=arc-20160816; b=UuyqqAcopZU0GyYG+tjuJ35AOVc1TVmLPbT5GrrTv+BYMm6g6LxzlOnSEh3KJdwBYm TXAH0Ijof1vgc21tNVkNnpyoc7E0V4HoSoQlxSgfUzOnBaCQn3tftVgDNsgCbH6r0BCL z9AdXrnXh8by9Tx5JAM4u80F1tISSu9Lbq9z7tHX1+YnLc/wEkei0gJC6uUtBz0tdjbQ bQyOL5oFcf7+y2xsl27pzFIAz1/YSoMXlUjjVZOHUves8jTgdlFj5oHain2pnJnd4aFf AnUvXUsIEIWTdmRyHVLe1zzgqgHMxSCWuV6IhBjoEA2vrcmj5byByWuZEQD2iUPW2yjm dV0w== 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=9VtRXQ5cJU1Brh72cKe1jDX4otG3Dnc2oa8ud6MjaRY=; b=W/abDN1HITo/B3ksdqwFxS/V5JOnUVHqAKg6bNdCnAMaVt9MhLeFkOIbMsY10RY7zU 01k0Rc1DtWKYLlRR69oeIN2NWDEdJUSboJozBngmu+sR3pMVTrxcbGl+Dcepyu7UiKVL 4ZR2OFucenwv+g5EmZTHCRUMvyivBmF5+3Vfc0DqCXWJ2EPnn6iVccZ2i1za2kQylXDW RlpsgzNOEDtZEieA+DGYfJSIMgvwiFyiW4oMeOwNehVyr8CUKZc7F/eaXhqNLwZAbfqd x5d8kb88hv2QXKsdFzdnFQAdeuDUDc1rlVk1J3a0ZVcWUtkbkPynGuoNZaSFklGuIEb+ Nxag== 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 z15si10161274ejr.202.2020.09.15.10.16.52; Tue, 15 Sep 2020 10:17:15 -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 S1727861AbgIORL1 (ORCPT + 99 others); Tue, 15 Sep 2020 13:11:27 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49556 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727540AbgIOQWu (ORCPT ); Tue, 15 Sep 2020 12:22:50 -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 1kIDQX-0006I7-VU; Tue, 15 Sep 2020 16:03:30 +0000 Date: Tue, 15 Sep 2020 18:03:29 +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 08/15] selftests/seccomp: Convert HAVE_GETREG into ARCH_GETREG/ARCH_SETREG Message-ID: <20200915160329.e7wotngcsyschbwo@wittgenstein> References: <20200912110820.597135-1-keescook@chromium.org> <20200912110820.597135-9-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200912110820.597135-9-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:13AM -0700, Kees Cook wrote: > Instead of special-casing the get/set-registers routines, move the > HAVE_GETREG logic into the new ARCH_GETREG() and ARCH_SETREG() macros. > > Signed-off-by: Kees Cook > --- Looks good! Acked-by: Christian Brauner