stackonexec, stackprofile in test_regression_testsuite from ubuntu_qrt_apparmor failed with F/ein
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QA Regression Testing | New | Undecided | Unassigned | ||
ubuntu-kernel-tests | New | Undecided | Unassigned |
Bug Description
Similar to bug 1996171.
Test stackonexec and stackprofile from ApparmorTestsui
This is the first time we run this test on this kernel.
Test log:
Running 'python2 ./test-apparmor.py -v ApparmorTestsui
Running test: './test-
test_regressio
Skipping private tests
Run kernel regression tests ... (Applying patch 0001-tests-
======
FAIL: test_regression
preparing apparmor_
(disabling ptrace for this test)
Run kernel regression tests
------
Traceback (most recent call last):
File "./test-
self.
AssertionError: Got exit code 2, expected 0
running aa_exec
running access
xfail: ACCESS file rx (r)
xfail: ACCESS file rwx (r)
xfail: ACCESS file r (wx)
xfail: ACCESS file rx (wx)
xfail: ACCESS file rwx (wx)
xfail: ACCESS dir rwx (r)
xfail: ACCESS dir r (wx)
xfail: ACCESS dir rx (wx)
xfail: ACCESS dir rwx (wx)
running at_secure
running introspect
running capabilities
(ptrace)
(reboot)
(chroot)
(mlockall)
(net_raw)
running changeprofile
running onexec
running changehat
running changehat_fork
running changehat_misc
*** A 'Killed' message from bash is expected for the following test
/tmp/testlibrg
*** A 'Killed' message from bash is expected for the following test
/tmp/testlibrg
running chdir
running clone
running coredump
*** A 'Segmentation Fault' message from bash is expected for the following test
/tmp/testlibrg
*** A 'Segmentation Fault' message from bash is expected for the following test
/tmp/testlibrg
*** A 'Segmentation Fault' message from bash is expected for the following test
/tmp/testlibrg
*** A 'Segmentation Fault' message from bash is expected for the following test
/tmp/testlibrg
*** A 'Segmentation Fault' message from bash is expected for the following test
/tmp/testlibrg
XFAIL: Error: corefile present when not expected -- COREDUMP (ix confinement)
running deleted
running environ
running exec
running exec_qual
running fchdir
running fd_inheritance
running fork
running i18n
running link
running link_subset
running mkdir
running mmap
running mount
not supported by kernel - skipping mount options=
using mount rules ...
not supported by parser - skipping mount options=
running mult_mount
running named_pipe
running namespaces
running net_raw
running open
running openat
running pipe
running pivot_root
kernel does not support pivot_root domain transitions - skipping tests ...
running posix_ipc
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
xpass: POSIX MQUEUE (confined root - mqueue label 1)
xpass: POSIX MQUEUE (confined root - mqueue label 1 : mq_notify)
xpass: POSIX MQUEUE (confined root - mqueue label 1 : select)
xpass: POSIX MQUEUE (confined root - mqueue label 1 : poll)
xpass: POSIX MQUEUE (confined root - mqueue label 1 : epoll)
Warning: invalid capability description 'cap:sys_
xpass: POSIX MQUEUE (confined root - mqueue label 2)
xpass: POSIX MQUEUE (confined root - mqueue label 2 : mq_notify)
xpass: POSIX MQUEUE (confined root - mqueue label 2 : select)
xpass: POSIX MQUEUE (confined root - mqueue label 2 : poll)
xpass: POSIX MQUEUE (confined root - mqueue label 2 : epoll)
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
Warning: invalid capability description 'cap:sys_
xpass: POSIX MQUEUE (confined 1002 - mqueue label 1)
xpass: POSIX MQUEUE (confined 1002 - mqueue label 1 : mq_notify)
xpass: POSIX MQUEUE (confined 1002 - mqueue label 1 : select)
xpass: POSIX MQUEUE (confined 1002 - mqueue label 1 : poll)
xpass: POSIX MQUEUE (confined 1002 - mqueue label 1 : epoll)
Warning: invalid capability description 'cap:sys_
xpass: POSIX MQUEUE (confined 1002 - mqueue label 2)
xpass: POSIX MQUEUE (confined 1002 - mqueue label 2 : mq_notify)
xpass: POSIX MQUEUE (confined 1002 - mqueue label 2 : select)
xpass: POSIX MQUEUE (confined 1002 - mqueue label 2 : poll)
xpass: POSIX MQUEUE (confined 1002 - mqueue label 2 : epoll)
running ptrace
using ptrace v6 tests ...
running pwrite
running query_label
running regex
running rename
running readdir
running rw
running socketpair
running swap
mkswap: /tmp/sdtest.
swapon: /tmp/sdtest.
running sd_flags
running setattr
running symlink
running syscall
WARNING: syscall sysctl not implemented, skipping tests ...
running sysv_ipc
Required feature 'ipc/sysv_mqueue' not available.. Skipping tests ...
running tcp
running unix_fd_server
running unix_socket_
xpass: AF_UNIX pathname socket (dgram); confined server w/ access (rw)
xpass: AF_UNIX pathname socket (dgram); confined client w/ access (rw)
running unix_socket_
running unix_socket_unnamed
xpass: AF_UNIX unnamed socket (dgram); confined server (peer label w/ implicit perms)
xpass: AF_UNIX unnamed socket (dgram); confined server (peer label w/ explicit perms)
xpass: AF_UNIX unnamed socket (dgram); confined server (peer label, peer addr)
xpass: AF_UNIX unnamed socket (dgram); confined server (type, peer label, peer addr)
xpass: AF_UNIX unnamed socket (dgram); confined server (type, addr, peer label)
xpass: AF_UNIX unnamed socket (dgram); confined server (type, addr, peer label, peer addr)
running unlink
running xattrs
Required feature 'file/xattr' not available.. Skipping tests ...
running longpath
XFAIL: This version of AppArmor does not support changing buffer size.
running dbus_eavesdrop
dbus[110294]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" is owned by uid 1000, not our uid 0
running dbus_message
dbus[110577]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" is owned by uid 1000, not our uid 0
running dbus_service
dbus[111251]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" is owned by uid 1000, not our uid 0
running dbus_unrequeste
dbus[111637]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/1000" is owned by uid 1000, not our uid 0
running aa_policy_cache
running exec_stack
running stackonexec
Error: transition failed. Test 'STACKONEXEC (stacked with unconfined - file)' was expected to 'fail'. Reason for failure expect errno 13 != 0
running stackprofile
Error: transition failed. Test 'STACKPROFILE (stacked with unconfined - file)' was expected to 'fail'. Reason for failure expect errno 13 != 0
make: *** [Makefile:318: tests] Error 1
------
Ran 1 test in 1070.659s
FAILED (failures=1)
tags: | added: sru-20241028 removed: 20241028 |