From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60BFEC3A5A4 for ; Wed, 28 Aug 2019 21:40:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 351142339E for ; Wed, 28 Aug 2019 21:40:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="TTypgjtb"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hP0eYnVn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 351142339E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Z2ytBJz9ILG0tIcXbXiOomGJlT+//xkecHoIiS/Rru0=; b=TTypgjtbld0XoP ue2YPwyCnGwPhnVX20XYCF7/S2cxPAUt3e96bH32Xh3cbWYqlh5uvd75CLQpXroDmkFkpBxqG+Wqz TdKPtgjxFHQEoVM5tjh+dfLs4r1i/rvpL4c5Dw4nXWhsOzHUEGLgYaLKBwGHd3cjO6VA9mVMsiyPi wDQ3vQrvpAIR7Mv3hadN/xWi2wqKJSt8ra2VtO8D2RDKEkD1BtocQ96qj29C6EXzQkqEuMiPxTt8N c0ZZ8/qVwa0S2wZD9B45m6i/cmJKwDqyDNOmfMB3TAEF9ac9uNk7th0QNbGVyr2AMeh5DYS8nlyP3 /hQoawgdDlFE6z8bqCnA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i35gF-0007b5-JR; Wed, 28 Aug 2019 21:40:39 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i35gC-0007af-N2 for linux-riscv@lists.infradead.org; Wed, 28 Aug 2019 21:40:38 +0000 Received: by mail-wm1-x341.google.com with SMTP id v15so1578639wml.0 for ; Wed, 28 Aug 2019 14:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fl6SJhDThIzLVktnxnUQoR6p6jMmSRZeGxNzVfHmfGc=; b=hP0eYnVngg0lq1hP3JK2h2x4x8ZP/LkgNSObaO5dsLMMR2EJ6hZWoQU0HSs2LYhSsb jZvfF3tenLWEI+TfyOXld/nC78gwghtTXq74BisZRBq370GK9BohnQcL+QB/VOVBzyRN sHUYswv7Krf01vNRoTte5Qv63es97SoJOsPRRwu8NnmyqYX+eL8ro9JYWEOuONfzdNxp QKIKfpzf935Zo9T1KzQ35aqV+s9JSs1l9PnjjYCoAWY3soLZBXfPod0i/RQpPZVAIXjn 8cFh1mpvHFd7YJpzBB7JyY2kJ8UTY+oxj5b63/JZLCRI08fYwRk3aBygjrSbuM3d0PUe pxqA== 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=Fl6SJhDThIzLVktnxnUQoR6p6jMmSRZeGxNzVfHmfGc=; b=brb04Dn5xqPivDb5zHWt3aZRgo6FviRZCMT7lrPks40IQfA+e0jYcT1xYis/QPN8Bt 7Sn4l7Q3x4An9NEJozaHyDX8nYE2VoMjLY+AOH6R4IQBVUG6m0jFDgXoOYrQIqgbGPxE 7c5v+LTUbREsXEuQiIyta4C4o4fwCNVyW/BXSvWcPBUsToN2uVkWxMuAGIQW7Hf/PNeG nUH0IsH6bU1kU2pSdTMb5jqz/WNeiWkPkTRHepIw3k+IO17IfBjXM4o8gPAE+rU52zXv wvH4PROl/07ntS61H0J/DyqwkmiTvjhoSSVBbP2vHr53Xsfz+SvdA63/HNCbKh0qVPjZ QY2g== X-Gm-Message-State: APjAAAXCMQFCuPCcBrf8eFF8I1SJ8k0ipGNCR6O5f1bRBmVszd3tiDXs CTRhT5dRnqG9rxIJK6eSkSlhGRFQtip5fRIYB+g= X-Google-Smtp-Source: APXvYqxOcImQNzypGFeVWXGp9py8wxlKFKPpz27tdDyzrs1uINU6LbYMgXisOoMzDrWVf3NaJrKHA50+j9kgwxhzJro= X-Received: by 2002:a7b:c3d4:: with SMTP id t20mr7052016wmj.71.1567028435172; Wed, 28 Aug 2019 14:40:35 -0700 (PDT) MIME-Version: 1.0 References: <20190822205533.4877-1-david.abdurachmanov@sifive.com> <201908251446.04BCB8C@keescook> In-Reply-To: <201908251446.04BCB8C@keescook> From: David Abdurachmanov Date: Wed, 28 Aug 2019 14:39:59 -0700 Message-ID: Subject: Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER To: Kees Cook X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190828_144036_754768_AD556786 X-CRM114-Status: GOOD ( 18.15 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Song Liu , Alan Kao , Palmer Dabbelt , Alexei Starovoitov , Oleg Nesterov , linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, Shuah Khan , Tycho Andersen , Daniel Borkmann , Yonghong Song , me@carlosedp.com, Albert Ou , Alexios Zavras , Paul Walmsley , Thomas Gleixner , Allison Randal , Will Drewry , David Abdurachmanov , netdev@vger.kernel.org, Anup Patel , linux-kernel@vger.kernel.org, Andy Lutomirski , Vincent Chen , bpf@vger.kernel.org, Martin KaFai Lau Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org On Wed, Aug 28, 2019 at 10:36 AM Kees Cook wrote: > > On Fri, Aug 23, 2019 at 05:30:53PM -0700, Paul Walmsley wrote: > > On Thu, 22 Aug 2019, David Abdurachmanov wrote: > > > > > There is one failing kernel selftest: global.user_notification_signal > > > > Is this the only failing test? Or are the rest of the selftests skipped > > when this test fails, and no further tests are run, as seems to be shown > > here: > > > > https://lore.kernel.org/linux-riscv/CADnnUqcmDMRe1f+3jG8SPR6jRrnBsY8VVD70VbKEm0NqYeoicA@mail.gmail.com/ > > > > For example, looking at the source, I'd naively expect to see the > > user_notification_closed_listener test result -- which follows right > > after the failing test in the selftest source. But there aren't any > > results? > > > > Also - could you follow up with the author of this failing test to see if > > we can get some more clarity about what might be going wrong here? It > > appears that the failing test was added in commit 6a21cc50f0c7f ("seccomp: > > add a return code to trap to userspace") by Tycho Andersen > > . > > So, the original email says the riscv series is tested on top of 5.2-rc7, > but just for fun, can you confirm that you're building a tree that includes > 9dd3fcb0ab73 ("selftests/seccomp: Handle namespace failures gracefully")? I > assume it does, but I suspect something similar is happening, where the > environment is slightly different than expected and the test stalls. > > Does it behave the same way under emulation (i.e. can I hope to > reproduce this myself?) This was tested in 5.2-rc7 and later in 5.3-rc with the same behavior. Also VM or physical HW doesn't matter, same result. > > -- > Kees Cook _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv