Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp48338pxk; Wed, 30 Sep 2020 17:29:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweBV5bKIRdZMJhtUl5+P2KLDrEdSk2eAOk7mv1rNzV+HutQ6JnDN7OSA4s/CKQjCjzjB/e X-Received: by 2002:a17:906:4d03:: with SMTP id r3mr416978eju.364.1601512175098; Wed, 30 Sep 2020 17:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601512175; cv=none; d=google.com; s=arc-20160816; b=FxUZ8FRDgCwwxHZyRp/kh/nZPMpa1YO0w+PbeDDFA4ZnyQ3Pm92LE+SyDBo+mVWNyq 83D+/nNlKvzBnWWIoL1pCEYfS+KMif9My4oscLPDBK3fBI3U4dO6J/pfPV/QoohIQcW6 h+0Tg0el4KvaxvUZdEoKax3mdY2EMLiyk99hbuVGelJydZJvzmk4j+9xYQWuEM6tScjj LNZLmTiH/9tWSx16xT7Cz5OCv35fkOXMF6b5PwibwGuV9el0WAgGlsRCj2fIy2lKTSgn gHFrnZdHH5Ml/hbbfFz1O0ju3fDeuNJVtX+b7VbZYYLshAd53CQQy8zkK3RnLVDDr7Mc mNXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xT7z4KWpY1tW0DUzf7kauPlyM86hsIyuR+DbyM/kIF4=; b=mdeP7C3oodiH1fzYvlq22/8OkrSxx81wJHnbvia4QyotAhWgaTprS7uZ6QgyNtkEGe f0KFMWfn4AyniTuYCBl+RRd6IN/UN/n0yK9NANNT/02Baog5HggZSl1RQ4AdKG0bvdZU 7Vtl1jyTM0QOV4x38Rwd5g0cOydXBCUKcFXKdOVZB+alNEbmrDYQdKADZ8ROB3DUUGsu wrMIiYwpD6xcy4QRihoRnCVuWUueCNCpoTcOx8uNOW9+f+GTuGEOUHuotKVwB08mew/s zJWIsaKKS7aiecGYnOKLmM5FEbuU/ttj73OyAGLXUBK8LsYFig+7Jjw8ST9ZmY+grRuB e7sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dJSvn+nV; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh2si2261798ejb.228.2020.09.30.17.29.13; Wed, 30 Sep 2020 17:29:35 -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=@chromium.org header.s=google header.b=dJSvn+nV; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731890AbgI3Wx6 (ORCPT + 99 others); Wed, 30 Sep 2020 18:53:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731870AbgI3Wx5 (ORCPT ); Wed, 30 Sep 2020 18:53:57 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84FFDC0613D0 for ; Wed, 30 Sep 2020 15:53:57 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id t7so767787pjd.3 for ; Wed, 30 Sep 2020 15:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xT7z4KWpY1tW0DUzf7kauPlyM86hsIyuR+DbyM/kIF4=; b=dJSvn+nVMHOhyyebiONq5L1qo38q1OX51JVgtEQrhaCb9Ko8DFOcatX2GGKv2OpzZr sIvN3Ky6KPhHJRJx//ba2NE4yw/9fp3TyA2uoDw7vHOSexKqne+cqwQpImU41Lyz31Bo HucnSHirKztZuVWWFld/RQCHHttbmiGQcpaww= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xT7z4KWpY1tW0DUzf7kauPlyM86hsIyuR+DbyM/kIF4=; b=MMwCU/dMrXHGjXaLFqlNcoPDsATSxBwhPmlYfdQP6lkjxoRblXEsw8JAuDEJD6loU+ XGZlGEkM+C7IYQ/tLWxaN93kF8iVEhZZbeFwfgirl8pox7TdkGiANUG5arfSbPUBNlWE +NSitDfvxdxxcH3jCEuLv6ckXkry4wxALw5eWBM/Q77/x321t9xB+9pdXOCxzuSEWAvM 7Wwu2n5Kcu6wvb/OyaCbWdup1G5dQU9+Sat7yLinODW9sYN39YEgF4d/0xID0oxPKCNP xcXToQGQgIOExDeseFVHWKdbEfHVrVsyOJjDnwdClMH9bo9Ve4Vx/hcpPKjTtSHzbFPp MQPQ== X-Gm-Message-State: AOAM530L8gTUTV2q1KxNF+I/BI8jIbYr3Iyw/cP6sHNc9eOXwzBB/9PN J50lsPl2EeincyBj0/Lfx6pWUQ== X-Received: by 2002:a17:90b:ecf:: with SMTP id gz15mr4360289pjb.126.1601506436994; Wed, 30 Sep 2020 15:53:56 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 1sm3974626pfx.126.2020.09.30.15.53.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 15:53:56 -0700 (PDT) Date: Wed, 30 Sep 2020 15:53:55 -0700 From: Kees Cook To: Jann Horn 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 Subject: Re: [PATCH v3 seccomp 1/5] x86: Enable seccomp architecture tracking Message-ID: <202009301549.17D3DE5@keescook> References: <484392624b475cc25d90a787525ede70df9f7d51.1601478774.git.yifeifz2@illinois.edu> <202009301418.20BA0CE33@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: From: From Author Co-developed-by: Random Co-Author Signed-off-by: Random Co-Author Signed-off-by: From Author Co-developed-by: Submitting Co-Author Signed-off-by: Submitting Co-Author and there is no third co-developer, so it's: From: From Author Signed-off-by: From Author Co-developed-by: Submitting Co-Author Signed-off-by: Submitting Co-Author If I'm the From, and YiFei Zhu is the submitting co-developer, then it's: From: Kees Cook Signed-off-by: Kees Cook Co-developed-by: YiFei Zhu Signed-off-by: YiFei Zhu which is what I suggested. -- Kees Cook