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 2145144

Summary: libxtables: Revert change to struct xtables_pprot
Product: Red Hat Enterprise Linux 8 Reporter: Phil Sutter <psutter>
Component: iptablesAssignee: Phil Sutter <psutter>
Status: CLOSED ERRATA QA Contact: Jiri Peska <jpeska>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.8CC: egarver, jpeska, todoleza, toneata
Target Milestone: rcKeywords: TestOnly, Triaged, Upstream, ZStream
Target Release: 8.8Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: iptables-1.8.5-1.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2221107 (view as bug list) Environment:
Last Closed: 2023-11-14 15:51:50 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:
Bug Depends On:    
Bug Blocks: 2221107    

Description Phil Sutter 2022-11-23 10:53:18 UTC
One of the backports for Bug 2058444 introduced libxtables ABI breakage, fix
this by backporting the following commit:

commit a7c2b7289cd31455b854fee7d5c735c6270518a3
Author: Phil Sutter <phil>
Date:   Fri May 6 00:11:47 2022 +0200

    libxtables: Revert change to struct xtables_pprot

    While protocol values may exceed eight bits, the data structure is
    indeed used only to store the static list of name/value pairs for faster
    lookups. None of those has such a value and if one is added in future,
    the compiler will complain about it.

    So restore the old field type to retain binary compatibility.

    Fixes: 556f704458cdb ("Use proto_to_name() from xshared in more places")
    Signed-off-by: Phil Sutter <phil>

RHEL9 is unaffected, RHEL8.6 has the fix already via Bug 2137953, RHEL8.7 needs
to be fixed as well.

Comment 4 Phil Sutter 2023-07-07 09:54:33 UTC
Marking as TestOnly since the fix is already contained in backports for bug 2211063.

Given the fact that there is no functional change (unless crafted by custom code relying upon the data structure layout), sanity only testing probably suffices.

Comment 8 Phil Sutter 2023-09-06 20:49:34 UTC
There will be release notes for this change in RHEL8.8.z update. Since RHEL8.9 is not GA yet, there is no point in documenting this fix here.

Comment 10 errata-xmlrpc 2023-11-14 15:51:50 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 (iptables 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:7184