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 2144829 - nfs4_getfacl: Initialize acl pointer to NULL
Summary: nfs4_getfacl: Initialize acl pointer to NULL
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nfs4-acl-tools
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-22 13:11 UTC by Steve Dickson
Modified: 2023-11-07 11:35 UTC (History)
1 user (show)

Fixed In Version: nfs4-acl-tools-0.4.2-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-07 08:55:05 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-140170 0 None None None 2022-11-22 13:16:38 UTC
Red Hat Product Errata RHBA-2023:6657 0 None None None 2023-11-07 08:55:06 UTC

Description Steve Dickson 2022-11-22 13:11:18 UTC
Description of problem:

commit ea0d882fa8c226ac27be4651f9550aa17d75462a 
Author: Steve Dickson <steved>
Date:   Mon Nov 21 14:07:58 2022 -0500

    nfs4_getfacl: Initialize acl pointer to NULL
    
    nfs4_getfacl.c: scope_hint: In function 'print_acl_from_path'
    nfs4_getfacl.c:168:17: warning[-Wmaybe-uninitialized]:
        'acl' may be used uninitialized in this function

Comment 15 Yongcheng Yang 2023-06-06 06:43:47 UTC
[root@hp-dl385g7-01-vm-03 ~]# rpm -q nfs4-acl-tools
nfs4-acl-tools-0.4.2-0.el9.x86_64
[root@hp-dl385g7-01-vm-03 ~]# rpm -Uvh nfs4-acl-tools-0.4.2-1.el9.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:nfs4-acl-tools-0.4.2-1.el9       ################################# [ 50%]
Cleaning up / removing...
   2:nfs4-acl-tools-0.4.2-0.el9       ################################# [100%]
[root@hp-dl385g7-01-vm-03 ~]# rpm -q nfs4-acl-tools
nfs4-acl-tools-0.4.2-1.el9.x86_64

# Simple test with the xfstests suite:
[root@hp-dl385g7-01-vm-03 xfstests]# ./check -nfs -g nfs4_acl
FSTYP         -- nfs
PLATFORM      -- Linux/x86_64 hp-dl385g7-01-vm-03 5.14.0-319.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 26 17:01:24 EDT 2023
MKFS_OPTIONS  -- localhost:/export_test_s
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 localhost:/export_test_s /mnt_test_s

nfs/001 5s ...  5s
Ran: nfs/001
Passed all 1 tests

[root@hp-dl385g7-01-vm-03 xfstests]# rpm -q nfs4-acl-tools
nfs4-acl-tools-0.4.2-1.el9.x86_64

Comment 16 Yongcheng Yang 2023-06-06 14:10:20 UTC
Re-verified with the newer build nfs4-acl-tools-0.4.2-2.el9:

[root@hp-dl385g7-01-vm-03 xfstests]# ./check -nfs -g nfs4_acl
FSTYP         -- nfs
PLATFORM      -- Linux/x86_64 hp-dl385g7-01-vm-03 5.14.0-319.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 26 17:01:24 EDT 2023
MKFS_OPTIONS  -- localhost:/export_test_s
MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 localhost:/export_test_s /mnt_test_s

nfs/001 5s ...  1s
Ran: nfs/001
Passed all 1 tests

[root@hp-dl385g7-01-vm-03 xfstests]# rpm -q nfs4-acl-tools
nfs4-acl-tools-0.4.2-2.el9.x86_64
[root@hp-dl385g7-01-vm-03 xfstests]#

Comment 19 Yongcheng Yang 2023-06-08 07:46:15 UTC
No new issue found in the regression tests with nfs4-acl-tools-0.4.2-2.el9: https://url.corp.redhat.com/38ca931

Comment 21 errata-xmlrpc 2023-11-07 08:55:05 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 (nfs4-acl-tools bug fix and enhancement update), 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-2023:6657


Note You need to log in before you can comment on or make changes to this bug.