Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3458426ybp; Sun, 6 Oct 2019 12:22:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJRc9HbzeZ4hEEh3SUKiEgEAkBKL8iad8P5ZKCkSALg6A+f8IhFurITrhuUwTicslL7ZgZ X-Received: by 2002:a17:907:20e4:: with SMTP id rh4mr20941350ejb.59.1570389761241; Sun, 06 Oct 2019 12:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570389761; cv=none; d=google.com; s=arc-20160816; b=oAwbQC4HeWgK5NNkFZHjESdyl0gOwt4NSuq/6c2uvmaUsASz0OLwSG+WI/nZYm3Kal oWCJfkx6v7do9QaePZH9Ag/YYLBxvDKc6gER5JQ0nj0o4H4nqO8iO52E1nQ9eTBjp3tJ nQkmfT7TizS/ahSEJTIknlePnT4IIiZo23bVHS46rBJpXA/xjQL8zF6GYLGYxGJTufZg bqfU7XydzataRLxYBGQ3SNKtoAdlDsDbW1zWNZVJhbLfDwwfIGLJ8D+Cv4WA35AwWWPa VrvPCd8qmjWA8ik5NqUHCAQiF7glY2r1bOjhp/8bOOJ9woVl6RYwez/QviDjHv5DrecU 5HVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zjN7bUMp9rG4rVrcrwuC3HytgT9Tf+Oon3SwFPJusYs=; b=CiWgtb/LtkgX8rYASERYsp+adW/YdSp/xc0aWos7bDbPVcjIfcjSo/WbLMtpjkq0cw jUGVQyx5rNXNR3ByAgkZfCfL7eS7sjO85tnLAFRltvRxAAfys5JH9EkPcQ5h7oNZMsmW TAglUC1/K0dsSjjTNEbODznJaD/xgAOCJghh7lPdwznjZljCwLpAcrl/YcFNdZ6DaGAP 7XFM8mVIcfklrXBX5bUkp8XRYzfqh3NX9nZJnhhf1cQ53CV7DUvV7CCgAGzsdtdWu01f NOBhm6J3vW03WS3m2RPVufaweezu70JpQ7VHabW1IoOsZ1DA2ViCGB2eOGFjaYgvdULx xH8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yoHDBSHf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si5856576ejw.308.2019.10.06.12.22.17; Sun, 06 Oct 2019 12:22:41 -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=pass header.i=@kernel.org header.s=default header.b=yoHDBSHf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726708AbfJFTTN (ORCPT + 99 others); Sun, 6 Oct 2019 15:19:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:46286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfJFTTN (ORCPT ); Sun, 6 Oct 2019 15:19:13 -0400 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E67AA2080F for ; Sun, 6 Oct 2019 19:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570389552; bh=ktUpIaexhlxRiG4ce7iLuw4QHFnf1O8GxwmdLQRzKQQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=yoHDBSHfwn2R9DQNKNey6IjgYQQ3iKumA9xVSa4w7i0ZBbVIjDv7j4kF/rzp6dak+ g+yjLDpx0ycO6XeI4GT37gZAk6+zY6rrqL9xPsh93vnexztlzjyD1+CL1A0VKcY7bU RNHZComg9ON5ELsv2hs0AaFM4rfSAe5HKQvYxpnE= Received: by mail-wm1-f44.google.com with SMTP id 5so10365954wmg.0 for ; Sun, 06 Oct 2019 12:19:11 -0700 (PDT) X-Gm-Message-State: APjAAAUkO7e+rz6Fxfqnm4MOsy77Sl4LjWIfIsRzTF4SqyaaoYa3jrEy La8PlwYZiUMbWq6F3SCpNu/Weo8S7PidkFBEFE2hgA== X-Received: by 2002:a1c:1bcf:: with SMTP id b198mr19073715wmb.0.1570389548492; Sun, 06 Oct 2019 12:19:08 -0700 (PDT) MIME-Version: 1.0 References: <419CB0D1-E51C-49D5-9745-7771C863462F@amacapital.net> In-Reply-To: From: Andy Lutomirski Date: Sun, 6 Oct 2019 12:18:57 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER To: Andy Lutomirski Cc: Palmer Dabbelt , Kees Cook , David Abdurachmanov , Paul Walmsley , Albert Ou , Oleg Nesterov , Will Drewry , Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , David Abdurachmanov , Thomas Gleixner , Allison Randal , Alexios Zavras , Anup Patel , Vincent Chen , Alan Kao , linux-riscv@lists.infradead.org, LKML , "open list:KERNEL SELFTEST FRAMEWORK" , Network Development , bpf , me@carlosedp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 27, 2019 at 1:58 PM Andy Lutomirski wrote: > > On Tue, Sep 3, 2019 at 3:27 PM Palmer Dabbelt wrote: > > > > On Wed, 28 Aug 2019 10:52:05 PDT (-0700), luto@amacapital.net wrote: > > > > > > > > >> On Aug 25, 2019, at 2:59 PM, Kees Cook wrote= : > > >> > > >>> On Thu, Aug 22, 2019 at 01:55:22PM -0700, David Abdurachmanov wrote= : > > >>> This patch was extensively tested on Fedora/RISCV (applied by defau= lt on > > >>> top of 5.2-rc7 kernel for <2 months). The patch was also tested wit= h 5.3-rc > > >>> on QEMU and SiFive Unleashed board. > > >> > > >> Oops, I see the mention of QEMU here. Where's the best place to find > > >> instructions on creating a qemu riscv image/environment? > > > > > > I don=E2=80=99t suppose one of you riscv folks would like to contribu= te riscv support to virtme? virtme-run =E2=80=94arch=3Driscv would be quit= e nice, and the total patch should be just a couple lines. Unfortunately, = it helps a lot to understand the subtleties of booting the architecture to = write those couple lines :) > > FYI, it works now: $ virtme-configkernel --arch=3Driscv --defconfig GEN Makefile [...] Configured. Build with 'make ARCH=3Driscv CROSS_COMPILE=3Driscv64-linux-gn= u- -j4' $ make ARCH=3Driscv CROSS_COMPILE=3Driscv64-linux-gnu- -j4 [...] $ virtme-run --kdir=3D. --arch=3Driscv64 --mods=3Dauto --root [path to a riscv filesystem] This is with virtme master and a qemu-system-riscv64 from qemu git on my path. It does *not* work with Fedora 30's qemu. So now you can all jump on the virtme bandwagon and have an easy way to test riscv kernels. :) Although, if you want to run kernel selftests, you may find the process of actually running them to be more fun if you use --rodir or --rwdir to map the kernel selftests directory into the guest.