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.
Description of problem:
nfnl_osf seems to halt right at the first signature, and thus fails to load them into the kernel.
Version-Release number of selected component (if applicable):
iptables-utils-1.4.21-34.el7.x86_64
How reproducible:
Steps to Reproduce:
1. install iptables-utils in order to get the nfnl_osf tool
# yum install iptables-utils
2. run the nfnl_osf to load the signatures
# nfnl_osf -f /usr/share/xtables/pf.os
3. the tool seems to show the first signature and stuck there
Actual results:
tool get stuck at the first signature rule loading
Expected results:
all rules from the signature file should be loaded successfully
Additional info:
After the failed load attempt, the first attempt of signature rule removal w/:
nfnl_osf -f /usr/share/xtables/pf.os -d
will also get stuck. Then on additional attempts it seems not to hang, but returns w/ returncode of 255.
strace says it's get stuck on loads w/:
sendto(3, {{len=616, type=NFNL_SUBSYS_OSF<<8|OSF_MSG_ADD, flags=NLM_F_REQUEST|0x400, seq=1588249244, pid=0}, {nfgen_family=AF_UNSPEC, version=NFNETLINK_V0, res_id=htons(0), {{nla_len=596, nla_type=NFNETLINK_V1}, "\x00\x00\x00\x00\x00\x40\x00\x00\x40\x00\x3c\x00\x00\x00\x06\x00\x41\x49\x58\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"...}}, 616, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 616
recvfrom(3, 0x7ffc95bd5790, 8192, 0, 0x7ffc95bd5760, [12]) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
first remove attempt:
sendto(3, {{len=616, type=NFNL_SUBSYS_OSF<<8|OSF_MSG_REMOVE, flags=NLM_F_REQUEST, seq=1588249531, pid=0}, {nfgen_family=AF_UNSPEC, version=NFNETLINK_V0, res_id=htons(0), {{nla_len=596, nla_type=NFNETLINK_V1}, "\x00\x00\x00\x00\x00\x40\x00\x00\x40\x00\x3c\x00\x00\x00\x06\x00\x41\x49\x58\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"...}}, 616, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 616
recvfrom(3, 0x7ffc5a7e9d80, 8192, 0, 0x7ffc5a7e9d50, [12]) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
second remove attempt:
sendto(3, {{len=616, type=NFNL_SUBSYS_OSF<<8|OSF_MSG_REMOVE, flags=NLM_F_REQUEST, seq=1588249615, pid=0}, {nfgen_family=AF_UNSPEC, version=NFNETLINK_V0, res_id=htons(0), {{nla_len=596, nla_type=NFNETLINK_V1}, "\x00\x00\x00\x00\x00\x40\x00\x00\x40\x00\x3c\x00\x00\x00\x06\x00\x41\x49\x58\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"...}}, 616, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 616
recvfrom(3, {{len=636, type=NLMSG_ERROR, flags=0, seq=1588249615, pid=17599}, {error=-ENOENT, msg={{len=616, type=NFNL_SUBSYS_OSF<<8|OSF_MSG_REMOVE, flags=NLM_F_REQUEST, seq=1588249615, pid=0}, {nfgen_family=AF_UNSPEC, version=NFNETLINK_V0, res_id=htons(0), {{nla_len=596, nla_type=NFNETLINK_V1}, "\x00\x00\x00\x00\x00\x40\x00\x00\x40\x00\x3c\x00\x00\x00\x06\x00\x41\x49\x58\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"...}}}}, 8192, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 636
close(4) = 0
munmap(0x7f335b112000, 4096) = 0
close(3) = 0
exit_group(-1) = ?
+++ exited with 255 +++
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-2020:4023
Description of problem: nfnl_osf seems to halt right at the first signature, and thus fails to load them into the kernel. Version-Release number of selected component (if applicable): iptables-utils-1.4.21-34.el7.x86_64 How reproducible: Steps to Reproduce: 1. install iptables-utils in order to get the nfnl_osf tool # yum install iptables-utils 2. run the nfnl_osf to load the signatures # nfnl_osf -f /usr/share/xtables/pf.os 3. the tool seems to show the first signature and stuck there Actual results: tool get stuck at the first signature rule loading Expected results: all rules from the signature file should be loaded successfully Additional info: After the failed load attempt, the first attempt of signature rule removal w/: nfnl_osf -f /usr/share/xtables/pf.os -d will also get stuck. Then on additional attempts it seems not to hang, but returns w/ returncode of 255. strace says it's get stuck on loads w/: sendto(3, {{len=616, type=NFNL_SUBSYS_OSF<<8|OSF_MSG_ADD, flags=NLM_F_REQUEST|0x400, seq=1588249244, pid=0}, {nfgen_family=AF_UNSPEC, version=NFNETLINK_V0, res_id=htons(0), {{nla_len=596, nla_type=NFNETLINK_V1}, "\x00\x00\x00\x00\x00\x40\x00\x00\x40\x00\x3c\x00\x00\x00\x06\x00\x41\x49\x58\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"...}}, 616, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 616 recvfrom(3, 0x7ffc95bd5790, 8192, 0, 0x7ffc95bd5760, [12]) = ? ERESTARTSYS (To be restarted if SA_RESTART is set) first remove attempt: sendto(3, {{len=616, type=NFNL_SUBSYS_OSF<<8|OSF_MSG_REMOVE, flags=NLM_F_REQUEST, seq=1588249531, pid=0}, {nfgen_family=AF_UNSPEC, version=NFNETLINK_V0, res_id=htons(0), {{nla_len=596, nla_type=NFNETLINK_V1}, "\x00\x00\x00\x00\x00\x40\x00\x00\x40\x00\x3c\x00\x00\x00\x06\x00\x41\x49\x58\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"...}}, 616, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 616 recvfrom(3, 0x7ffc5a7e9d80, 8192, 0, 0x7ffc5a7e9d50, [12]) = ? ERESTARTSYS (To be restarted if SA_RESTART is set) second remove attempt: sendto(3, {{len=616, type=NFNL_SUBSYS_OSF<<8|OSF_MSG_REMOVE, flags=NLM_F_REQUEST, seq=1588249615, pid=0}, {nfgen_family=AF_UNSPEC, version=NFNETLINK_V0, res_id=htons(0), {{nla_len=596, nla_type=NFNETLINK_V1}, "\x00\x00\x00\x00\x00\x40\x00\x00\x40\x00\x3c\x00\x00\x00\x06\x00\x41\x49\x58\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"...}}, 616, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 616 recvfrom(3, {{len=636, type=NLMSG_ERROR, flags=0, seq=1588249615, pid=17599}, {error=-ENOENT, msg={{len=616, type=NFNL_SUBSYS_OSF<<8|OSF_MSG_REMOVE, flags=NLM_F_REQUEST, seq=1588249615, pid=0}, {nfgen_family=AF_UNSPEC, version=NFNETLINK_V0, res_id=htons(0), {{nla_len=596, nla_type=NFNETLINK_V1}, "\x00\x00\x00\x00\x00\x40\x00\x00\x40\x00\x3c\x00\x00\x00\x06\x00\x41\x49\x58\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"...}}}}, 8192, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, [12]) = 636 close(4) = 0 munmap(0x7f335b112000, 4096) = 0 close(3) = 0 exit_group(-1) = ? +++ exited with 255 +++