GNU bug report logs - #51073
28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout

Previous Next

Package: emacs;

Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Date: Thu, 7 Oct 2021 10:32:01 UTC

Severity: normal

Found in version 28.0.60

Fixed in version 28.1

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51073 in the body.
You can then email your comments to 51073 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to p.stephani2 <at> gmail.com, bug-gnu-emacs <at> gnu.org:
bug#51073; Package emacs. (Thu, 07 Oct 2021 10:32:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Basil L. Contovounesios" <contovob <at> tcd.ie>:
New bug report received and forwarded. Copy sent to p.stephani2 <at> gmail.com, bug-gnu-emacs <at> gnu.org. (Thu, 07 Oct 2021 10:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
Date: Thu, 07 Oct 2021 11:30:27 +0100
[Message part 1 (text/plain, inline)]
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):

  Potentially relevant Seccomp audit events:
  ----
  type=SECCOMP msg=audit(10/07/21 11:25:02.024:209) : auid=blc uid=root
  gid=root ses=3 subj==unconfined pid=5982 comm=emacs
  exe=/home/blc/.local/src/emacs-28/src/emacs sig=SIGSYS arch=x86_64
  syscall=prctl compat=0 ip=0x7fbf2438c29d code=kill

I don't know whether the following caveat from seccomp(2) is relevant
for openat:

  *  Seccomp  filtering is based on system call numbers.  However, appli‐
     cations typically do not directly invoke system calls,  but  instead
     call  wrapper  functions  in  the C library which in turn invoke the
     system calls.  Consequently, one must be aware of the following:
     [...]
     •  Finally,  the  behavior  of  wrapper  functions can change across
        glibc versions.  For example, in older versions, the glibc  wrap‐
        per  function  for  open(2)  invoked  the system call of the same
        name, but starting in glibc 2.26, the implementation switched  to
        calling openat(2) on all architectures.

FWIW here are some of my local versions:

  $ bwrap --version
  bubblewrap 0.5.0
  $ uname -a
  Linux tia 5.14.0-1-amd64 #1 SMP Debian 5.14.6-2 (2021-09-19) x86_64 GNU/Linux
  $ /lib/x86_64-linux-gnu/libc.so.6 
  GNU C Library (Debian GLIBC 2.32-4) stable release version 2.32.
  Copyright (C) 2020 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.
  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
  PARTICULAR PURPOSE.
  Compiled by GNU CC version 10.3.0.
  libc ABIs: UNIQUE IFUNC ABSOLUTE
  For bug reporting instructions, please see:
  <http://www.debian.org/Bugs/>.

HTH.  Let me know if you'd like me to test anything.

Thanks,

-- 
Basil

In GNU Emacs 28.0.60 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
 of 2021-10-07 built on tia
Repository revision: 1100fffcd360867c0116cb5c4d17bab535577c03
Repository branch: emacs-28
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure 'CFLAGS=-O0 -ggdb3' --prefix=/home/blc/.local
 --program-suffix=-28 --enable-checking=yes,glyphs
 --enable-check-lisp-type --with-x-toolkit=lucid
 --with-file-notification=yes --with-x'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
X11 XAW3D XDBE XIM XPM LUCID ZLIB

Important settings:
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
cairo x-toolkit x multi-tty make-network-process emacs)

