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 2067272 - conntrackd returns "[ERROR] unknown layer 3 protocol"
Summary: conntrackd returns "[ERROR] unknown layer 3 protocol"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: conntrack-tools
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 9.1
Assignee: Phil Sutter
QA Contact: yiche
URL:
Whiteboard:
Depends On:
Blocks: 2127125
TreeView+ depends on / blocked
 
Reported: 2022-03-23 17:22 UTC by Phil Sutter
Modified: 2022-11-15 10:30 UTC (History)
5 users (show)

Fixed In Version: conntrack-tools-1.4.5-14.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2127125 (view as bug list)
Environment:
Last Closed: 2022-11-15 09:59:02 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-116532 0 None None None 2022-03-23 17:37:02 UTC
Red Hat Product Errata RHBA-2022:7980 0 None None None 2022-11-15 09:59:05 UTC

Description Phil Sutter 2022-03-23 17:22:53 UTC
Conntrackd in RHEL9 contains commit ff843bcb3b905 ("conntrackd: config: Do not strdup() tokens") which is problematic and fixed upstream by:

commit c12fa8df76752b0a011430f069677b52e4dad164
Author: Ash Hughes <sehguh.hsa>
Date:   Thu May 30 21:49:56 2019 +0100

    conntrackd: Use strdup in lexer

    Use strdup in the config file lexer to copy strings to yylval.string. This
    should solve the "[ERROR] unknown layer 3 protocol" problem here:
    https://www.spinics.net/lists/netfilter/msg58628.html.

    Signed-off-by: Ash Hughes <sehguh.hsa>
    Signed-off-by: Pablo Neira Ayuso <pablo>

This one in turn is missing, it needs to be backported.

Comment 1 Phil Sutter 2022-03-23 17:28:13 UTC
Jiji, feel free to reassign to Yiche (he found the bug) and/or set qa_ack+ and ITM as you see fit. Thanks!

Comment 2 Phil Sutter 2022-03-25 11:25:16 UTC
Above patch conflicts due to context changes. With the following one, it
applies cleanly. Since it is a related fix, backport it too:

commit ce06fb6069065c3d68475356c0728a5fa0a4ab74
Author: Pablo Neira Ayuso <pablo>
Date:   Wed Mar 20 08:19:18 2019 +0100

    conntrackd: use strncpy() to unix path
    
    Make sure we don't go over the buffer boundary.
    
    Reported-by: Rijnard van Tonder <rvt>
    Signed-off-by: Pablo Neira Ayuso <pablo>

Comment 3 Phil Sutter 2022-03-25 18:22:21 UTC
Yiche, please verify and set Tested:Verified field accordingly.

Comment 4 Phil Sutter 2022-03-25 18:32:16 UTC
Requesting z-stream for RHEL9.0.0 since this is a regression from RHEL8.

Comment 7 Phil Sutter 2022-03-28 11:57:07 UTC
Oh, sorry. I missed a follow-up from upstream:

commit b47e00e8a579519b163cb4faed017463bf64c40d
Author: Michal Kubecek <mkubecek>
Date:   Mon Jul 15 08:46:23 2019 +0200

    conntrackd: use correct max unix path length
    
    When copying value of "Path" option for unix socket, target buffer size is
    UNIX_MAX_PATH so that we must not copy more bytes than that. Also make sure
    that the path is null terminated and bail out if user provided path is too
    long rather than silently truncate it.
    
    Fixes: ce06fb606906 ("conntrackd: use strncpy() to unix path")
    Signed-off-by: Michal Kubecek <mkubecek>
    Signed-off-by: Pablo Neira Ayuso <pablo>

Comment 8 yiche 2022-03-31 06:22:40 UTC
conntrack-tools-1.4.5-14.el9.x86_64 passed the test.

Comment 16 errata-xmlrpc 2022-11-15 09:59:02 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 (conntrack-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-2022:7980


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