From nobody Fri Sep 05 17:31:49 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cJNgn24zvz65tMn for ; Fri, 05 Sep 2025 17:31:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cJNgm6BxRz4FRW for ; Fri, 05 Sep 2025 17:31:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757093508; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QtoZlfyZEy5dRVWJiEMo4f1B7HsI1quE/t2M5Yi0i1E=; b=FRtnKXhgxSY+zvCV7kItHX3sIFOfh4b8pHLmw8CI4VnstYSxk4Hg8SzwBnHYqcppC3D068 jSuDogEMqGNtbAYCfUBjLLjxJhpJ+wzCT4FIrUEIuaIcBIYni3rE0S9537M6yJ+oq4djBw jT1IdkxnXVd0hgC2rhkJUYN1yjMCM72M7mRrl2Ns+8nWBj/WE1oRduStYoGV/HiK5/b2Gh b9lPfYFKm9S8i37r+NBJ1M6gbe67r7Lad1FePE4IAvWihhIUim07m9Up4E80/GpQzkC2PD gCpGS4jJXNeridiCumJ2CcGwwk8BVD7+FIdCXVIRxgzo+4RtbvmL9S3dLmp6pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757093508; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QtoZlfyZEy5dRVWJiEMo4f1B7HsI1quE/t2M5Yi0i1E=; b=mYLpGf+WDuAWtMA4HrQ02IAT7ai5lBNEl1VZ0nuHhUXMZhBm1Z5jFIrmZlPRAl7Xuggs11 mPvh7bVoYcVqLCEF7GHFG1kcwQ+XUTqjy3nNGwuPnTQvQmeCEK65bE26PcfG78vxf4S1NQ QU2invQ/whH/ZEVyqDzn7UWCJimXjsUEHkje6xmgzQcAsHs3pskUGNnjf7ZHe+AxGB8ExM OhBCPzNp9wVKAFPm2lge2y5z4SbVYZzNQvnOlpnZ1SxhfvlmMiHa5vmmhXYqadqkpvFVoo NdJgrlGt+39YIpelF2wY2SYoRzG0jlJQ0T9ta4E+IlKF1QB4GSO2RrWduK+smQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757093508; a=rsa-sha256; cv=none; b=ujJemn0PCdEtxh9Bhfz8PV5VVdsB2UKKZqnUcgHZbXZI/vV8U9h8f1KaUEUWUDi5D0JcnR xBhJK8AqwtP6aKjTeSKLJYnGpKTurf6AKPsThshcJE77xPkjCFyIr24KUAk1Vb0TAVhZaN +O+jipTxqbgd8WNeFm43HuAGnO1xyfbWu62NLN6PSFuCve7DCOMsYjjyN8ZbciR6+EsktC r980FCd7r1PKyym6B6VUievk6Wc8HGwRKiZUv2TYpWMkjUG96Vg0XTWKKd5A0ZKkwPu74t Pkgu+nIPK3IcDoyWwTKu3J9JSyX70C8fTrxqj/OJk0w3rZ7GdugXnqZKkYwQGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cJNgm5fkwzy97 for ; Fri, 05 Sep 2025 17:31:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 585HVm0Q001899 for ; Fri, 5 Sep 2025 17:31:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 585HVmss001898 for bugs@FreeBSD.org; Fri, 5 Sep 2025 17:31:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 289303] if_ovpn(4): the daemon exits with recent updates MFCed to stable/14 Date: Fri, 05 Sep 2025 17:31:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gert@greenie.muc.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289303 --- Comment #15 from Gert Doering --- OK, so for the record, I can reproduce this with 14.3 + kernel float patch = and 2.6.14. Connect to UDP server, then unplug LAN on the laptop (-> float to wifi), wi= th --verb 7 2025-09-05 19:25:40 us=3D263268 Unknown kernel notification 2 2025-09-05 19:25:40 us=3D263273 cron2-freebsd-tc-amd64/193.149.48.172:52181 peer-id=3D0 SIGTERM[soft,ovpn-dco: ping expired] received, client-instance exiting 2025-09-05 19:25:40 us=3D263276 MULTI: multi_close_instance called 2025-09-05 19:25:40 us=3D263296 dco_update_peer_stat: invalid peer ID 0 ret= urned by kernel 2025-09-05 19:25:40 us=3D263305 PID packet_id_free reconnect (new connection!) 2025-09-05 19:26:00 us=3D154492 Reset packet from client, sending HMAC based reset challenge 2025-09-05 19:26:00 us=3D154502 GET INST BY REAL: 193.149.48.172:56519 [fai= led] ... 2025-09-05 19:26:00 us=3D173624 193.149.48.172:56519 [cron2-freebsd-tc-amd6= 4] Peer Connection Initiated with [AF_INET6]::ffff:193.149.48.172:56519 2025-09-05 19:26:00 us=3D173646 cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 MULTI_sva: pool returned IPv4=3D10.114.3.3, IPv6=3D(Not enabled) 2025-09-05 19:26:00 us=3D173682 cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 MULTI: Learn: 10.114.3.3 -> cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 2025-09-05 19:26:00 us=3D173694 cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 MULTI: primary virtual IP for cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0: 10.114.3.3 2025-09-05 19:26:00 us=3D173704 cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 dco_new_peer: peer-id 0, fd 8 2025-09-05 19:26:00 us=3D173803 cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 Failed to create new peer: File exists (errno=3D17) 2025-09-05 19:26:00 us=3D173821 cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 Exiting due to fatal error 2025-09-05 19:26:00 us=3D173833 cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 Closing DCO interface 2025-09-05 19:26:00 us=3D173842 cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 /sbin/ifconfig tun0 10.114.3.1 -alias 2025-09-05 19:26:00 us=3D175522 cron2-freebsd-tc-amd64/193.149.48.172:56519 peer-id=3D0 /sbin/ifconfig tun0 destroy ... and on installation of "peer-id 0" to kernel, kernel says "File exists". So the part about "killing the client instance" does not seem to propage to= the kernel -> kernel still has a "peer-id 0", and when OpenVPN tries to instant= iate a new one, kernel refuses. This is something we need to sort out. Maybe userland just fails to send t= he "del peer" message - it looks like it, or not. dco_freebsd.c is less verbo= se than dco_linux.c... --=20 You are receiving this mail because: You are the assignee for the bug.=