From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#47708: 28.0.50; SIGSYS test failure with seccomp-filter.bpf Date: Sun, 11 Apr 2021 19:49:47 +0100 Message-ID: <87wnt8odv8.fsf@tcd.ie> References: <87r1jharjy.fsf@tcd.ie> <87h7kcpww3.fsf@tcd.ie> <875z0spwm6.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14560"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47708-done@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 11 20:50:37 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lVfAK-0003fa-Cw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 20:50:36 +0200 Original-Received: from localhost ([::1]:38822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVfAJ-0002CL-9R for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Apr 2021 14:50:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVf9o-0002BZ-VF for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 14:50:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44329) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVf9l-0000b0-Qt for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 14:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVf9l-00045F-P9 for bug-gnu-emacs@gnu.org; Sun, 11 Apr 2021 14:50:01 -0400 Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Apr 2021 18:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 47708 X-GNU-PR-Package: emacs Mail-Followup-To: 47708@debbugs.gnu.org, contovob@tcd.ie, contovob@tcd.ie Original-Received: via spool by 47708-done@debbugs.gnu.org id=D47708.161816699915681 (code D ref 47708); Sun, 11 Apr 2021 18:50:01 +0000 Original-Received: (at 47708-done) by debbugs.gnu.org; 11 Apr 2021 18:49:59 +0000 Original-Received: from localhost ([127.0.0.1]:55875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVf9i-00044q-RX for submit@debbugs.gnu.org; Sun, 11 Apr 2021 14:49:59 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:40789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVf9f-00044b-P9 for 47708-done@debbugs.gnu.org; Sun, 11 Apr 2021 14:49:57 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id 12so10666007wrz.7 for <47708-done@debbugs.gnu.org>; Sun, 11 Apr 2021 11:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=v6dLAJGThH5KeeJuGQQsl1U7cIED0XC1iqDMogDVQyw=; b=Ib7K4Blzln9JWuxh+wkqZoFrVzVMmuTT6alM2LcFdmCgnM5XCOloioWKIQOl4ZouSR VDfXGsE+pAHPj9ibQH1wMd5xbV3oPLfg1+ORELfr9r1ZLTkvSK8rIKujAF+lshM6VwqQ aPoe60aOiP4mVJveWXM7a+thpc/SrK/zFk3gzcQ+GLuLTa9gTOASubEu8Xo8ctUh1VWr MJqduWwfb7kWp9RvxdfQDEYWKDf2uGqEyjpkTiiGtLu3f4plGdWW1rF1ZmMBJ9zTRlUW w1r+622SCjX780dr2K3ArytgY+5mxgKb47GdWUFUmTDyNHCq68G82uvImGqsX9Q+nfk/ NLTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=v6dLAJGThH5KeeJuGQQsl1U7cIED0XC1iqDMogDVQyw=; b=c3WYovEp6TtFxH8cs2p0vQckY+d8/I9gL/bBGFgcLt5PrFf9iFSJl5lwbnrmPaeTqq s1IGzZJd5JmnSBj+inKjOtMLQZ0QVusN+lLVWvviJLlgem0BsamS2HQMYnvfEqhqaHlE zI7WmsAGHmdJIauR9r1psdmfpPYqFBvmiy0aGf2UruEH4h2FpgzkWKEpTtcthu6OKiw+ PijjRpQqUcZeqlHdHOGdiMWwhIX5LbJqVQCFktT9jeLyaJT+GFtwYNKp33ZEHP9yrMdM mSH7rxaUHxneyD3K+cmX6VRtj4IJ3XlJekW7g2X/G3wBIVmaGoDPdChMIIukx/+sA9hH hWUA== X-Gm-Message-State: AOAM530xbz48n6b00loFHgxMEOXdIa8bEs+w7qQSF2eotI6adfBPg+XG SQetq2jQB6WSOKKOyAFVtWB9Fw== X-Google-Smtp-Source: ABdhPJzWSX3x1N2IoJVPxVvsgigMz0goxPg7KsdSbGpRTX433D3HmVyLpPJBMME/JlbgpksGDRnPuQ== X-Received: by 2002:a5d:58e5:: with SMTP id f5mr28457663wrd.131.1618166989759; Sun, 11 Apr 2021 11:49:49 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id u9sm12374677wmc.38.2021.04.11.11.49.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Apr 2021 11:49:49 -0700 (PDT) In-Reply-To: (Philipp Stephani's message of "Sun, 11 Apr 2021 19:52:42 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203858 Archived-At: Philipp Stephani writes: > Am So., 11. Apr. 2021 um 19:19 Uhr schrieb Basil L. Contovounesios > : >> >> I don't know whether this is relevant, but 'man 2 seccomp' has the >> following to say about clock_gettime: >> >> Caveats >> There are various subtleties to consider when applying seccomp fi= lters >> to a program, including the following: >> >> * Some traditional system calls have user-space implementations i= n the >> vdso(7) on many architectures. Notable examples include clock= _get=E2=80=90 >> time(2), gettimeofday(2), and time(2). On such architectures,= sec=E2=80=90 >> comp filtering for these system calls will have no effect. = (How=E2=80=90 >> ever, there are cases where the vdso(7) implementations may= fall >> back to invoking the true system call, in which case seccomp fi= lters >> would see the system call.) >> > > Nice catch. I think it should be fine to allow the clock system calls. > I've now done that with commit > ea5ea09244b762008bba509d8c58bad5835fb949. Thanks, that fixes the test failure here, so I'm closing this report. --=20 Basil