Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2004420

Summary: Regression of TC#75612: C reproducer with auparse.h segaulted
Product: Red Hat Enterprise Linux 9 Reporter: Martin Zelený <mzeleny>
Component: auditAssignee: Sergio Correia <scorreia>
Status: CLOSED ERRATA QA Contact: Martin Zelený <mzeleny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: lvrabec, mthacker, mzeleny, scorreia, sgrubb
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: audit-3.0.5-4.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:55:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Zelený 2021-09-15 08:58:17 UTC
I'm experiencing regression of TC#75612 /CoreOS/audit/Regression/bz519790-libauparse-interpreting-ipc-mode-fields-segfault [1]
Test case was made to verify bz519790, but I don't know if it's connected with that historical bz.

Working in https://beaker.engineering.redhat.com/tasks/executed?recipe_task_id=130846933&recipe_task_id=130847692&new_pkg_tasks=130846933,130847692

Not working in https://beaker.engineering.redhat.com/tasks/executed?recipe_task_id=131593529&recipe_task_id=131459476&new_pkg_tasks=131593529,131459476

[1] https://tcms.engineering.redhat.com/case/75612



OLD working: audit-3.0.2-3.el9
==============================

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

audit-3.0.2-3.el9.x86_64
:: [ 04:38:05 ] :: [   PASS   ] :: Checking for the presence of audit rpm 
:: [ 04:38:05 ] :: [   LOG    ] :: Package versions:
:: [ 04:38:05 ] :: [   LOG    ] ::   audit-3.0.2-3.el9.x86_64
audit-libs-3.0.2-3.el9.x86_64
:: [ 04:38:05 ] :: [   PASS   ] :: Checking for the presence of audit-libs rpm 
:: [ 04:38:05 ] :: [   LOG    ] :: Package versions:
:: [ 04:38:05 ] :: [   LOG    ] ::   audit-libs-3.0.2-3.el9.x86_64
audit-libs-devel-3.0.2-3.el9.x86_64
:: [ 04:38:05 ] :: [   PASS   ] :: Checking for the presence of audit-libs-devel rpm 
:: [ 04:38:05 ] :: [   LOG    ] :: Package versions:
:: [ 04:38:05 ] :: [   LOG    ] ::   audit-libs-devel-3.0.2-3.el9.x86_64
gcc-11.1.1-6.1.el9.x86_64
:: [ 04:38:05 ] :: [   PASS   ] :: Checking for the presence of gcc rpm 
:: [ 04:38:05 ] :: [   LOG    ] :: Package versions:
:: [ 04:38:05 ] :: [   LOG    ] ::   gcc-11.1.1-6.1.el9.x86_64
:: [ 04:38:05 ] :: [  BEGIN   ] :: Running 'gcc -o aup -lauparse aup.c'
:: [ 04:38:05 ] :: [   PASS   ] :: Command 'gcc -o aup -lauparse aup.c' (Expected 0, got 0)
:: [ 04:38:05 ] :: [   PASS   ] :: File aup should exist 
:: [ 04:38:05 ] :: [   PASS   ] :: File avc.log should exist 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 7 good, 0 bad
::   RESULT: PASS (Setup)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 04:38:06 ] :: [  BEGIN   ] :: Running './aup avc.log'
serial=424
seconds=1251205644
type=AVC
seresult=denied
seperms=associate
pid=6778
comm=oracle
key=-1031617816
scontext=system_u:system_r:oracle_db_t:s0
tcontext=staff_u:sysadm_r:sysadm_t:s0
tclass=shm

type=SYSCALL
arch=x86_64
syscall=shmget
per=PER_LINUX
success=yes
exit=32768
a0=0xc282c2e8
a1=0x1000
a2=0000
a3=0x0
items=0
ppid=6777
pid=6778
auid=unknown(602)
uid=unknown(601)
gid=unknown(604)
euid=unknown(601)
suid=unknown(601)
fsuid=unknown(601)
egid=unknown(604)
sgid=unknown(604)
fsgid=unknown(604)
tty=(none)
ses=1
comm=oracle
exe=/opt/oracle/product/10.2.0/bin/oracle
subj=system_u:system_r:oracle_db_t:s0
key=(null)
type=IPC
ouid=unknown(601)
ogid=unknown(604)
mode=000,001
obj=staff_u:sysadm_r:sysadm_t:s0

:: [ 04:38:06 ] :: [   PASS   ] :: Command './aup avc.log' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 1 good, 0 bad
::   RESULT: PASS (Test)





UPDATE audit to the next version
================================

Upgraded:
  audit-3.0.5-1.el9.x86_64    audit-libs-3.0.5-1.el9.x86_64    audit-libs-devel-3.0.5-1.el9.x86_64    python3-audit-3.0.5-1.el9.x86_64   

Complete!



NEW not working audit-3.0.5-1.el9, persists also in latest build audit-3.0.5-3.el9_b
====================================================================================

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

audit-3.0.5-1.el9.x86_64
:: [ 04:38:46 ] :: [   PASS   ] :: Checking for the presence of audit rpm 
:: [ 04:38:46 ] :: [   LOG    ] :: Package versions:
:: [ 04:38:46 ] :: [   LOG    ] ::   audit-3.0.5-1.el9.x86_64
audit-libs-3.0.5-1.el9.x86_64
:: [ 04:38:46 ] :: [   PASS   ] :: Checking for the presence of audit-libs rpm 
:: [ 04:38:46 ] :: [   LOG    ] :: Package versions:
:: [ 04:38:46 ] :: [   LOG    ] ::   audit-libs-3.0.5-1.el9.x86_64
audit-libs-devel-3.0.5-1.el9.x86_64
:: [ 04:38:46 ] :: [   PASS   ] :: Checking for the presence of audit-libs-devel rpm 
:: [ 04:38:46 ] :: [   LOG    ] :: Package versions:
:: [ 04:38:46 ] :: [   LOG    ] ::   audit-libs-devel-3.0.5-1.el9.x86_64
gcc-11.1.1-6.1.el9.x86_64
:: [ 04:38:46 ] :: [   PASS   ] :: Checking for the presence of gcc rpm 
:: [ 04:38:46 ] :: [   LOG    ] :: Package versions:
:: [ 04:38:46 ] :: [   LOG    ] ::   gcc-11.1.1-6.1.el9.x86_64
:: [ 04:38:46 ] :: [  BEGIN   ] :: Running 'gcc -o aup -lauparse aup.c'
:: [ 04:38:46 ] :: [   PASS   ] :: Command 'gcc -o aup -lauparse aup.c' (Expected 0, got 0)
:: [ 04:38:46 ] :: [   PASS   ] :: File aup should exist 
:: [ 04:38:46 ] :: [   PASS   ] :: File avc.log should exist 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 7 good, 0 bad
::   RESULT: PASS (Setup)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 04:38:46 ] :: [  BEGIN   ] :: Running './aup avc.log'
serial=424
seconds=1251205644
type=AVC
seresult=denied
seperms=associate
pid=6778
comm=oracle
/usr/share/beakerlib/testing.sh: line 891: 11723 Segmentation fault      (core dumped) ./aup avc.log
:: [ 04:38:46 ] :: [   FAIL   ] :: Command './aup avc.log' (Expected 0, got 139)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 0 good, 1 bad
::   RESULT: FAIL (Test)

Comment 20 errata-xmlrpc 2022-05-17 15:55:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: audit), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:3963