Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1054402imd; Sat, 27 Oct 2018 00:56:49 -0700 (PDT) X-Google-Smtp-Source: AJdET5d8+wzTOY77AOlBPI3NqeIwWPeWuGDubYDGi81jp00I+8QbsyhCfgki7pU1ymXE8mZqVaKa X-Received: by 2002:a62:8891:: with SMTP id l139-v6mr6931463pfd.198.1540627009665; Sat, 27 Oct 2018 00:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540627009; cv=none; d=google.com; s=arc-20160816; b=XyWtnBe5S1V2hFYU/Ebhx1FfE81PlcosFTCP7pmwYwP8MwDnzaA/o1fjkhcnn2hNvK jnB0J6g43GKzhQA4F832O+FO0+E8ZwQkC1/WXkCiiX93Y5nRh6NGidyOKKyxIWhmqx2Z cZTvvwXS9Y6cX5alC+JYoJOmrg0D/XrhvSNV52dwsVYrnQIXmDdeCG0c1oepERQudi6e mJt1Clw6Fm05je5MwZZzstBcQTee+wIFShZTyD7VE56lH0V9fH/8sO0OaYkmvWk6dSKA HbYrB1CFluGTNICxuZINTAeO0y1qPtlOVuhk1O5gLGBGfO5QwuVKO7/dQ+795i5FcI2H jC4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=b2Ui2SWN6W0PFZ3iYhvFkFtR/Jm6345qBXBUwoIBs3U=; b=KQfXejut6QI+VLXIyH8pC62Va8bLNxe1QB46L5dGjY4eYvR19p6Kq31IuU2BrzKTs5 EhiK8e4qEuQqsP1MreUFkGO/ErEWC0pMIW+C3v4eCpmcWwRzXelKO/vL/E4CfRBYkPEa 4RSd9E3mGPf1fIIEY9s4Oi3EeqbatwNPWaYKgMWf6Ff2McVvaSnWUJjSrZnqBR7ua2JO 52QKKd0EmQvIppi+76pp6D0j+CXUpvt6G67kjlm0eBG4J3XVJs3L/bLpKKiJxW4CWrnh XSILJPWrhQ9Q5jOoivWMIxqZkNDoOcqwScZJczXQG57H5yBc02pk8Wmtf36UKcu8cKda 6TyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lLUAPNuL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si13749787pgj.275.2018.10.27.00.56.33; Sat, 27 Oct 2018 00:56:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lLUAPNuL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728289AbeJ0QgK (ORCPT + 99 others); Sat, 27 Oct 2018 12:36:10 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52064 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728199AbeJ0QgK (ORCPT ); Sat, 27 Oct 2018 12:36:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=b2Ui2SWN6W0PFZ3iYhvFkFtR/Jm6345qBXBUwoIBs3U=; b=lLUAPNuLWEfi5ZkWqm9WgIgxd dxt5T25Ts9xPldIIk54G6SGi5bNUhzVPz8WoSnVd9T9+I56i+Y2THijsAjV4utnhcxo7b2FzmIZEI bqTR1Ig15yEz27uAySQ0FXq7IvktMifvm7itGIUbBLSBRCdnbt7LEPSDW0kKptZbeTsmg/vOSIPvB zdWmhcDkU8CrDTuxA5U6VXjqxkA2KeFJyZK2FT0bQlOlXe9OlsuK5EUyONGEltSDWDCrKcza7Wf8u jdIjo0+AovYOUHQeK6qvtIsiYBAaYbmV+HL+UjaWkPyVlaP36xhy7NnPW46YULPJO+ixE42itO//m 8bI1pScMw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gGJRw-0006Yp-5k; Sat, 27 Oct 2018 07:56:00 +0000 Date: Sat, 27 Oct 2018 00:55:59 -0700 From: Christoph Hellwig To: Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, aou@eecs.berkeley.edu, paul@paul-moore.com, eparis@redhat.com, keescook@chromium.org, luto@amacapital.net, wad@chromium.org, Wesley Terpstra , dhowells@redhat.com, tglx@linutronix.de, pombredanne@nexb.com, Greg KH , kstewart@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-audit@redhat.com, david.abdurachmanov@gmail.com Subject: Re: [PATCH 2/2] RISC-V: Add support for SECCOMP Message-ID: <20181027075559.GB7868@infradead.org> References: <20181024204036.8799-1-palmer@sifive.com> <20181024204036.8799-3-palmer@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181024204036.8799-3-palmer@sifive.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I don't know much about seccomp, so just a few general nitpicks: On Wed, Oct 24, 2018 at 01:40:36PM -0700, Palmer Dabbelt wrote: > + bool "Enable seccomp to safely compute untrusted bytecode" > + > + help The empty line above is odd, please drop it. > +++ b/arch/riscv/include/asm/seccomp.h > @@ -0,0 +1,10 @@ > +/* Copyright 2018 SiFive, Inc. */ > +/* SPDX-License-Identifier: GPL-2.0 */ The SPDX tag should go into the first line. > +#ifndef _ASM_RISCV_SECCOMP_H > +#define _ASM_RISCV_SECCOMP_H > + > +#include > + > +#include And while at it I'd drop this empty line as well.