From: "plaisthos (Code Review)" Date: Mon, 19 Jan 2026 19:13:22 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, ralf@...2726... Message-ID: <33df3216629107617d46e3732b4963e173556bb7-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="TFQAG3IsLUQ="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: dco: ignore key transition window logic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ralf_lici Cc: openvpn-devel --TFQAG3IsLUQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: ralf_lici. plaisthos has posted comments on this change by ralf_lici. ( http://gerrit.= openvpn.net/c/openvpn/+/1479?usp=3Demail ) Change subject: dco: ignore key transition window logic ...................................................................... Patch Set 1: Code-Review-2 (1 comment) Patchset: PS1: >Although the DCO part > of this mechanism is set up in userspace, none of the drivers actually >implements it in the kernel. We implement this with secondary and primary key for the kernel as well. Op= enVPN assume that the primary key is always used for encryption and that th= e secondary key can be used for decryption. Currently dco_update_keys also installs the new negotiated key first as sec= ondary key and then only when it becomes the primary key we call dco_swap_k= eys. Which we do after the transition period. So we basically have this tra= nsition period in user space. Which part of that is not implemented in kernel space? Is secondary ignored= or what? The commit is missing what part exactly is not implemented in the= DCO drivers here. If you ignore the period and switch to the new key as soon as you get it, y= ou get packet loss as there is no way around a packet loss unless you have = a transition period where both keys are active for decryption. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1479?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I3d506725e69c09a9c77d6a9ba71a00e112e7abb6 Gerrit-Change-Number: 1479 Gerrit-PatchSet: 1 Gerrit-Owner: ralf_lici Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: ralf_lici Gerrit-Comment-Date: Mon, 19 Jan 2026 19:13:22 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --TFQAG3IsLUQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: ralf_lici.

Patch set 1:Code-Review -2=

V= iew Change

1 comment:

  • Patchset:

    • Patch Set #1:

      >Althoug= h the DCO part
      > of this mechanism is set up in userspace, none of th= e drivers actually
      >implements it in the kernel.

      We implement thi= s with secondary and primary key for the kernel as well. OpenVPN assume tha= t the primary key is always used for encryption and that the secondary key = can be used for decryption.

      Currently dco_update_keys also installs th= e new negotiated key first as secondary key and then only when it becomes t= he primary key we call dco_swap_keys. Which we do after the transition peri= od. So we basically have this transition period in user space.

      Which p= art of that is not implemented in kernel space? Is secondary ignored or wha= t? The commit is missing what part exactly is not implemented in the DCO dr= ivers here.

      If you ignore the period and switch to the new key as soon = as you get it, you get packet loss as there is no way around a packet loss = unless you have a transition period where both keys are active for decrypti= on.

To view, visit change 1479. To unsubscribe, or fo= r help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3d506725e69c09a9c77d6a9ba71= a00e112e7abb6
Gerrit-Change-Number: 1479
Gerrit-PatchSet: 1
Gerrit-Owner: ralf_lici <ralf@...2726...>= ;
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: ralf_lici <ralf@...2804...= .>
Gerrit-Comment-Date: Mon, 19 Jan 2026 19:13:22= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --TFQAG3IsLUQ=--