Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp581155ybt; Wed, 17 Jun 2020 08:36:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEyz6+6WkuubqRZvxerb889ZXXnyyFLf2HRuXC5Kk/hqXV5QvmW1n+vzLJif5tBcumgKVX X-Received: by 2002:a50:aacc:: with SMTP id r12mr7748762edc.219.1592408206011; Wed, 17 Jun 2020 08:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592408206; cv=none; d=google.com; s=arc-20160816; b=O2CwaBg9F/SpEjFQ0zskRm5gAaKTFWbYniT65GoVeeIJKobNU8m6o/OFWlVVLRJb6v zwLP8S/xoqnTBGR384Cb1ezTqdGXr9pEovz5Wr74guuqbUA3EbQRA/Y+0CUkwtRLYOoi vI79Ga8qeYOUHxUdJcgabhdFgX906h5nThMfcI5BaumhCdPsPUlfoZMg5bUzwVwdyGW2 H/h3Ptc3eaXxY70CNqMbHd59IMd46SlufzGRPjaDF8R0F9nRccUTUb5DPFU7SDv+aCYD NPJoIyww35BX9wkbRMAZ5MiGZeK7/N/RIiwENxmFrLkyHwRQkDU02xgepQtQtXY1wp99 RSEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=l32XRyEkePlebWnUae8i7rcm+cLkXuxHO0S9jd5PcS8=; b=vttpVOpPZ6aHf85ecesveE65rWlNrMHCZWhJLonUZAUH/39lcraCx/n9Fm7xh4iira EaxCY0Psq84TNoxce1Ahcs7/HdOqjpLq0yIKJLP+XflzGNYZUHhw5g2omc1MzbKLabX4 uTW2+nx5lDnmchKDPU3P2Z0PpyYunhZEOQTZOxpYxenK/N6zVeq9BAHH8x+6l8/HB6YI cNeJZlUR2pbVUpP2SMVc6mkvSKJ52NuAHMhzLT+pvdf5SpqmZhKfRjQSPjtITeSoOAfo /rRCQRKY5IoZ3KRFdCFTDlRk4f9ORETbs13ETqEihg3W/eimtAO4eiwremRD+2bXr2bR aiCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=sSpczcE6; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw24si116209ejb.518.2020.06.17.08.36.23; Wed, 17 Jun 2020 08:36:46 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=sSpczcE6; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbgFQPc3 (ORCPT + 99 others); Wed, 17 Jun 2020 11:32:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726836AbgFQPc2 (ORCPT ); Wed, 17 Jun 2020 11:32:28 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE4B5C0613ED for ; Wed, 17 Jun 2020 08:32:27 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id n24so3364586lji.10 for ; Wed, 17 Jun 2020 08:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l32XRyEkePlebWnUae8i7rcm+cLkXuxHO0S9jd5PcS8=; b=sSpczcE6lMjOla0Qq7Ojd8fn4tDSWBrhMmLDDt6LJ86Y9mjbQV+bTQXs9ttXlzP4j6 kbP2DWE/BTuY4ZH4z2UoHE/D5Jj6eentsfqgd+Z7BrEVUdToZJhvZGbLyWrjbNkkK+hU CquzCzK5nJvm44QjUxLVvNdw6EDRR42+qHY4xHcMCKUv2aNHRlMxEMZ2vgU+oDZT2j7s aHEu6RVQo91uJ/ZRi4J/bntJVWz8VDfVO9ZuRCll0hoHo0KvtsN0OG6rk19jkQYPFLOe 6TSwCIE1a9yX0Dp6wEJkiLCMlX/avsVKvOWBggMzfFxk9XYZKknnkyDOu++F6eSC8j1p T2ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l32XRyEkePlebWnUae8i7rcm+cLkXuxHO0S9jd5PcS8=; b=Pknj8LihDfG+7EH1VKxZbyo8Q9PhLrM2E6RZ48dX3IsOl3dHIe0PpXfmKezfmiLiTB eJYDZBru24dmJXdZgECMAg7/L84hBVyJb+gSPrGHGtPaDsEQKLJqbRHRSGzAp30KZ7Rr 9oJ4guvMyC7r5LqootHWSCMrMGlqHryjCUGp+drKUzWJdpdiKQSlaInA2c+SPnMNbrLR okeDR9+P71r1ZS3QJ8CkEa6uIpvz1+0ZBKGeXjL/dX27UQppoVvx8FtOyVusP9ir7lVO H6Lsv7bEJQyxc8ZCL75GhfD8M0MF+5lBrNUNZ2XkLfxsK2xx7NkwvbM02Xg334YYp56H DaBw== X-Gm-Message-State: AOAM530a0LYJsbAjzM8DSkKM+AEN6gRs/cF4LeE9H/qpmr9X053fg/mJ iBwiPXMqlv6syDDXGFw/1TLcgJrsI7TKVNGHdUwT3A== X-Received: by 2002:a2e:541e:: with SMTP id i30mr3989852ljb.156.1592407945965; Wed, 17 Jun 2020 08:32:25 -0700 (PDT) MIME-Version: 1.0 References: <20200616074934.1600036-1-keescook@chromium.org> <20200616074934.1600036-4-keescook@chromium.org> In-Reply-To: From: Jann Horn Date: Wed, 17 Jun 2020 17:31:59 +0200 Message-ID: Subject: Re: [PATCH 3/8] seccomp: Introduce SECCOMP_PIN_ARCHITECTURE To: Andy Lutomirski Cc: Kees Cook , kernel list , Will Drewry , Christian Brauner , Sargun Dhillon , Tycho Andersen , "zhujianwei (C)" , Dave Hansen , Matthew Wilcox , Shuah Khan , Matt Denton , Chris Palmer , Jeffrey Vander Stoep , Aleksa Sarai , Hehuazhen , "the arch/x86 maintainers" , Linux Containers , linux-security-module , Linux API Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 5:30 PM Andy Lutomirski wrote: > > On Wed, Jun 17, 2020 at 8:25 AM Jann Horn wrote: > > > > On Tue, Jun 16, 2020 at 9:49 AM Kees Cook wrote: > > > For systems that provide multiple syscall maps based on architectures > > > (e.g. AUDIT_ARCH_X86_64 and AUDIT_ARCH_I386 via CONFIG_COMPAT), allow > > > a fast way to pin the process to a specific syscall mapping, instead of > > > needing to generate all filters with an architecture check as the first > > > filter action. > > > > This seems reasonable; but can we maybe also add X86-specific handling > > for that X32 mess? AFAIK there are four ways to do syscalls with > > AUDIT_ARCH_X86_64: > > You're out of date :) I fixed the mess. > > commit 6365b842aae4490ebfafadfc6bb27a6d3cc54757 > Author: Andy Lutomirski > Date: Wed Jul 3 13:34:04 2019 -0700 > > x86/syscalls: Split the x32 syscalls into their own table Oooooh, beautiful. Thank you very much for that.