Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1344771ybl; Fri, 23 Aug 2019 18:12:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqx41nYQ4C97ZC0jHIJgrjjoRG+xee9qtsUcSFjO4ZKmwwF3MU6n9MzlTiptVD+vaxwPtuG3 X-Received: by 2002:a17:90a:9f09:: with SMTP id n9mr8115101pjp.72.1566609120662; Fri, 23 Aug 2019 18:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566609120; cv=none; d=google.com; s=arc-20160816; b=flUAWoy6+702NcsUOZW/sG95/RcJxhS+PgnkrH2dhxj2P+SoyLZ6SN4H+W18zZZZ3n 6ID2xhI8uL89bR/SAlB9WvDAnJQxYfx25dar0L1JFc5/L6OC5qgron+RVHpu/hai8L/+ gbNMS9tYSgX4zPtiesPdNQ7Yc0RIyBFeBInISU6MjvfYNVW0UmEtB0BJhUPcXUT5Cxh1 R+yCCSbzHPGKMz9ag3w5wYPU2RiAoSrnQi4RzcUPprb90oHVZbFlZ5jgkEUopTA/kKhx 5TcE1VW8GNkO5/6aK1sYZo1rBbDzkAQXpx2Vm4LZDlG33Zzbr482tOs5/yp/CfoyE1p8 WIXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=41qUMOD0eN9ewXy9evPZN0TYC9TGr+U54AtzmQ5x03o=; b=PElBLDdezp32RTbyPQ6QPZgcxLsOnoPBXMb+inPBoCk4n8loBxk3ueDEYBpNnHxIhp hSC2izBFUna5GeKhw/EiMi2RK1Ds2PIBtzWf5xjP7B7S8vcJcOH2D2iSgpSx39b21+6w mn3RrjqWuGzTJFtKhE82O1QmSq+LUTNuDaBnraxMdf5tuczBpY/QsGUA/0nrp0/2XJvr tym5/12Y/9lrT9Q0loJ5c61GlGTbGYPyqgVlM9acgOg41yE6vh9Z1CecdXia9i/CWzYY /KVNYpibpcqn74Z4oIilQIByyrOVy7fE9gOhh1TcMWXdc660v0F2WiSn6rFBGH2h+qU/ IDow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pJ1qttiH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az4si3598662pjb.99.2019.08.23.18.11.44; Fri, 23 Aug 2019 18:12:00 -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=@gmail.com header.s=20161025 header.b=pJ1qttiH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726397AbfHXBK5 (ORCPT + 99 others); Fri, 23 Aug 2019 21:10:57 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36296 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbfHXBK4 (ORCPT ); Fri, 23 Aug 2019 21:10:56 -0400 Received: by mail-wr1-f66.google.com with SMTP id r3so10120369wrt.3; Fri, 23 Aug 2019 18:10:55 -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=41qUMOD0eN9ewXy9evPZN0TYC9TGr+U54AtzmQ5x03o=; b=pJ1qttiH2/TAejvsSIaJsBfJC3X4ms0F4j8RBNKGcnx72+uqFvCTBkeN5ie4j8McDA sSURZK3R3i4+L04F5EL0a9zffYefEs0mukbwHcKkgrpvEFNCC3Df3OWVYuKhgQxXhrp0 fBT5gy3NSGdZ2UUmBj6DliklL3SPZUtjzo6U1+95QeZsoEYIPMH+beo7Om5+qjGHJt0Q Ym2Fu8SZ+8lCwmFW+ACV3nO0tmLcQOvsq0pHt37Iov0myUSBC6NX40fSUGL60YIqbnXJ Ld7Q6qjxELcwawgYKLcmbKHmKe2Cg6Oe0GzhIaPOtY8KL1lb5JhzvkslSzPFCvlL7PsB uaKA== 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=41qUMOD0eN9ewXy9evPZN0TYC9TGr+U54AtzmQ5x03o=; b=cvvccKQOM+8cXqVneBeE35sBAwKeNG1LYp1pyIs7Qlm56gNOGb0akRdbbIaPgmiXFn TtSqO4gLWf2mwCwJ9tftduGUVhMTX5tIWin8Ob/KbnUld8BVQCM6J6zdU8ciS2wAq7tk TqCiwcviXNIwzlWLk6BqnvAmJ7HbAQ9LdEkvcZZC8I/c2hyAPJeTst1bcsknBrlwUEIP omfA03wrsnFPgeMzwyknG/UBLJ9wIbF7ykQT9aNoaklex2w1TYyLLcqIHSI3AdYi4INa aUomqaYycfcnAGGlhGA1ATFAi4RehThqJGZfYqnljj7jZSqGT5KBEj0IqUfvwbsnifHz rISQ== X-Gm-Message-State: APjAAAWDrQCbIZzIwsNba3Terj3iyRTpPKLgF0T/cfU1c3SezWmdoW6W T/yyIw7bl8g58Ka/Cn0CtMTkoe3Vi54GI4WhCfE= X-Received: by 2002:adf:e5cd:: with SMTP id a13mr7785955wrn.316.1566609054327; Fri, 23 Aug 2019 18:10:54 -0700 (PDT) MIME-Version: 1.0 References: <20190822205533.4877-1-david.abdurachmanov@sifive.com> In-Reply-To: From: David Abdurachmanov Date: Fri, 23 Aug 2019 18:10:17 -0700 Message-ID: Subject: Re: [PATCH v2] riscv: add support for SECCOMP and SECCOMP_FILTER To: Paul Walmsley Cc: Tycho Andersen , Palmer Dabbelt , Albert Ou , Oleg Nesterov , Kees Cook , Andy Lutomirski , 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, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, me@carlosedp.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 23, 2019 at 6:04 PM David Abdurachmanov wrote: > > On Fri, Aug 23, 2019 at 5:30 PM 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/ > > Yes, it's a single test failing. After removing global.user_notification_signal > test everything else pass and you get the results printed. > > > > > 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? > > Yes, it hangs at this point. You have to manually terminate it. > > > > > 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 > > . > > Well the code states ".. and hope that it doesn't break when there > is actually a signal :)". Maybe we are just unlucky. I don't have results > from other architectures to compare. > > I found that Linaro is running selftests, but SECCOMP is disabled > and thus it's failing. Is there another CI which tracks selftests? > > https://qa-reports.linaro.org/lkft/linux-next-oe/tests/kselftest/seccomp_seccomp_bpf?top=next-20190823 Actually it seems that seccomp is enabled in kernel, but not in systemd, and somehow seccomp_bpf is missing on all arches thus causing automatic failure. > > > > > > - Paul