[compilation.log (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51073; Package emacs. (Sat, 09 Oct 2021 17:26:02 GMT) Full text and rfc822 format available.

Message #8 received at 51073 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 51073 <at> debbugs.gnu.org
Subject: Re: bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
Date: Sat, 9 Oct 2021 19:25:22 +0200
Am Do., 7. Okt. 2021 um 12:32 Uhr schrieb Basil L. Contovounesios
<contovob <at> tcd.ie>:
>
> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51073; Package emacs. (Sat, 09 Oct 2021 17:45:01 GMT) Full text and rfc822 format available.

Message #11 received at 51073 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 51073 <at> debbugs.gnu.org
Subject: Re: bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
Date: Sat, 9 Oct 2021 19:43:49 +0200
Am Sa., 9. Okt. 2021 um 19:25 Uhr schrieb Philipp Stephani
<p.stephani2 <at> gmail.com>:
>
> Am Do., 7. Okt. 2021 um 12:32 Uhr schrieb Basil L. Contovounesios
> <contovob <at> tcd.ie>:
> >
> > 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.

I've pushed a new rule to emacs-28 (commit b497add971). At least for
me that fixes the test. Does it work for you as well?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51073; Package emacs. (Mon, 11 Oct 2021 20:40:02 GMT) Full text and rfc822 format available.

Message #14 received at 51073 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 51073 <at> debbugs.gnu.org
Subject: Re: bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
Date: Mon, 11 Oct 2021 21:39:13 +0100
close 51073 28.1
quit

Philipp Stephani [2021-10-09 19:43 +0200] wrote:

> I've pushed a new rule to emacs-28 (commit b497add971). At least for
> me that fixes the test. Does it work for you as well?

Yes, works fine here.  Thanks!

-- 
Basil




bug marked as fixed in version 28.1, send any further explanations to 51073 <at> debbugs.gnu.org and "Basil L. Contovounesios" <contovob <at> tcd.ie> Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Mon, 11 Oct 2021 20:40:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 09 Nov 2021 12:24:09 GMT) Full text and rfc822 format available.

bug unarchived. Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Fri, 21 Jan 2022 13:56:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51073; Package emacs. (Fri, 21 Jan 2022 14:15:02 GMT) Full text and rfc822 format available.

Message #23 received at 51073 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 51073 <at> debbugs.gnu.org
Subject: Re: bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
Date: Fri, 21 Jan 2022 16:14:01 +0200
[Message part 1 (text/plain, inline)]
Basil L. Contovounesios [2021-10-11 21:39 +0100] wrote:

> close 51073 28.1
> quit
>
> Philipp Stephani [2021-10-09 19:43 +0200] wrote:
>
>> I've pushed a new rule to emacs-28 (commit b497add971). At least for
>> me that fixes the test. Does it work for you as well?
>
> Yes, works fine here.  Thanks!

After a several month hiatus from Emacs development, I'm now getting two
SIGSYS failures in 'make test/emacs-tests' again on both emacs-28 and
master (ERT backtraces and configuration info follow my signature).

This time, 'sudo journalctl -g SECCOMP' mentions the following:

  Jan 21 15:47:02 tia audit[138481]: SECCOMP auid=1000 uid=1000 gid=1000
    ses=2 subj==unconfined pid=138481 comm="emacs"
    exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
    syscall=17 compat=0 ip=0x7fd745f3714a code=0x80000000

  Jan 21 15:47:03 tia audit[138493]: SECCOMP auid=1000 uid=1000 gid=1000
    ses=2 subj==unconfined pid=138493 comm="emacs"
    exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
    syscall=439 compat=0 ip=0x7f46e8c30fc0 code=0x80000000

where AFAICT syscalls 17 and 439 correspond to pread64 and faccessat2,
respectively.  This is again confirmed by the ausearch ert-info when I
run 'sudo make test/emacs-tests':

  Potentially relevant Seccomp audit events:
  ----
  type=SECCOMP msg=audit(01/21/22 16:07:33.250:1144) : auid=blc
    uid=root gid=root ses=2 subj==unconfined pid=139780 comm=emacs
    exe=/home/blc/.local/src/emacs-nox/src/emacs sig=SIGSYS
    arch=x86_64 syscall=pread compat=0 ip=0x7fe7ba15c14a code=kill

  Potentially relevant Seccomp audit events:
  ----
  type=SECCOMP msg=audit(01/21/22 16:07:33.250:1144) : auid=blc
    uid=root gid=root ses=2 subj==unconfined pid=139780 comm=emacs
    exe=/home/blc/.local/src/emacs-nox/src/emacs sig=SIGSYS
    arch=x86_64 syscall=pread compat=0 ip=0x7fe7ba15c14a code=kill
  ----
  type=SECCOMP msg=audit(01/21/22 16:07:33.646:1154) : auid=blc
    uid=root gid=root ses=2 subj==unconfined pid=139795 comm=emacs
    exe=/home/blc/.local/src/emacs-nox/src/emacs sig=SIGSYS
    arch=x86_64 syscall=faccessat2 compat=0 ip=0x7f610b2dffc0
    code=kill

In contrast to the OP, I am now on Linux 5.15.0-2 and glibc 2.33-2.

HTH.  As always, let me know if you'd like me to test anything.

Thanks,

-- 
Basil

[emacs-28.log (text/plain, attachment)]
[emacs-nox.log (text/plain, attachment)]
[Message part 4 (text/plain, inline)]
In GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
 of 2022-01-21 built on tia
Repository revision: f08dfa9b532648457590262c1afa9729e87c6bb1
Repository branch: wt/emacs-28
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure 'CFLAGS=-O0 -ggdb3' --prefix=/home/blc/.local
 --program-suffix=-28 --enable-checking=yes,glyphs
 --enable-check-lisp-type --with-x-toolkit=lucid
 --with-file-notification=yes --with-x'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
X11 XAW3D XDBE XIM XPM LUCID ZLIB

Important settings:
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search time-date
subr-x seq mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm byte-opt gv
bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo x-toolkit
x multi-tty make-network-process emacs)

