Project

General

Profile

Actions

action #100715

closed

[Tumbleweed][security][pam] test fails in security_pam: pam_mount

Added by shawnhao over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Enhancement to existing tests
Target version:
-
Start date:
2021-10-11
Due date:
% Done:

100%

Estimated time:
8.00 h
Difficulty:

Description

pam_mount failed on O3 when executing losetup command. A variable is accepting the return value of previous 'losetup -f' command and it returns multiple lines of result, thus causing following losetup command to misbehave. Need to use script_output to extract the path and pass it to the variable.

Actions #1

Updated by shawnhao over 2 years ago

susetest:~ # uname -m
x86_64
susetest:~ # cat /etc/*release
NAME="openSUSE Tumbleweed"
# VERSION="20211012"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20211012"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20211012"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"

Description:
When running pam_mount case in Tumbleweed, su will fail and generate a core dump in previous builds but not in latest build.

(pam_mount.c:568): pam_mount 2.18: entering session stage
free(): double free detected in tcache 2
Aborted (core dumped)
susetest:~ # coredumpctl info
           PID: 15855 (su)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 6 (ABRT)
     Timestamp: Tue 2021-10-19 22:06:16 EDT (1min 41s ago)
  Command Line: su - bernhard
    Executable: /usr/bin/su
 Control Group: /user.slice/user-0.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-0.slice
       Session: 2
     Owner UID: 0 (root)
       Boot ID: 76424855d69440589ca00128897bd918
    Machine ID: fd5cac7e2af24812a42a4a3ca8347612
      Hostname: susetest
       Storage: /var/lib/systemd/coredump/core.su.0.76424855d69440589ca00128897bd918.15855.1634695576000000.zst (present)
     Disk Size: 216.3K
       Message: Process 15855 (su) of user 0 dumped core.

                Found module linux-vdso.so.1 with build-id: 98456de31388c3f2e98c7f11dc4808f15d2ca597
                Found module libnss_compat.so.2 with build-id: 2cefaf09ec31f74220926e1168435886052e2baf
                Found module pam_deny.so with build-id: 54d0781e9e0ba72872c9494f8c23687878af7e68
                Found module pam_warn.so with build-id: 7b49e21a696e67e47d706652d9f93937ea2a87aa
                Found module pam_xauth.so with build-id: 20eea37b40246daea784deb41605716557a81614
                Found module pam_umask.so with build-id: e9538b211dcee41b5a0bdc1d919da5ef00361831
                Found module pam_limits.so with build-id: e96cae8a1e068ae32f333f688821ce173de18153
                Found module libcap.so.2 with build-id: 5b5386aad5e84f3056ba759c0e85ccf17854e647
                Found module pam_systemd.so with build-id: 01652d53bcaaee9cf2607800adbd60b3d2a07b91
                Found module pam_keyinit.so with build-id: e670bcb24131e771c801dc370ddb3a0dd31fcf21
                Found module libcrack.so.2 with build-id: 05325152d1110aa58f3f6125f0cfc497d54a6684
                Found module libpwquality.so.1 with build-id: 3fe2a101b0c1d0408f01aceae94e16aaf8627a21
                Found module pam_pwquality.so with build-id: ed5dd903b5ae453ea42c140912a1235ea815a0d4
                Found module libudev.so.1 with build-id: de3bf02fc76a3ccd0b854f1e1e3d7245531485bd
                Found module libjson-c.so.5 with build-id: 740bd30d8dd6f9c1f9499d68f0f0fd4ec2f823c4
                Found module libargon2.so.1 with build-id: 5dec033bac16d08a0ab599e3997f86062c14e7bc
                Found module libdevmapper.so.1.03 with build-id: 5c579e71ebc0a3e0e69e4f59d09d4d973ebf18b9
                Found module libuuid.so.1 with build-id: 9b7d6480706906dded03b515b5043a297f623166
                Found module libm.so.6 with build-id: c88e7978602aa1f4c197beecd886beaf86c97d42
                Found module liblzma.so.5 with build-id: 114f5de77af42eeae25b95718dfee184e2cab587
                Found module libz.so.1 with build-id: ca0254f7e149a787d1aa310d7652cb9da10ddb6c
                Found module libblkid.so.1 with build-id: 035cb71f8f0f35962b7ee36370812177dc6f8d3a
                Found module libcryptsetup.so.12 with build-id: ffe0b5e967e6e113d88b0ec5173ea842476036d3
                Found module libcrypto.so.1.1 with build-id: 8df7bfdbc7d685a910cccf1ec6cef8a703bf1cec
                Found module libxml2.so.2 with build-id: 0c4ed8a28f0aefdff2037803bfc5bc4f3fbf8b4d
                Found module libmount.so.1 with build-id: 703972c3725e9310cff03ce32d9a5a1d2c1e0788
                Found module libHX.so.32 with build-id: 7183f4cb6f77a41c375e0c8990fd1143f09d63dc
                Found module libcryptmount.so.0 with build-id: 457529b9536d02c07e803ea70dc1b717734fd6c7
                Found module pam_mount.so with build-id: 7b1c293c5d31ea2f5c774786350aa41e6ff96eef
                Found module pam_succeed_if.so with build-id: 077f80eb5523d282eb8ae0fa3b125584f1b4d643
                Found module libcrypt.so.1 with build-id: bab38de7141f074f828e68ecda15c52f40052dd4
                Found module pam_unix.so with build-id: 832347e1c6ebba3203cd7cd3814b4a1cf017e1a2
                Found module pam_env.so with build-id: d236cc639435ab22ca6161333ef004fc7f48d284
                Found module libpcre2-8.so.0 with build-id: 46275dcbaf1d90655689fcef73a9672971da2729
                Found module libselinux.so.1 with build-id: bda593aa3828903d0bcfec26fd2a672ac058849b
                Found module pam_rootok.so with build-id: 86b5fd88731199f14fedec380d34f27a0b8e91f2
                Found module ld-linux-x86-64.so.2 with build-id: 4c632bb201656e971acab1fef1defed6d7ae59dc
                Found module libaudit.so.1 with build-id: de6782d8908dcae0f7bd60afe45290d2100da44b
                Found module libc.so.6 with build-id: cb1a3ab12ec79b90a223f835a3144e4c674855a4
                Found module libeconf.so.0 with build-id: 488f60826b82a071e10dd1d190901f73237bd459
                Found module libpam_misc.so.0 with build-id: 16ee2cc5e5cbbf870fc73c85d7a16747fd88dfe6
                Found module libpam.so.0 with build-id: 43ffa2acc18a0403926f46753ff37819d25a90a5
                Found module su with build-id: f642b5de0c0b9f4c79a9126f905bedd7a81c0404
                Stack trace of thread 15855:
                #0  0x00007f95d75a287c __pthread_kill_implementation (libc.so.6 + 0x8f87c)
                #1  0x00007f95d75556f6 raise (libc.so.6 + 0x426f6)
                #2  0x00007f95d753f7b3 abort (libc.so.6 + 0x2c7b3)
                #3  0x00007f95d7596a67 __libc_message (libc.so.6 + 0x83a67)
                #4  0x00007f95d75ac86c malloc_printerr (libc.so.6 + 0x9986c)
                #5  0x00007f95d75ae79f _int_free (libc.so.6 + 0x9b79f)
                #6  0x00007f95d75b0c05 free (libc.so.6 + 0x9dc05)
                #7  0x00007f95d7348ee9 HX_realpa
Actions #2

Updated by shawnhao over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

test code merged and verified on O3 and OSD
pr: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/13519

Actions

Also available in: Atom PDF