Project

General

Profile

Actions

Regression #15810

closed

ntpd can fail to start when unbindable addresses exist

Added by Steve Wheeler 18 days ago. Updated 15 days ago.

Status:
Resolved
Priority:
Normal
Category:
NTPD
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
24.11
Release Notes:
Force Exclusion
Affected Version:
2.8.0
Affected Architecture:
All

Description

When IP addresses exist on the system that ntpd cannot bind to it can fail to start and core dump.

For example an IPv6 address that is marked as duplicated:

vtnet1: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    description: LAN
    options=800b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,LINKSTATE>
    ether 76:2c:71:97:db:70
    inet 192.168.167.1 netmask 0xffffff00 broadcast 192.168.167.255
    inet6 fe80::742c:71ff:fe97:db70%vtnet1 prefixlen 64 scopeid 0x2
    inet6 fe80::1:1%vtnet1 prefixlen 64 duplicated scopeid 0x2
    media: Ethernet autoselect (10Gbase-T <full-duplex>)
    status: active

Results in:

Nov 1 18:49:55     ntpd     7513     ntpd 4.2.8p18@1.4062-o Wed May 29 07:23:37 UTC 2024 (1): Starting
Nov 1 18:49:55     ntpd     7513     Command line: /usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid
Nov 1 18:49:55     ntpd     7513     ----------------------------------------------------
Nov 1 18:49:55     ntpd     7513     ntp-4 is maintained by Network Time Foundation,
Nov 1 18:49:55     ntpd     7513     Inc. (NTF), a non-profit 501(c)(3) public-benefit
Nov 1 18:49:55     ntpd     7513     corporation. Support and training for ntp-4 are
Nov 1 18:49:55     ntpd     7513     available at https://www.nwtime.org/support
Nov 1 18:49:55     ntpd     7513     ----------------------------------------------------
Nov 1 18:49:55     ntpd     7596     proto: precision = 0.055 usec (-24)
Nov 1 18:49:55     ntpd     7596     basedate set to 2024-05-17
Nov 1 18:49:55     ntpd     7596     gps base set to 2024-05-19 (week 2315)
Nov 1 18:49:55     ntpd     7596     initial drift restored to 44.469025
Nov 1 18:49:55     ntpd     7596     Listen and drop on 0 v6wildcard [::]:123
Nov 1 18:49:55     ntpd     7596     Listen and drop on 1 v4wildcard 0.0.0.0:123
Nov 1 18:49:55     ntpd     7596     Listen normally on 2 vtnet0 [fe80::18f0:2cff:fe1a:20ae%1]:123
Nov 1 18:49:55     ntpd     7596     Listen normally on 3 vtnet0 172.21.16.26:123
Nov 1 18:49:55     ntpd     7596     Listen normally on 4 vtnet1 [fe80::742c:71ff:fe97:db70%2]:123
Nov 1 18:49:55     ntpd     7596     Listen normally on 5 vtnet1 192.168.167.1:123
Nov 1 18:49:55     ntpd     7596     bind(26) AF_INET6 [fe80::1:1%2]:123 flags 0x811 failed: Can't assign requested address
Nov 1 18:49:55     ntpd     7596     unable to create socket on vtnet1 (6) for [fe80::1:1%2]:123
Nov 1 18:49:55     ntpd     7513     daemon child died with signal 11 

Nov 1 18:49:55     php-fpm     55722     /status_services.php: The command '/usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pid' returned exit code '70', the output was 'daemon control: got EOF'
Nov 1 18:49:55     php-fpm     55722     /status_services.php: NTPD is starting up.
Nov 1 18:49:56     kernel         pid 7596 (ntpd), jid 0, uid 0: exited on signal 11 (core dumped) 

This is a regression since ntpd 4.2.8p17 in 24.03

Actions #1

Updated by Christian McDonald 18 days ago

  • Assignee set to Christian McDonald
Actions #2

Updated by Christian McDonald 15 days ago

  • Status changed from Confirmed to Feedback
  • Release Notes changed from Default to Force Exclusion
Actions #3

Updated by Christian McDonald 15 days ago

Patch is in our trees

Actions #4

Updated by Marcos M 15 days ago

  • Project changed from pfSense Plus to pfSense
  • Subject changed from ntpd can fail to start when unbindable addresses exit to ntpd can fail to start when unbindable addresses exist
  • Category changed from NTPD to NTPD
  • Status changed from Feedback to Resolved
  • Target version changed from 24.11 to 2.8.0
  • Affected Plus Version deleted (24.11)
  • Plus Target Version set to 24.11
  • Affected Version set to 2.8.0
Actions

Also available in: Atom PDF