Memory information:
((conses 16 56674 5913)
 (symbols 48 6741 1)
 (strings 32 18046 1546)
 (string-bytes 1 594941)
 (vectors 16 10595)
 (vector-slots 8 126617 9439)
 (floats 8 24 35)
 (intervals 56 207 0)
 (buffers 992 10))

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu)
 of 2022-01-21 built on tia
Repository revision: 1ca6928c843fcbbaa35a7a947f905ca287c5c2fb
Repository branch: wt/master-nox
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure 'CFLAGS=-O2 -march=native' --config-cache
 --prefix=/home/blc/.local --program-suffix=-nox
 --enable-checking=structs --with-file-notification=yes
 --with-x-toolkit=no --without-x'

Configured features:
ACL DBUS GMP GNUTLS GPM JSON LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES
NOTIFY INOTIFY PDUMPER SECCOMP SOUND SQLITE3 THREADS XIM ZLIB

Important settings:
  value of $LANG: en_IE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media rmc puny
dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date seq
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils term/xterm xterm gv subr-x byte-opt
bytecomp byte-compile cconv regexp-opt iso-transl tooltip eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse
jit-lock font-lock syntax font-core term/tty-colors frame minibuffer
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese composite
emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice button loaddefs faces
cus-face macroexp files window text-properties overlay sha1 md5 base64
format env code-pages mule custom widget keymap hashtable-print-readable
backquote threads dbusbind inotify lcms2 multi-tty make-network-process
emacs)

Memory information:
((conses 16 47735 5984)
 (symbols 48 5667 1)
 (strings 32 15405 1831)
 (string-bytes 1 496340)
 (vectors 16 8526)
 (vector-slots 8 101602 6503)
 (floats 8 23 24)
 (intervals 56 195 13)
 (buffers 992 10))

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51073; Package emacs. (Sat, 22 Jan 2022 16:21:02 GMT) Full text and rfc822 format available.

Message #26 received at 51073 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 51073 <at> debbugs.gnu.org
Subject: Re: bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
Date: Sat, 22 Jan 2022 17:20:32 +0100
Am Fr., 21. Jan. 2022 um 15:14 Uhr schrieb Basil L. Contovounesios
<contovob <at> tcd.ie>:
>
> Basil L. Contovounesios [2021-10-11 21:39 +0100] wrote:
>
> > close 51073 28.1
> > quit
> >
> > Philipp Stephani [2021-10-09 19:43 +0200] wrote:
> >
> >> I've pushed a new rule to emacs-28 (commit b497add971). At least for
> >> me that fixes the test. Does it work for you as well?
> >
> > Yes, works fine here.  Thanks!
>
> After a several month hiatus from Emacs development, I'm now getting two
> SIGSYS failures in 'make test/emacs-tests' again on both emacs-28 and
> master (ERT backtraces and configuration info follow my signature).
>
> This time, 'sudo journalctl -g SECCOMP' mentions the following:
>
>   Jan 21 15:47:02 tia audit[138481]: SECCOMP auid=1000 uid=1000 gid=1000
>     ses=2 subj==unconfined pid=138481 comm="emacs"
>     exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
>     syscall=17 compat=0 ip=0x7fd745f3714a code=0x80000000
>
>   Jan 21 15:47:03 tia audit[138493]: SECCOMP auid=1000 uid=1000 gid=1000
>     ses=2 subj==unconfined pid=138493 comm="emacs"
>     exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
>     syscall=439 compat=0 ip=0x7f46e8c30fc0 code=0x80000000
>
> where AFAICT syscalls 17 and 439 correspond to pread64 and faccessat2,
> respectively.

