From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout Date: Sat, 9 Oct 2021 19:25:22 +0200 Message-ID: References: <878rz52kl8.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37792"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51073@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 09 19:26:35 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 1mZG7G-0009cy-J4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 19:26:34 +0200 Original-Received: from localhost ([::1]:54216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZG7F-0000wT-1a for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Oct 2021 13:26:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZG6k-0000vm-QD for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 13:26:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZG6k-00013y-H8 for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 13:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZG6k-0005Uh-Ch for bug-gnu-emacs@gnu.org; Sat, 09 Oct 2021 13:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Oct 2021 17:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51073 X-GNU-PR-Package: emacs Original-Received: via spool by 51073-submit@debbugs.gnu.org id=B51073.163380034021090 (code B ref 51073); Sat, 09 Oct 2021 17:26:02 +0000 Original-Received: (at 51073) by debbugs.gnu.org; 9 Oct 2021 17:25:40 +0000 Original-Received: from localhost ([127.0.0.1]:54115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZG6O-0005U6-Fb for submit@debbugs.gnu.org; Sat, 09 Oct 2021 13:25:40 -0400 Original-Received: from mail-oi1-f178.google.com ([209.85.167.178]:46698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZG6N-0005Tt-3F for 51073@debbugs.gnu.org; Sat, 09 Oct 2021 13:25:39 -0400 Original-Received: by mail-oi1-f178.google.com with SMTP id o204so9938464oih.13 for <51073@debbugs.gnu.org>; Sat, 09 Oct 2021 10:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MFkofDAW1gveWuJe/DnxF8q9ODFxIjdgjanAwbzJYfs=; b=EFtBhKhEWO5B0Lpv7WnuhQCKl6bMP09pBKZm2KlU6xdBy3bqHbbuYWSUsKrdCS6qaS r1Ha5VyuxhilL1Htuvi/gRKeTpag8tBiUYpxTbkEc2T/7E9E54spIoCyq29VdfOhX9XR jXnx8MQP0gIXEbKDvZ1HShYUJFYek3IWjfFe7BmG7o+OioxRTkH/rYv9ih6fF6dBPgF1 PKtOgXq9BldEctQvzVbTuvigBkY79RmjKZ2r4kz3k+CdoKr1iggFS4sz9WTmTbuodISC QuAH+3AC9TsMpvVEnD60dy/scTmpXaS3dRHi4FUagOwEczZWYmhKYUKkcsWaxr6BxRdQ 5GBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MFkofDAW1gveWuJe/DnxF8q9ODFxIjdgjanAwbzJYfs=; b=IIkoMjWdEIpPn1IFp2CYCe+f80oI8iKKhddW4AY6CeKIGH2mPxpYGeAv0VjXwX4nwi BZM59Zd7VJgzTXaz3p7G9Mwb/R08C9fjC5o+Zht7R0pwoV5wAiZEsfsIFPbj/+WcFIo9 6ReJIT3FnSW1W8I603//GeErRfZZ6gpHRvi7XE/ia1E2HZaRNwzmy1DqP4ukecImvj0d kIA+pncu1SGWw32ma3D05xroIuAWTLrsnFyuC2AXnJWTM3w0P7D77/r3l8jWkwsjH4AQ EXYzenkNE1oitVlDD30KdhbjIyQIN4xLiYC5+9x+zVLl94zZdGYyKjvq7/xkUCtN3Zh8 6wlg== X-Gm-Message-State: AOAM533y77qU6mKWF5+xgtThfFENQNOz/PHxr8eY0BMppmQiqm395PAR gSgHT5AsqlxHuUrNL4NqmMLF/bsy5N4B2vDztHA= X-Google-Smtp-Source: ABdhPJzFneGK8J6F2EAL/epUJgU8CppqtrFCTGQsSKZvNxG3kO6ToAYXFxfv6h25+Wc5uOG06MhCr31sGimJJLmsOaY= X-Received: by 2002:a54:489a:: with SMTP id r26mr12783788oic.158.1633800333416; Sat, 09 Oct 2021 10:25:33 -0700 (PDT) In-Reply-To: <878rz52kl8.fsf@tcd.ie> 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:216787 Archived-At: Am Do., 7. Okt. 2021 um 12:32 Uhr schrieb Basil L. Contovounesios : > > Running 'make test/emacs-tests' fails with status code 159 (where > 159 = 128 + 31 and 31 = SIGSYS); see the attached compilation log. > > Running 'sudo journalctl -g SECCOMP' includes the following: > > Oct 07 10:48:19 tia audit[2156]: SECCOMP auid=1000 uid=1000 gid=1000 > ses=2 subj==unconfined pid=2156 comm="emacs" > exe="/home/blc/.local/src/emacs-28/src/emacs" sig=31 arch=c000003e > syscall=157 compat=0 ip=0x7ff4f975629d code=0x80000000 > > Oct 07 10:48:20 tia audit[2171]: SECCOMP auid=1000 uid=1000 gid=1000 > ses=2 subj==unconfined pid=2171 comm="emacs" > exe="/home/blc/.local/src/emacs-28/src/emacs" sig=31 arch=c000003e > syscall=257 compat=0 ip=0x7ff14b807823 code=0x80000000 > > AFAICT syscalls 157 and 257 correspond to prctl and openat, > respectively, and __GI___prctl is mentioned in the attached coredumpctl > stack trace. This is confirmed by the ausearch ert-info if I run > 'sudo make test/emacs-tests' (because ausearch is in my sbin): Thanks, from the stacktrace I guess the unknown syscall invocation comes from https://git.kernel.org/pub/scm/libs/libcap/libcap.git/tree/libcap/cap_proc.c?id=d07df10aaa02cf8cfe8047610d2f56dc0be68f1e#n272. I'll look around a bit whether we should allow or reject that combination.