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 1809633 - keyingtries != 1 causes shunt handling issues
Summary: keyingtries != 1 causes shunt handling issues
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libreswan
Version: 8.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.0
Assignee: Paul Wouters
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-03 15:18 UTC by Paul Wouters
Modified: 2024-03-25 15:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1810515 (view as bug list)
Environment:
Last Closed: 2020-11-04 03:18:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)

Description Paul Wouters 2020-03-03 15:18:36 UTC
This bug was initially created as a copy of Bug #1734058

I am copying this bug because it is a separate issue from the original bug.

ExecSum: use keyingtries=1 to work around shunt handling issues.


When using keyingtries=0 (the default) it means infinite rekeying tries. For Opportunistic on-demand this makes little sense, as nodes not supporting libreswan would be tried indefinitely. In larger networks this would add up quickly. An overriding value for Opportunistic to keyingtries=1 makes sense.

There is no point in retrying more than once. The first keyingtry already includes a number of retransmit attempts. The remote host is just really not ready. Upon failure, there is little point to retry unless the remote host changes. When the remote host changes, it will receive (negotiationshunt/failureshunt) cleartext traffic if the host was in the group private-or-clear and that remote host will immediately trigger Opportunistic if it can do it. If the host is in the private group, all traffic will be blocked, and if it recovers and has no traffic for the original host trying, the connection will remain down for the failureshunt lifetime. This part would be sped up by infinite keyingtries, but that requires a fix (see below)

With infinite keyingtries, the failureshunt becomes meaningless, as we are always in the negotiation phase, so the negotiationshunt is used. The codes does not handle this case properly and there is shunt interference. Since this only matters for private (not private-or-clear) perhaps no failureshunt should ever be installed when keyingtries=0 (and should be postponed for keyingtries >1 until the last failure)

Comment 10 errata-xmlrpc 2020-11-04 03:18:00 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 (libreswan 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/RHEA-2020:4722


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