Thanks, I added these syscalls to the filter shipped with Emacs
(commit 6d3608be88e1b30d2d10ee81f14dd485275c20ff).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51073; Package emacs. (Sat, 22 Jan 2022 21:35:02 GMT) Full text and rfc822 format available.

Message #29 received at 51073 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 51073 <at> debbugs.gnu.org
Subject: Re: bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
Date: Sat, 22 Jan 2022 23:34:43 +0200
Philipp Stephani [2022-01-22 17:20 +0100] wrote:

> Am Fr., 21. Jan. 2022 um 15:14 Uhr schrieb Basil L. Contovounesios
> <contovob <at> tcd.ie>:
>>
>> After a several month hiatus from Emacs development, I'm now getting two
>> SIGSYS failures in 'make test/emacs-tests' again on both emacs-28 and
>> master (ERT backtraces and configuration info follow my signature).
>>
>> This time, 'sudo journalctl -g SECCOMP' mentions the following:
>>
>>   Jan 21 15:47:02 tia audit[138481]: SECCOMP auid=1000 uid=1000 gid=1000
>>     ses=2 subj==unconfined pid=138481 comm="emacs"
>>     exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
>>     syscall=17 compat=0 ip=0x7fd745f3714a code=0x80000000
>>
>>   Jan 21 15:47:03 tia audit[138493]: SECCOMP auid=1000 uid=1000 gid=1000
>>     ses=2 subj==unconfined pid=138493 comm="emacs"
>>     exe="/home/blc/.local/src/emacs-nox/src/emacs" sig=31 arch=c000003e
>>     syscall=439 compat=0 ip=0x7f46e8c30fc0 code=0x80000000
>>
>> where AFAICT syscalls 17 and 439 correspond to pread64 and faccessat2,
>> respectively.
>
> Thanks, I added these syscalls to the filter shipped with Emacs
> (commit 6d3608be88e1b30d2d10ee81f14dd485275c20ff).

Thanks, all lights green again!

-- 
Basil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51073; Package emacs. (Sun, 23 Jan 2022 13:17:02 GMT) Full text and rfc822 format available.

Message #32 received at 51073 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 51073 <at> debbugs.gnu.org
Subject: Re: bug#51073: 28.0.60; SIGSYS in emacs-tests/bwrap/allows-stdout
Date: Sun, 23 Jan 2022 14:16:06 +0100
seccomp-filter.c: In function ‘main’:
/usr/include/libseccomp/seccomp.h:199:23: error: ‘__NR_faccessat2’ undeclared (first use in this function); did you mean ‘__NR_faccessat’?
 #define SCMP_SYS(x)  (__NR_##x)
                       ^
seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
       int status = seccomp_rule_add_array (ctx, (action), (syscall), \
                                                            ^~~~~~~
seccomp-filter.c:243:25: note: in expansion of macro ‘SCMP_SYS’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
                         ^~~~~~~~
/usr/include/libseccomp/seccomp.h:199:23: note: each undeclared identifier is reported only once for each function it appears in
 #define SCMP_SYS(x)  (__NR_##x)
                       ^
seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
       int status = seccomp_rule_add_array (ctx, (action), (syscall), \
                                                            ^~~~~~~
seccomp-filter.c:243:25: note: in expansion of macro ‘SCMP_SYS’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
                         ^~~~~~~~

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 21 Feb 2022 12:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.