plugins icon indicating copy to clipboard operation
plugins copied to clipboard

isc-dhcp (v4) - dhcpd_staticarp - ($haystack) must be of type array, null given in

Open descilla opened this issue 10 months ago • 3 comments

Important notices Before you add a new report, we ask you kindly to acknowledge the following:

  • [x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
  • [x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
  • [x] The title contains the plugin to which this issue belongs

Describe the bug After upgrading Opnsense to version 25.7.11_2 the ISC-DHCP (v4) didn't came up. An error was reported (see logs below) in dhcpd.inc. Searching for related issues on GitHub and posts on the Opnsense forum I was not able to find any other report about this issue. However you'll find a discussion on reddit where some others describe the same problem: https://www.reddit.com/r/opnsense/comments/1qdnoc6/comment/o01hx35/

Stack trace:

[25-Jan-2026 21:25:59 Europe/Berlin] TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(158): dhcpd_dhcp4_configure(true)
#3 /usr/local/etc/inc/plugins.inc(323): dhcpd_dhcp_configure(true)
#4 /usr/local/etc/rc.bootup(96): plugins_configure('dhcp', true)
#5 {main}

After browsing the related code on Github I found the following merge request which probably introduced my problem: https://github.com/opnsense/core/pull/9484/files

The previous function interfaces_staticarp_configure was renamed to interfaces_neighbors_configure however the most code of the previous function was moved to the new function dhcpd_staticarp.

In the previous function there were two checks to ensure required data structures are in place. These checks have been removed by this merge request and are likely the cause of my problem.

After adding these checks to dhcpd_staticarp again the problem seems to be solved:

    if (empty($ifconfig_details)) {
        $ifconfig_details = legacy_interfaces_details($ifcfg['if']);
    }

    if (empty($ifconfig_details[$ifcfg['if']])) {
        return;
    }

I'm not firm with the underlying functionality and even not shure whether the legacy_interfaces_details sould be kept. Therefore I didn't created a merge request and filed this issue insted. On my system the legacy_interfaces_details-code-path wasn't successful anyway and therefore the function was leved by the return statement in the 2nd if statement.

I appended the "default" log files below. However if you need more informations to understand under which conditions this error occours, please let me know.

Relevant log files System Information:

User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
FreeBSD 14.3-RELEASE-p7 stable/25.7-n271813-98ad27755186 SMP amd64
OPNsense 25.7.11_2 9bcc48111
Plugins os-cpu-microcode-intel-1.1 os-dmidecode-1.2 os-etpro-telemetry-1.8 os-intrusion-detection-content-et-open-1.0.2_2 os-net-snmp-1.6 os-netdata-1.2_1 os-node_exporter-1.2 os-realtek-re-1.0 os-sensei-2.3.2 os-sensei-agent-2.3.2 os-sensei-updater-1.18 os-smart-2.4 os-sunnyvalley-1.5_1 os-telegraf-1.12.14 os-theme-rebellion-1.9.4 os-wazuh-agent-1.2_3 os-wol-2.5_3
Time Mon, 26 Jan 2026 08:47:00 +0100
OpenSSL 3.0.18
Python 3.11.14
PHP 8.3.28

PHP Errors:

[25-Jan-2026 21:25:59 Europe/Berlin] TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(158): dhcpd_dhcp4_configure(true)
#3 /usr/local/etc/inc/plugins.inc(323): dhcpd_dhcp_configure(true)
#4 /usr/local/etc/rc.bootup(96): plugins_configure('dhcp', true)
#5 {main}
[25-Jan-2026 21:29:24 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:34:14 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:34:25 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:34:36 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:34:45 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:34:55 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:35:04 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:35:13 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:35:23 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:35:34 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:35:44 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:35:53 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:36:04 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:36:15 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:36:25 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:36:35 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:36:59 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:37:41 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:37:48 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:41:09 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 21:44:04 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1307
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1307): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1307
[25-Jan-2026 22:06:09 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc:1313
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(1313): in_array('staticarp', NULL)
#1 /usr/local/etc/inc/plugins.inc.d/dhcpd.inc(232): dhcpd_staticarp('lan', Array)
#2 /usr/local/www/services_dhcp.php(52): dhcpd_dhcp4_configure()
#3 /usr/local/www/services_dhcp.php(421): reconfigure_dhcpd()
#4 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dhcpd.inc on line 1313

dmesg.boot:

---<<BOOT>>---
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.3-RELEASE-p7 stable/25.7-n271813-98ad27755186 SMP amd64
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
[1] VT(efifb): resolution 640x480
[1] CPU microcode: updated from 0xa6 to 0xf0
[1] CPU: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (3400.00-MHz K8-class CPU)
[1]   Origin="GenuineIntel"  Id=0x506e3  Family=0x6  Model=0x5e  Stepping=3
[1]   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
[1]   Features2=0x7ffafbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
[1]   AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
[1]   AMD Features2=0x121<LAHF,ABM,Prefetch>
[1]   Structured Extended Features=0x29c6fbf<FSGSBASE,TSCADJ,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
[1]   Structured Extended Features3=0xbc002e00<MCUOPT,MD_CLEAR,TSXFA,IBPB,STIBP,L1DFL,ARCH_CAP,SSBD>
[1]   XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
[1]   IA32_ARCH_CAPS=0xc04<RSBA>
[1]   VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
[1]   TSC: P-state invariant, performance statistics
[1] real memory  = 34359738368 (32768 MB)
[1] avail memory = 33263882240 (31722 MB)
[1] Event timer "LAPIC" quality 600
[1] ACPI APIC Table: <ALASKA A M I >
[1] FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
[1] FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads
[1] random: registering fast source Intel Secure Key RNG
[1] random: fast provider: "Intel Secure Key RNG"
[1] random: unblocking device.
[1] ioapic0 <Version 2.0> irqs 0-119
[1] Launching APs: 1 5 6 2 3 4 7
[1] random: entropy device external interface
[1] wlan: mac acl policy registered
[1] kbd1 at kbdmux0
[1] WARNING: Device "spkr" is Giant locked and may be deleted before FreeBSD 15.0.
[1] efirtc0: <EFI Realtime Clock>
[1] efirtc0: registered as a time-of-day clock, resolution 1.000000s
[1] smbios0: <System Management BIOS> at iomem 0xbd342000-0xbd342017
[1] smbios0: Entry point: v3 (64-bit), Version: 3.0
[1] aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS>
[1] acpi0: <ALASKA A M I >
[1] acpi0: Power Button (fixed)
[1] cpu0: <ACPI CPU> on acpi0
[1] hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
[1] Timecounter "HPET" frequency 24000000 Hz quality 950
[1] Event timer "HPET" frequency 24000000 Hz quality 550
[1] atrtc0: <AT realtime clock> port 0x70-0x77 irq 8 on acpi0
[1] atrtc0: Warning: Couldn't map I/O.
[1] atrtc0: registered as a time-of-day clock, resolution 1.000000s
[1] Event timer "RTC" frequency 32768 Hz quality 0
[1] attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 0 on acpi0
[1] Timecounter "i8254" frequency 1193182 Hz quality 0
[1] Event timer "i8254" frequency 1193182 Hz quality 100
[1] Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
[1] acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
[1] pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
[1] pci0: <ACPI PCI bus> on pcib0
[1] pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
[1] pci1: <ACPI PCI bus> on pcib1
[1] ix0: <Intel(R) X520 82599ES (SFI/SFP+)> port 0xc020-0xc03f mem 0xdf280000-0xdf2fffff,0xdf304000-0xdf307fff irq 16 at device 0.0 on pci1
[1] ix0: Using 2048 TX descriptors and 2048 RX descriptors
[1] ix0: Using 4 RX queues 4 TX queues
[1] ix0: Using MSI-X interrupts with 5 vectors
[1] ix0: allocated for 4 queues
[1] ix0: allocated for 4 rx queues
[1] ix0: Ethernet address: 00:1b:21:be:0c:5c
[1] ix0: PCI Express Bus: Speed 5.0GT/s Width x8
[1] ix0: Option ROM V1-b1197-p0 eTrack 0x00012b2c
[1] ix0: netmap queues/slots: TX 4/2048, RX 4/2048
[1] ix1: <Intel(R) X520 82599ES (SFI/SFP+)> port 0xc000-0xc01f mem 0xdf180000-0xdf1fffff,0xdf300000-0xdf303fff irq 17 at device 0.1 on pci1
[1] ix1: Using 2048 TX descriptors and 2048 RX descriptors
[1] ix1: Using 4 RX queues 4 TX queues
[1] ix1: Using MSI-X interrupts with 5 vectors
[1] ix1: allocated for 4 queues
[1] ix1: allocated for 4 rx queues
[1] ix1: Ethernet address: 00:1b:21:be:0c:5d
[1] ix1: PCI Express Bus: Speed 5.0GT/s Width x8
[1] ix1: Option ROM V1-b1197-p0 eTrack 0x00012b2c
[1] ix1: netmap queues/slots: TX 4/2048, RX 4/2048
[1] vgapci0: <VGA-compatible display> port 0xf000-0xf03f mem 0xdd000000-0xddffffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0
[1] vgapci0: Boot video device
[1] xhci0: <Intel Sunrise Point USB 3.0 controller> mem 0xdf520000-0xdf52ffff irq 16 at device 20.0 on pci0
[1] xhci0: 32 bytes context size, 64-bit DMA
[1] usbus0: waiting for BIOS to give up control
[1] usbus0 on xhci0
[1] usbus0: 5.0Gbps Super Speed USB v3.0
[1] pci0: <simple comms> at device 22.0 (no driver attached)
[1] ahci0: <Intel Sunrise Point AHCI SATA controller> port 0xf090-0xf097,0xf080-0xf083,0xf040-0xf05f mem 0xdf548000-0xdf549fff,0xdf54e000-0xdf54e0ff,0xdf54d000-0xdf54d7ff irq 16 at device 23.0 on pci0
[1] ahci0: AHCI v1.31 with 4 6Gbps ports, Port Multiplier not supported
[1] ahcich0: <AHCI channel> at channel 0 on ahci0
[1] ahcich1: <AHCI channel> at channel 1 on ahci0
[1] ahcich2: <AHCI channel> at channel 2 on ahci0
[1] ahcich3: <AHCI channel> at channel 3 on ahci0
[1] ahciem0: <AHCI enclosure management bridge> on ahci0
[1] pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
[1] pci2: <ACPI PCI bus> on pcib2
[1] igb0: <Intel(R) PRO/1000 82576> port 0xd020-0xd03f mem 0xdf020000-0xdf03ffff,0xdec00000-0xdeffffff,0xdf044000-0xdf047fff irq 16 at device 0.0 on pci2
[1] igb0: EEPROM V1.2-1
[1] igb0: Using 1024 TX descriptors and 1024 RX descriptors
[1] igb0: Using 4 RX queues 4 TX queues
[1] igb0: Using MSI-X interrupts with 5 vectors
[1] igb0: Ethernet address: 6c:b3:11:1b:b8:3a
[1] igb0: netmap queues/slots: TX 4/1024, RX 4/1024
[1] igb1: <Intel(R) PRO/1000 82576> port 0xd000-0xd01f mem 0xdf000000-0xdf01ffff,0xde400000-0xde7fffff,0xdf040000-0xdf043fff irq 17 at device 0.1 on pci2
[1] igb1: EEPROM V1.2-1
[1] igb1: Using 1024 TX descriptors and 1024 RX descriptors
[1] igb1: Using 4 RX queues 4 TX queues
[1] igb1: Using MSI-X interrupts with 5 vectors
[1] igb1: Ethernet address: 6c:b3:11:1b:b8:3b
[1] igb1: netmap queues/slots: TX 4/1024, RX 4/1024
[1] pcib3: <ACPI PCI-PCI bridge> irq 16 at device 29.0 on pci0
[1] pci3: <ACPI PCI bus> on pcib3
[1] pcib4: <ACPI PCI-PCI bridge> irq 16 at device 0.0 on pci3
[1] pci4: <ACPI PCI bus> on pcib4
[1] pcib5: <ACPI PCI-PCI bridge> irq 17 at device 29.1 on pci0
[1] pci5: <ACPI PCI bus> on pcib5
[1] igb2: <Intel(R) I211 (Copper)> port 0xe000-0xe01f mem 0xdf400000-0xdf41ffff,0xdf420000-0xdf423fff irq 17 at device 0.0 on pci5
[1] igb2: NVM V0.4 imgtype1
[1] igb2: Using 1024 TX descriptors and 1024 RX descriptors
[1] igb2: Using 2 RX queues 2 TX queues
[1] igb2: Using MSI-X interrupts with 3 vectors
[1] igb2: Ethernet address: 00:0b:ab:d8:69:ae
[1] igb2: netmap queues/slots: TX 2/1024, RX 2/1024
[1] isab0: <PCI-ISA bridge> at device 31.0 on pci0
[1] isa0: <ISA bus> on isab0
[1] pci0: <memory> at device 31.2 (no driver attached)
[1] hdac0: <Intel Sunrise Point HDA Controller> mem 0xdf540000-0xdf543fff,0xdf530000-0xdf53ffff irq 16 at device 31.3 on pci0
[1] em0: <Intel(R) I219-V SPT-H(2)> mem 0xdf500000-0xdf51ffff irq 16 at device 31.6 on pci0
[1] em0: EEPROM V0.2-4
[1] em0: Using 1024 TX descriptors and 1024 RX descriptors
[1] em0: Using an MSI interrupt
[1] em0: Ethernet address: 00:0b:ab:d8:69:ad
[1] em0: netmap queues/slots: TX 1/1024, RX 1/1024
[1] acpi_button0: <Sleep Button> on acpi0
[1] acpi_button1: <Power Button> on acpi0
[1] acpi_tz0: <Thermal Zone> on acpi0
[1] acpi_tz1: <Thermal Zone> on acpi0
[1] acpi_tz2: <Thermal Zone> on acpi0
[1] ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0
[1] ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
[1] ppbus0: <Parallel port bus> on ppc0
[1] lpt0: <Printer> on ppbus0
[1] lpt0: Interrupt-driven port
[1] ppi0: <Parallel I/O> on ppbus0
[1] ns8250: UART FCR is broken
[1] ns8250: UART FCR is broken
[1] uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
[1] ns8250: UART FCR is broken
[1] ns8250: UART FCR is broken
[1] uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
[1] atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
[1] atkbd0: <AT Keyboard> irq 1 on atkbdc0
[1] kbd0 at atkbd0
[1] atkbd0: [GIANT-LOCKED]
[1] uart2: <16550 or compatible> port 0x240-0x247 irq 11 on acpi0
[1] uart2: forcing active-hi polarity for IRQ 11
[1] uart3: <16550 or compatible> port 0x248-0x24f irq 11 on acpi0
[1] uart3: forcing active-hi polarity for IRQ 11
[1] uart4: <16550 or compatible> port 0x250-0x257 irq 11 on acpi0
[1] uart4: forcing active-hi polarity for IRQ 11
[1] uart5: <16550 or compatible> port 0x258-0x25f irq 11 on acpi0
[1] uart5: forcing active-hi polarity for IRQ 11
[1] orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd0fff,0xd1000-0xd1fff,0xd2000-0xd2fff,0xd3000-0xd3fff pnpid ORM0000 on isa0
[1] hwpstate_intel0: <Intel Speed Shift> on cpu0
[1] cpufreq0: <CPU frequency control> on cpu0
[1] hwpstate_intel1: <Intel Speed Shift> on cpu1
[1] cpufreq1: <CPU frequency control> on cpu1
[1] hwpstate_intel2: <Intel Speed Shift> on cpu2
[1] cpufreq2: <CPU frequency control> on cpu2
[1] hwpstate_intel3: <Intel Speed Shift> on cpu3
[1] cpufreq3: <CPU frequency control> on cpu3
[1] hwpstate_intel4: <Intel Speed Shift> on cpu4
[1] cpufreq4: <CPU frequency control> on cpu4
[1] hwpstate_intel5: <Intel Speed Shift> on cpu5
[1] cpufreq5: <CPU frequency control> on cpu5
[1] hwpstate_intel6: <Intel Speed Shift> on cpu6
[1] cpufreq6: <CPU frequency control> on cpu6
[1] hwpstate_intel7: <Intel Speed Shift> on cpu7
[1] cpufreq7: <CPU frequency control> on cpu7
[1] Timecounter "TSC-low" frequency 1703996486 Hz quality 1000
[1] Timecounters tick every 1.000 msec
[1] hdacc0: <Realtek ALC892 HDA CODEC> at cad 0 on hdac0
[1] hdaa0: <Realtek ALC892 Audio Function Group> at nid 1 on hdacc0
[1] pcm0: <Realtek ALC892 (Analog 2.0+HP/2.0)> at nid 20,27 and 24,25,26 on hdaa0
[1] pcm1: <Realtek ALC892 (Rear Digital)> at nid 30 on hdaa0
[1] hdacc1: <Intel Skylake HDA CODEC> at cad 2 on hdac0
[1] hdaa1: <Intel Skylake Audio Function Group> at nid 1 on hdacc1
[1] pcm2: <Intel Skylake (HDMI/DP 8ch)> at nid 3 on hdaa1
[1] Trying to mount root from ufs:/dev/gpt/rootfs [rw]...
[1] ugen0.1: <Intel XHCI root HUB> at usbus0
[1] uhub0 on usbus0
[1] uhub0: <Intel XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
[1] ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <KINGSTON SV300S37A240G 60AABBF0> ATA8-ACS SATA 3.x device
ada0: Serial Number 50026B766A048765
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
ada0: Command Queueing enabled
ada0: 228936MB (468862128 512 byte sectors)
[1] ses0 at ahciem0 bus 0 scbus4 target 0 lun 0
ses0: <AHCI SGPIO Enclosure 2.00 0001> SEMB S-E-S 2.00 device
ses0: SEMB SES Device
[1] ses0: ada0,pass0 in 'Slot 00', SATA Slot: scbus0 target 0
[2] Root mount waiting for: usbus0
[2] uhub0: 20 ports with 20 removable, self powered

Environment

  • OPNsense 25.7.11_2 (amd64)
  • CPU: Intel i7-6700
  • NIC: Intel X520-DA2 (chipset: Intel 82599)

descilla avatar Jan 26 '26 09:01 descilla

Hmm, https://github.com/opnsense/core/commit/8d7629d9bf3 should do what you expect. Looks like a device that's no longer there is still in the configuration?

# opnsense-patch 8d7629d9bf3

Cheers, Franco

fichtner avatar Jan 26 '26 10:01 fichtner

Wow, that's a really fast response.

Yap, I changed the NIC a few years ago and had a currently unused if still assigend to this device:

Image

Note: The described issue even occoured if dhcp was disabled for the interface in question (FallbackLAN). Anyways, your patch solved the problems so everything is fine now. I'll removed the orphaned interface nevertheless. ;)

Thank you very much. :) Simon

descilla avatar Jan 26 '26 10:01 descilla

Hi Simon,

Ok that's clear then. I'll make sure to hotfix this in 25.7.11 too.

Thank you, Franco

fichtner avatar Jan 26 '26 10:01 fichtner