Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp48426pxk; Wed, 30 Sep 2020 17:29:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWXnyFPLN8tYJXRrBpDpZwScbQd8IjNH9AP9Fd/clOKxBW+CMQ0h+nVP2A53lO5YoBMN7W X-Received: by 2002:a50:fb15:: with SMTP id d21mr5768878edq.150.1601512186885; Wed, 30 Sep 2020 17:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601512186; cv=none; d=google.com; s=arc-20160816; b=m7JweF+6Ywr2AfK+PYGP04+gpVi8P9YMlsI6q/0Tes8apwpE2+dS16AMKeXyk7jc/F 98xA4XNju3YMHT7bBuwMD7XSa88xWFdO8RnGsPltsbdbG0XbZN6HmRd70/0B3BKXcsTF CLKxaoneRcZqUFLRzd0Ad+T1tziY1F1gQSaNDU1iqawDUv6s2FzRx7I6eaTPpfEBkmWx w9nUAm0LSFHuPcSA6z64pC3t3HHBp74YH8lp9hJVRsC0axXusH5NFyqHEoMxiE6vKBb+ mOYQL6iWGi6bdP246D/s/iRUlS35ljB3CN9W3CBQQZjlzYqTMa1KXEnALgLLzWAqeD6/ reYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7NtR8Af5mbsnJurMxCwsT1Qowr1kj5d6Fb9bCF6cp9U=; b=ml5rLXLuIEe4KdO5FMtiev8Py4mYCFod4ZjYyJmCQ4zsR7iFQQR20YdsqMQAT5PzJo x2hLXfIsA+hYIWEexAxFBSXvsvoV+atiyUGx+Q6fCoJpPgEfbSDj4qD2scV/BT+sKkVF S56F+Akqhkx8mecVGbf5DIvmHaAuNVt7bcUe+DaH/TDeK2jK/uV2XerFsOSmBzoxfISq jKiNQa23tFVxA2vUThvOys1GmbIz+/zbHiTYxDxLowpYKh+x7SbJfT4EzAevG2OFgqqg j+17oDh5Q6sXW6IL7D2WiWgx1aC7AajMPDCvIdaWeN5i7vCywy7GmG6IPAQn6BYInFV6 TjJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pw30qPK5; 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 bm17si2294358ejb.356.2020.09.30.17.29.24; Wed, 30 Sep 2020 17:29: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=pw30qPK5; 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 S1732159AbgI3XPz (ORCPT + 99 others); Wed, 30 Sep 2020 19:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732128AbgI3XPy (ORCPT ); Wed, 30 Sep 2020 19:15:54 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94207C061755 for ; Wed, 30 Sep 2020 16:15:54 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id i26so5231044ejb.12 for ; Wed, 30 Sep 2020 16:15:54 -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=7NtR8Af5mbsnJurMxCwsT1Qowr1kj5d6Fb9bCF6cp9U=; b=pw30qPK5acsamYkNqSxjNDViySQWHBINt4pgak0I6oN9BDI2yBlrAFZ7PYx4lB9T7Z HSrQSc1m3X5dyYBHGoAmUL/eyRBqa4xUzqWaH7PPDscJ1Ae2Zj08246uHc//sWeYewck 53vyf72uWa6WOVK8gjf/qYZCkdVIPELn9Fli/FR8OcSgczqjUafRdcOgWuLdh2XYL6bq 9yo/Wp/DaQt/aD69hGgaaI814TkUEQgm3uAVeUNGSM2dH5tXzayx9rjzSQhya0noqQzX nlRgaN7NdT0G8csaLaoJ6G5fx7nFre50Qp1dtsv6Mz5h6A9s/9Z2tcPJRzbi7ACupfCp 9b6g== 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=7NtR8Af5mbsnJurMxCwsT1Qowr1kj5d6Fb9bCF6cp9U=; b=QzmIXAZ+L1Um9qAiwo0mALfUgBZPtWYCh/8NqDUY/xNs1VGSs/tKROJQiAG9evDvH5 z+mU1sVMdEbhDUKA5YQ1gSTx0c/TrKvXncKxUNQ2pNF9tabX97Qppipyqo3n97J+dask syL0PXOpWifvG7KdKV+HV+VHf7KLKdsjucDrxEeLRvlS1nPaElpGaL6ACt0/FdhJlqQj +OFw9aJ19pJ/LJ4euZ4s0ufCJLn4keGo5e5kO2pr4mQDdMehh+cQpZA8xy1tFw5laaUE Vv7onGwpOCD//+4e2RDg0Av+WzD2Rl5M6nSsGe2llRkFQuRCrN5xtJi+Io+u0DmAzEhU pecQ== X-Gm-Message-State: AOAM532hjcxAUS5rkHO77pGEr9w4aed5g9imPUUu2tomKa7LsAkNZXNV sjmkvEWls757QCJCzd13nJyVwoktMHHT9HsabUNEFc2cAyo= X-Received: by 2002:a17:906:980f:: with SMTP id lm15mr5403777ejb.184.1601507753153; Wed, 30 Sep 2020 16:15:53 -0700 (PDT) MIME-Version: 1.0 References: <484392624b475cc25d90a787525ede70df9f7d51.1601478774.git.yifeifz2@illinois.edu> <202009301418.20BA0CE33@keescook> <202009301549.17D3DE5@keescook> In-Reply-To: <202009301549.17D3DE5@keescook> From: Jann Horn Date: Thu, 1 Oct 2020 01:15:26 +0200 Message-ID: Subject: Re: [PATCH v3 seccomp 1/5] x86: Enable seccomp architecture tracking To: Kees Cook Cc: YiFei Zhu , Linux Containers , YiFei Zhu , bpf , kernel list , Aleksa Sarai , Andrea Arcangeli , Andy Lutomirski , David Laight , Dimitrios Skarlatos , Giuseppe Scrivano , Hubertus Franke , Jack Chen , Josep Torrellas , Tianyin Xu , Tobin Feldman-Fitzthum , Tycho Andersen , Valentin Rothberg , Will Drewry Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 1, 2020 at 12:53 AM Kees Cook wrote: > > On Wed, Sep 30, 2020 at 11:33:15PM +0200, Jann Horn wrote: > > On Wed, Sep 30, 2020 at 11:21 PM Kees Cook wrote: > > > On Wed, Sep 30, 2020 at 10:19:12AM -0500, YiFei Zhu wrote: > > > > From: Kees Cook > > > > > > > > Provide seccomp internals with the details to calculate which syscall > > > > table the running kernel is expecting to deal with. This allows for > > > > efficient architecture pinning and paves the way for constant-action > > > > bitmaps. > > > > > > > > Signed-off-by: Kees Cook > > > > [YiFei: Removed x32, added macro for nr_syscalls] > > > > Signed-off-by: YiFei Zhu > > [...] > > > But otherwise, yes, looks good to me. For this patch, I think the S-o-b chain is probably more > > > accurately captured as: > > > > > > Signed-off-by: Kees Cook > > > Co-developed-by: YiFei Zhu > > > Signed-off-by: YiFei Zhu > > > > (Technically, https://www.kernel.org/doc/html/latest/process/submitting-patches.html#when-to-use-acked-by-cc-and-co-developed-by > > says that "every Co-developed-by: must be immediately followed by a > > Signed-off-by: of the associated co-author" (and has an example of how > > that should look).) > > Right, but it is not needed for the commit author (here, the From:), > the second example given in the docs shows this: Aah, right. Nevermind, sorry for the noise.