From nobody Mon Feb 17 15:53:03 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 4YxRy73mNDz5np9w for ; Mon, 17 Feb 2025 15:53:03 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YxRy73BmQz3jBH for ; Mon, 17 Feb 2025 15:53:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739807583; 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; bh=Z81CU+0sb1HcS/Kl8FCoR9tl803Wta4HRIm2DKHBng0=; b=kLEqgjVGkuB4kssZv2FwAij6EA5BueIGtDAhFrjCw2qMPjMNfLG/wzkUTC6uVvO/AMXEE0 TfCrra3DnoJxwD1mgMzrUkvNb5II/sIwfB1fFKzMScNZbNx7VJxHQ5JhnHattggz7EotNp U/C2Bu3DVX63grY4csVrR1UgZ7tB/J98/OSUkuZG7CDlJwTukUQ3HTSW4ommzgFMzzyZZe cToYp4Uf5yUiuNLekZl6SLDCCdWRSURwtPCTU7WK3MdDloGiflbtsiR8IBR8cF2XVX5rP9 7RXfxznYqA6nkgbEZvYMJQ5UVteO9blJatfbauHutMQxgHfyoyD0lV+h/MZweQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739807583; a=rsa-sha256; cv=none; b=QeFq5lJh9LFX+Pb9DWSizHbxxZ610vCvqYGBuD4kb1naCJoUmrjDnp8Um147BmWQ/YqU1D IXp2jSSCnZ6kEBcHI470JODAMUZ1iHqIjYq5ihoPuerm0B67SsgVj2nyJv7S3VBNfd5rU0 fUvhQ0VQnf30rtVckYMHAl3Xkd1VGeVc55kNQ7WsG0XlIHThz9wRopuDf5gFLLN8MfxuBu eHk8BSEUWgXMoPgxxqKbMh4fkFWUHCSzKZUaqpIJlwDT1qB4/ZFIE+iSZTAAqL0ThgapeB rIfxcznK03krmGR8l9P3J8/rQanbX4IESdt7IVx9wrxtAmU9Cmvy+h9lFKgVqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739807583; 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; bh=Z81CU+0sb1HcS/Kl8FCoR9tl803Wta4HRIm2DKHBng0=; b=bi9LlxHOYCbZpo8aJMplAvNwFhQEKswwl9wJ88++A6dzzkCreV8B3SOCP3RkuyC5iOAmEx Z0kFE11dxbLwJL8w3N086+K4kTat9vIRIun4EmuaYFWKKTdxFUM7jrQ0yZva0yfHwqrYQr BdSSR09h0mx0+fX5uO2GJ+00mitmtL1z78NyTAsLjAz2D0RqAauv0iwmzSYMy9iPLs1VaL YzvbrWQtFZqY7MOr8I6v/eEL9W/Ulkd2pC7xaO8ezixMRi6e9nA4Bt2MkEElwHIEVxwe4Y YIEIi3eaVVTtRU9p8sEgnvwmNEd+6ioXjLnLI2f/fCnonejbmHqzAIQfnJ50eA== 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 4YxRy72hs1zgFm for ; Mon, 17 Feb 2025 15:53:03 +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 51HFr3Fe058807 for ; Mon, 17 Feb 2025 15:53:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 51HFr3sW058805 for bugs@FreeBSD.org; Mon, 17 Feb 2025 15:53:03 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 284863] ntpd throws "Address already in use" error with shared IP on multiple interfaces after upgrade from 14.1 to 14.2 Date: Mon, 17 Feb 2025 15:53:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: leif@ofWilsonCreek.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=3D284863 Bug ID: 284863 Summary: ntpd throws "Address already in use" error with shared IP on multiple interfaces after upgrade from 14.1 to 14.2 Product: Base System Version: 14.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: leif@ofWilsonCreek.com After upgrading from FreeBSD 14.1 to 14.2, ntpd now fails to start with the error "Address already in use" when two or more network interfaces are configured with the same IP address. This behavior was not observed in Free= BSD 14.1 where ntpd would start without issues under the same configuration. Steps to Reproduce: 1. Configure two or more network interfaces with the same IP address on a FreeBSD 14.2 system: ifconfig_ena0=3D"inet 10.96.16.8/20" ifconfig_tun0=3D"inet 10.96.16.8/32" 2. Configure ntp.conf as follows: server nss.nts.umn.edu burst iburst server time.nist.gov burst iburst restrict default kod limited nomodify notrap restrict -6 default kod limited nomodify notrap restrict 127.0.0.1 restrict -6 ::1 3. Attempt to start ntpd: service ntpd start 4. Observe the error in syslog, attached below. Workaround: Specifying the interface to ntpd sidesteps the problem, for example `ntpd_flags=3D"--interface=3Dena0"`. However, this is suboptimal as it requ= ires explicit interface selection for ntpd. Configuration details: ntp.conf=20 server nss.nts.umn.edu burst iburst server time.nist.gov burst iburst restrict default kod limited nomodify notrap restrict -6 default kod limited nomodify notrap restrict 127.0.0.1 restrict -6 ::1 Syslog: Feb 17 15:04:59 bigbrother ntpd[497]: Command line: /usr/sbin/ntpd -p /var/db/ntp/ntpd.pid -c /etc/ntp.conf -f /var/db/ntp/ntpd.drift -g Feb 17 15:04:59 bigbrother ntpd[498]: Listen and drop on 0 v6wildcard [::]:= 123 Feb 17 15:04:59 bigbrother ntpd[498]: Listen and drop on 1 v4wildcard 0.0.0.0:123 Feb 17 15:04:59 bigbrother ntpd[498]: Listen normally on 2 ena0 [fe80::c07:6eff:fe7f:d2f4%1]:123 Feb 17 15:04:59 bigbrother ntpd[498]: Listen normally on 3 ena0 10.96.16.8:= 123 Feb 17 15:04:59 bigbrother ntpd[498]: Listen normally on 4 lo0 [::1]:123 Feb 17 15:04:59 bigbrother ntpd[498]: Listen normally on 5 lo0 [fe80::1%2]:= 123 Feb 17 15:04:59 bigbrother kernel: pid 498 (ntpd), jid 0, uid 123: exited on signal 11 (no core dump - other error) Feb 17 15:04:59 bigbrother ntpd[498]: Listen normally on 6 lo0 127.0.0.1:123 Feb 17 15:04:59 bigbrother ntpd[498]: bind(27) AF_INET 10.96.16.8:123 flags 0x13 failed: Address already in use Feb 17 15:04:59 bigbrother ntpd[498]: unable to create socket on tun5018 (7) for 10.96.16.8:123 Feb 17 15:04:59 bigbrother ntpd[497]: daemon child died with signal 11 --=20 You are receiving this mail because: You are the assignee for the bug.=