From patchwork Wed Oct 28 00:19:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 11862269 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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 99EACC388F9 for ; Wed, 28 Oct 2020 00:21:39 +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 2C65322281 for ; Wed, 28 Oct 2020 00:21:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Cxi4tH8W"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="cFu3RROb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C65322281 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org 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:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Jjs4+v0L6iDE86MYMD6Y/VpUvJgfFkraCIh4ULH/C7w=; b=Cxi4tH8WojB5Q7xRWsSeN7/+mJ 4kjUJPNOCQzTcNBH5jjzdWiioDcWiTLTNer9+0LNPnqA/F+EHIz6A+stXpRcnI2FjCr3INYZRM/Rp Rncs3jsY7FxQDNfM2MOCJOVYAy9fN0KG4i7l9lckBhDpddKrN2as3bqAt+g+tuqoZBa7c9B2Nq9G0 Fw3vHGDJN8h5+S0OTFo1lSlfiwCjD1Y+DEyQJMiDRl8Y2StB/MeBhtPBd54WIpVNWVrV8Bu+jXGoZ uhYevNj2gN4HbDVKzgKQeKJfHyahN1KkFOEbn9ewjjCs8VF52eERfzlQ/a6bE8CeBv5cQeR5cy4/H TLobVRYA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXZCH-00077Q-Kp; Wed, 28 Oct 2020 00:20:13 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXZCD-000761-FO for linux-arm-kernel@lists.infradead.org; Wed, 28 Oct 2020 00:20:10 +0000 Received: by mail-pj1-x1042.google.com with SMTP id a17so1650971pju.1 for ; Tue, 27 Oct 2020 17:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AA5sUxQC0TzvMvztNTsNBiS9hjaPWFs3L0pV2RCeVCQ=; b=cFu3RROb8HerV91637dahb959/v3zGz12qdohaw3CbVXjHgtbTl4pb4FtyA1TBxsFh ARFWODSeeyRdDxK1bzEgNFQ/eu43eOjB1n7I3cHgGL4IOgpB+59Iow0IxXXLEc3WLdjW DQ/boZvA9BPx+qADnLsfaqMWNNfFTFh7RgfBQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AA5sUxQC0TzvMvztNTsNBiS9hjaPWFs3L0pV2RCeVCQ=; b=EuIbvzxad2sumxfShBPL8ZxNriM15c0M1lm3yy79iV6rJXQ4uoBEMqCYEP51KVE3E7 pfhMTQzuy56chEk1pmdDoVYRwFPVWdSqMIVJ9c5w1kywc5fpIDQ3PF+JC5pO/HfbvBqf UIWblADmeCsIONJ/bYx+KWtWF6baOFRJ1yTNSbNTzsapRZ4josXoSxe7bED1vfXUdMcU PJn4tsLorRC8NTTPJXY/jjyI4YeBv1qI2uTCsPLR20HhAdsk9Zf69r49C/BkO8VFo3nr L6qcu559rILv9ouua/cESmMHyjxOcEe++7JHZ1k6JBjCVZ4fb9H3sGZAgn4TQzzKGi07 0qHA== X-Gm-Message-State: AOAM5316mxOeTYBJGDf96uq/9W8O4Hk7goXHMrFwNksrziHj89hNEAa9 mKZhj+5kptSuNMr6hYArUpszxw== X-Google-Smtp-Source: ABdhPJyH8tNmpEDjJqnb6yRxcQoJKk39+PzVY1/Hv1jqc6NQbytsBeAMKVuiVn9Y/vZO8OxKrxSHsQ== X-Received: by 2002:a17:90a:d3d5:: with SMTP id d21mr4169030pjw.168.1603844405743; Tue, 27 Oct 2020 17:20:05 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d26sm3453969pfo.82.2020.10.27.17.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 17:20:04 -0700 (PDT) From: Kees Cook To: YiFei Zhu Subject: [PATCH 0/2] seccomp: Add arm and arm64 bitmap support Date: Tue, 27 Oct 2020 17:19:58 -0700 Message-Id: <20201028002000.2666043-1-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201027_202009_531286_9A51ACDB X-CRM114-Status: GOOD ( 13.51 ) 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: Will Drewry , Kees Cook , Catalin Marinas , linux-kernel@vger.kernel.org, Russell King , Andy Lutomirski , Will Deacon , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, I took a quick look at arm64 and arm for enabling bitmaps, and figured I'd send these patches to show it. I'll take this via the seccomp tree if no one sees a problem. Thanks! -Kees Kees Cook (2): arm64: Enable seccomp architecture tracking arm: Enable seccomp architecture tracking arch/arm/include/asm/Kbuild | 1 - arch/arm/include/asm/seccomp.h | 11 +++++++++++ arch/arm64/include/asm/seccomp.h | 15 +++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 arch/arm/include/asm/seccomp.h