-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault on OpenBSD when configuring wireguard interface for prefix delegation #394
Comments
Some more info from a gdb session:
It looks like state.addrs.tqh_first is pointing to an unmapped address, so this may be a freed pointer? |
Pulling latest master, the crash is on a different line, but still in accessing state->addrs:
|
Just a note about your config ... it could be improved by adding the |
Running 10.1.0 on OpenBSD 7.6. dhcpcd config:
After compiling with
-g
for debug symbols, I get the following withdhcpcd -d -M -B
:It seems to be segfaulting in ipv6.c:789, reading from the
state->addrs
field, which is in turn coming from theifp
pointer.Notes:
wg0/15
from my ia_pd line makes the issue go away.It would appear that either the change in this commit is causing the issue, or something with my wireguard interface is leading to a corrupted value for the
ifp
pointer, leading to a corrupted value when reading it via IPV6_STATE? I'm a bit out of my depth on reading the code here.If you need any more info about the segfault let me know, I'm unfortunately not getting a core file so it's tough to debug for long (this is on my home router so debugging a stopped dhcpcd means my internet is out 😅)
The text was updated successfully, but these errors were encountered: