Skip to content
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

skip loacl variable in dhcp_netid_free when reload dnsmasq config #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ruansteve
Copy link

@ruansteve ruansteve commented Jun 13, 2022

Test on version 2.86,
# ps aux | grep dns nobody 117520 0.0 0.0 6796 864 ? S 18:34 0:00 /usr/local/zstack/dnsmasq --conf-file=/var/lib/zstack/dnsmasq/br_eth0_20accb7db1af4070b31ae6b18af15d57/dnsmasq.conf -K
# cat /var/lib/zstack/dnsmasq/br_eth0_20accb7db1af4070b31ae6b18af15d57/dnsmasq.conf domain-needed bogus-priv no-hosts addn-hosts=/var/lib/zstack/dnsmasq/br_eth0_20accb7db1af4070b31ae6b18af15d57/hosts.dns dhcp-option=vendor:MSFT,2,1i dhcp-lease-max=65535 dhcp-hostsfile=/var/lib/zstack/dnsmasq/br_eth0_20accb7db1af4070b31ae6b18af15d57/hosts.dhcp dhcp-optsfile=/var/lib/zstack/dnsmasq/br_eth0_20accb7db1af4070b31ae6b18af15d57/hosts.option log-facility=/var/lib/zstack/dnsmasq/br_eth0_20accb7db1af4070b31ae6b18af15d57/dnsmasq.log interface=inner1 except-interface=lo bind-interfaces leasefile-ro dhcp-range=172.24.0.1,static
`# cat /var/lib/zstack/dnsmasq/br_eth0_20accb7db1af4070b31ae6b18af15d57/hosts.dhcp
fa:32:c4:95:ae:00,set:fa32c495ae00,172.24.24.10,172-24-24-10,infinite
fa:43:23:f9:c1:00,set:fa4323f9c100,172.24.24.13,172-24-24-13,infinite

reboot vm 172.24.24.13, then kill -1 $dnsmasq, dnsmasq will segfault.

@karelbilek
Copy link

This is not a proper place to put PRs to dnsmasq, it's just a mirror.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants