unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: Philipp Stephani <phst@google.com>, 47828@debbugs.gnu.org
Subject: bug#47828: seccomp test failures
Date: Sat, 17 Apr 2021 20:01:47 -0400	[thread overview]
Message-ID: <fp4kg4e9zo.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <CAArVCkQZFVEtBzH_5wW8qLcpKbHyH0Lh3vy3BOXLh=LTQ28m2A@mail.gmail.com> (Philipp Stephani's message of "Sat, 17 Apr 2021 21:54:39 +0200")

[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]

Philipp Stephani wrote:

> FYI, I've now pushed commit 568ce6826fa0aaa4d5dc95880cbdc0965dc07521
> to master which attempts to automatically collect this information to
> ease debugging such failures.

It doesn't report anything in this case since the user account does not
have permission, and I normally disable core dumps (ulimit -c 0):

    Test emacs-tests/seccomp/allows-stdout condition:
    Info: Process output:
          
          Potentially relevant Seccomp audit events:
          Error opening config file (Permission denied)
          NOTE - using built-in logs: /var/log/audit/audit.log
          Error opening /var/log/audit/audit.log (Permission denied)
          
          Potentially useful coredump information:
          [...]
          No coredumps found.
          -- Notice: 1 systemd-coredump@.service unit is running, output
          may be incomplete.

With my root hat on, the audit.log data is attached.

With core dumps enabled:
 #0  0x00007f7b661fb967 __mmap (libc.so.6)
 #1  0x00007f7b5ff8001e sss_nss_mc_get_ctx (libnss_sss.so.2)
 #2  0x00007f7b5ff80770 sss_nss_mc_getpwuid (libnss_sss.so.2)
 #3  0x00007f7b5ff7c61e _nss_sss_getpwuid_r (libnss_sss.so.2)
 #4  0x00007f7b661cc3cd getpwuid_r@@GLIBC_2.2.5 (libc.so.6)
 #5  0x00007f7b661cbb30 getpwuid (libc.so.6)
 #6  0x000000000060d1ee init_editfns (emacs)
 #7  0x0000000000566801 main (emacs)
 #8  0x00007f7b661277b3 __libc_start_main (libc.so.6)
 #9  0x0000000000418cde _start (emacs)


[-- Attachment #2: audit.txt --]
[-- Type: text/plain, Size: 3614 bytes --]

type=SECCOMP msg=audit(1618703239.816:666338): auid=1000 uid=1000 gid=501 ses=4485 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=332316 comm="emacs" exe="/scratch/someuser/emacs/git/master/src/emacs" sig=31 arch=c000003e syscall=158 compat=0 ip=0x7f2bf88850f5 code=0x80000000\x1dAUID="someuser" UID="someuser" GID="somegroup" ARCH=x86_64 SYSCALL=arch_prctl
type=ANOM_ABEND msg=audit(1618703239.816:666339): auid=1000 uid=1000 gid=501 ses=4485 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=332316 comm="emacs" exe="/scratch/someuser/emacs/git/master/src/emacs" sig=31 res=1\x1dAUID="someuser" UID="someuser" GID="somegroup"
type=SERVICE_START msg=audit(1618703239.841:666340): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@89-332317-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'\x1dUID="root" AUID="unset"
type=SERVICE_STOP msg=audit(1618703240.155:666341): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@89-332317-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'\x1dUID="root" AUID="unset"
type=SECCOMP msg=audit(1618703240.643:666342): auid=1000 uid=1000 gid=501 ses=4485 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=332329 comm="emacs" exe="/scratch/someuser/emacs/git/master/src/emacs" sig=31 arch=c000003e syscall=9 compat=0 ip=0x7fbb09a6a967 code=0x80000000\x1dAUID="someuser" UID="someuser" GID="somegroup" ARCH=x86_64 SYSCALL=mmap
type=ANOM_ABEND msg=audit(1618703240.643:666343): auid=1000 uid=1000 gid=501 ses=4485 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=332329 comm="emacs" exe="/scratch/someuser/emacs/git/master/src/emacs" sig=31 res=1\x1dAUID="someuser" UID="someuser" GID="somegroup"
type=SERVICE_START msg=audit(1618703240.664:666344): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@90-332330-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'\x1dUID="root" AUID="unset"
type=SERVICE_STOP msg=audit(1618703241.108:666345): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@90-332330-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'\x1dUID="root" AUID="unset"
type=SECCOMP msg=audit(1618703241.693:666346): auid=1000 uid=1000 gid=501 ses=4485 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=332347 comm="emacs" exe="/scratch/someuser/emacs/git/master/src/emacs" sig=31 arch=c000003e syscall=9 compat=0 ip=0x7f975300d967 code=0x80000000\x1dAUID="someuser" UID="someuser" GID="somegroup" ARCH=x86_64 SYSCALL=mmap
type=ANOM_ABEND msg=audit(1618703241.693:666347): auid=1000 uid=1000 gid=501 ses=4485 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=332347 comm="emacs" exe="/scratch/someuser/emacs/git/master/src/emacs" sig=31 res=1\x1dAUID="someuser" UID="someuser" GID="somegroup"
type=SERVICE_START msg=audit(1618703241.706:666348): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@91-332348-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'\x1dUID="root" AUID="unset"
type=SERVICE_STOP msg=audit(1618703242.024:666349): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@91-332348-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'\x1dUID="root" AUID="unset"

  reply	other threads:[~2021-04-18  0:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-16 16:53 bug#47828: seccomp test failures Glenn Morris
2021-04-17 18:21 ` Philipp Stephani
2021-04-17 19:54   ` Philipp Stephani
2021-04-18  0:01     ` Glenn Morris [this message]
2021-04-18  8:32       ` Philipp Stephani
2021-04-18  8:36         ` Philipp Stephani
2021-04-18 16:19           ` Glenn Morris
2021-04-18 17:16             ` Philipp Stephani
2021-04-18 21:58               ` Glenn Morris
2021-04-19  8:36                 ` Philipp Stephani
2021-04-19 15:49                   ` Glenn Morris
2021-04-19 16:00                     ` Philipp Stephani
2021-04-19 16:03                       ` Philipp Stephani
2021-04-19 16:39                         ` Glenn Morris
2021-04-19 19:31                           ` Philipp Stephani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fp4kg4e9zo.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=47828@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    --cc=phst@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).