You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SIOCSPFXFLUSH_IN6: No buffer space available after updating to 10.3.0 (FreeBSD 14.3) #555
After years of trouble-free operation of the following dhcpcd setup, it fails with "SIOCSPFXFLUSH_IN6: No buffer space available"
This problem arose after upgrading to dhcpcd 10.3.0 on my FreeBSD 14.3 installation.
Same on my OpenBSD build. Many "No buffer space available" errors:
Nov 16 17:43:32 router dhcpcd[99330]: em0: if_af_attach: No buffer space available
Nov 16 17:43:32 router dhcpcd[99330]: em0: config file changed, expiring leases
Nov 16 17:43:32 router dhcpcd[99330]: script_runreason: No buffer space available
Nov 16 17:43:32 router dhcpcd[99330]: /var/db/dhcpcd/duid: Undefined error: 0
Nov 16 17:43:32 router dhcpcd[99330]: duid_get: cannot write duid: No buffer space available
Nov 16 17:43:32 router dhcpcd[99330]: ipv6_readsecret: cannot read secret: Inappropriate ioctl for device
Nov 16 17:43:32 router dhcpcd[99330]: ipv6_readsecret: cannot write secret: No buffer space available
Nov 16 17:43:32 router dhcpcd[99330]: ipv6_newaddr: No buffer space available
For me, this is OpenBSD 7.8. Was in the middle of trying to figure out which commit causes this....but if you have any ideas so I can focus and figure it out that would be great :) I assume it's related to the OP, but maybe not?
Unfortunately not. I subbed in a patched executable to the environment and did a rcctl restart dhcpcd
Nov 17 23:48:09 router dhcpcd[3027]: dhcpcd-10.3.0 starting
Nov 17 23:48:09 router dhcpcd[61299]: DUID xxxxx
Nov 17 23:48:09 router dhcpcd[61299]: em0: if_af_attach: No buffer space available
Nov 17 23:48:09 router dhcpcd[61299]: em2: if_af_attach: No buffer space available
Nov 17 23:48:09 router dhcpcd[61299]: script_runreason: Inappropriate ioctl for device
Nov 17 23:48:09 router last message repeated 3 times
Nov 17 23:48:09 router dhcpcd[61299]: em0: IAID xxx
Nov 17 23:48:09 router dhcpcd[61299]: em2: IAID xxx
Nov 17 23:48:10 router dhcpcd[61299]: em2: soliciting a DHCP lease
Nov 17 23:48:10 router dhcpcd[61299]: em2: interface mtu is too small (0<328): Undefined error: 0
Nov 17 23:48:10 router dhcpcd[61299]: em0: soliciting an IPv6 router
Nov 17 23:48:10 router dhcpcd[61299]: em0: Router Advertisement from fe80:xxx
Nov 17 23:48:10 router dhcpcd[61299]: em0: advertised MTU 1500 is greater than link MTU 24
Nov 17 23:48:10 router dhcpcd[61299]: em0: adding default route via fe80::xxx
Nov 17 23:48:10 router dhcpcd[61299]: if_route (CHG): No buffer space available
Nov 17 23:48:10 router dhcpcd[61299]: if_route (DEL): No buffer space available
Nov 17 23:48:10 router dhcpcd[61299]: if_route (ADD): No buffer space available
Nov 17 23:48:10 router dhcpcd[61299]: script_runreason: No buffer space available
Nov 17 23:48:10 router dhcpcd[61299]: em0: option overflow
Nov 17 23:48:10 router dhcpcd[61299]: em0: no useable IA found in lease
Nov 17 23:48:10 router dhcpcd[61299]: em0: soliciting a DHCPv6 lease
Nov 17 23:48:10 router dhcpcd[61299]: em2: soliciting an IPv6 router
Nov 17 23:48:10 router dhcpcd[61299]: em2: Router Advertisement from fe80:xxx
Nov 17 23:48:10 router dhcpcd[61299]: em2: advertised MTU 1500 is greater than link MTU 24
Nov 17 23:48:10 router dhcpcd[61299]: ipv6_readsecret: cannot read secret: Undefined error: 0
Nov 17 23:48:10 router dhcpcd[61299]: em2: adding address 2001:xxxx
Nov 17 23:48:10 router dhcpcd[61299]: em2: adding route to 2001:xxxx::/64
Nov 17 23:48:10 router dhcpcd[61299]: em2: requesting DHCPv6 information
Nov 17 23:48:11 router dhcpcd[61299]: em0: read_lease: truncated lease
Nov 17 23:48:11 router dhcpcd[61299]: em0: soliciting a DHCP lease
Nov 17 23:48:11 router dhcpcd[61299]: em0: interface mtu is too small (0<328): Undefined error: 0
Nov 17 23:48:11 router dhcpcd[61299]: em0: DHCPv6 REPLY: Sorry, no address could be allocated.
Nov 17 23:48:11 router dhcpcd[61299]: em2: REPLY6 received from fe80:xxxx
Nov 17 23:48:11 router dhcpcd[61299]: em2: refresh in 86400 seconds
Nov 17 23:48:11 router dhcpcd[61299]: dhcp_writefile: /var/db/dhcpcd/em2.lease6: No buffer space available
Nov 17 23:48:11 router dhcpcd[61299]: script_runreason: No buffer space available
Nov 17 23:48:12 router dhcpcd[61299]: em0: DHCPv6 REPLY: Sorry, no address could be allocated.
Nov 17 23:48:13 router dhcpcd[61299]: em2: if_getmtu: No buffer space available
Nov 17 23:48:14 router dhcpcd[61299]: em0: if_getmtu: No buffer space available
Nov 17 23:48:15 router dhcpcd[61299]: em2: probing for an IPv4LL address
Nov 17 23:48:15 router dhcpcd[61299]: em0: DHCPv6 REPLY: Sorry, no address could be allocated.
@DigitalDJ, is there a reason you're using dhcpcd 10.3.0 instead of the version in packages which is 10.2.4? I ask since I plan to update to OpenBSD 7.8 in the next week or two, and I'd like to know if there is an issue with the package version.
@DigitalDJ, is there a reason you're using dhcpcd 10.3.0 instead of the version in packages which is 10.2.4? I ask since I plan to update to OpenBSD 7.8 in the next week or two, and I'd like to know if there is an issue with the package version.
Zero issues with 10.2.4 on 7.8 for the time I was running it.
Just of note for replication -- I'm not entirely sure what config is different to break it on 7.8, at least for me. I also tried replicating on a fresh install and also couldn't. There's two things I can think of.... I use resflash which mounts a bunch of filesystems RO....or maybe it is because I start dhcpcd quite early in the boot process? I modified /etc/rc to start dhcpcd (instead of OpenBSD's dhcpleased), which means dhcpcd starts before sh /etc/netstart is run. Just some context anyway....
Activity
DigitalDJ commentedon Nov 16, 2025
Same on my OpenBSD build. Many "No buffer space available" errors:
rsmarples commentedon Nov 17, 2025
@athanp is it only
SIOCSPFXFLUSH_IN6that is reporting the error for you? Does it fail to start after that?@DigitalDJ what OpenBSD version are you using?
DigitalDJ commentedon Nov 17, 2025
For me, this is OpenBSD 7.8. Was in the middle of trying to figure out which commit causes this....but if you have any ideas so I can focus and figure it out that would be great :) I assume it's related to the OP, but maybe not?
rsmarples commentedon Nov 17, 2025
Does this patch help both of you?
DigitalDJ commentedon Nov 17, 2025
Unfortunately not. I subbed in a patched executable to the environment and did a rcctl restart dhcpcd
DigitalDJ commentedon Nov 17, 2025
Config looks like
athanp commentedon Nov 17, 2025
Nope, some others too but I'm not now at the lab to give you more details.
And yes, it fails to start after that.
zacknewman commentedon Nov 17, 2025
@DigitalDJ, is there a reason you're using
dhcpcd 10.3.0instead of the version in packages which is10.2.4? I ask since I plan to update to OpenBSD 7.8 in the next week or two, and I'd like to know if there is an issue with the package version.privsep: Ensure we recv for real after a successful recv MSG_PEEK
DigitalDJ commentedon Nov 18, 2025
Zero issues with 10.2.4 on 7.8 for the time I was running it.
rsmarples commentedon Nov 18, 2025
@athanp @DigitalDJ Can you test that branch please? Hopefully fixes the issue for you.
NOTE: I cannot replicate this on my FreeBSD-14.3, 15-STABLE or OpenBSD-7.8 vm's.
DigitalDJ commentedon Nov 18, 2025
Yep, I just tested that now. It resolves the issue for OpenBSD 7.8. Thank you!
DigitalDJ commentedon Nov 18, 2025
Just of note for replication -- I'm not entirely sure what config is different to break it on 7.8, at least for me. I also tried replicating on a fresh install and also couldn't. There's two things I can think of.... I use
resflashwhich mounts a bunch of filesystems RO....or maybe it is because I startdhcpcdquite early in the boot process? I modified/etc/rcto startdhcpcd(instead of OpenBSD'sdhcpleased), which meansdhcpcdstarts beforesh /etc/netstartis run. Just some context anyway....athanp commentedon Nov 18, 2025
@rsmarples I confirm that it works fine on FreeBSD 14.3 with no further noticeable issues so far.
asagratini commentedon Nov 19, 2025
@athanp , probably worth mentioning, that, while we are waiting for the fix from upstream here, the FreeBSD port was updated to include the patch, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291081
perkelix commentedon Jan 3, 2026
Can everyone confirm that the commit at this pull request fixes it?
asagratini commentedon Jan 3, 2026
@perkelix it fixes the issue described in this issue for me, but it does not fix #565
DigitalDJ commentedon Jan 3, 2026
I've been running with this patch since it was published and I've not run into issues with it.
rsmarples commentedon Feb 17, 2026
I've committed the branch, but from the commentary above this issue is still open.
rsmarples commentedon Feb 17, 2026
But really this is a dupe of #565 now.