Package: dnsmasq Version: 2.85-1 Severity: normal X-Debbugs-Cc: johannes.dr...@nfon.com
Dear maintainer, dnsmasq segfaults the moment a DHCP request is served and the client continues to request PXEboot files when the config option 'port=0' is used (which according to the manpage should just disable DNS). This behavior was reliably tracked down to the above mentioned config option - if it was not set, the server did not die, if it was set, it would segfault every time. Used configs & log: dnsmasq.conf: ############### conf-dir=/etc/dnsmasq.d dhcp-option=option:dns-server,10.27.255.254,10.17.255.254 dhcp-option=option:router,10.29.248.254 dhcp-vendorclass=UEFI,PXEClient:Arch:00007 dhcp-boot=net:UEFI,boot/grub/x86_64-efi/core.efi,,10.28.24.33 dhcp-vendorclass=BIOS,PXEClient:Arch:00000 dhcp-boot=net:BIOS,lpxelinux.0,,10.28.24.33 interface=ens192 port=0 dhcp-boot=pxelinux.0,,ens192 tftp-root=/srv/tftp dhcp-range=10.29.248.2,10.29.248.100,255.255.255.0,1h pxe-service=x86PC, "Install Linux", pxelinux,ens192 pxe-service=x86-64_EFI, "Install Linux", core.efi,ens192 bind-interfaces log-dhcp enable-tftp tftp-no-fail ############### dnsmasq.d/client.conf: ############### dhcp-range=10.28.24.0,static,255.255.255.0 dhcp-host=00:aa:bb:cc:dd:ee,00:aa:bb:cc:dd:ef,set:client.example.com,10.28.24.43 dhcp-option=tag:client.example.com,3,10.28.24.254 dhcp-option=tag:client.example.com,12,client.example.com ############### log file: ############### Oct 12 16:02:44 dnsmasq[24978]: started, version 2.85 DNS disabled Oct 12 16:02:44 dnsmasq[24978]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile Oct 12 16:02:44 dnsmasq-dhcp[24978]: DHCP, IP range 10.29.248.2 -- 10.29.248.100, lease time 1h Oct 12 16:02:44 dnsmasq-dhcp[24978]: DHCP, static leases only on 10.28.24.0, lease time 1h Oct 12 16:02:44 dnsmasq-dhcp[24978]: DHCP, static leases only on 10.28.24.0, lease time 1h Oct 12 16:02:44 dnsmasq-dhcp[24978]: DHCP, sockets bound exclusively to interface ens192 Oct 12 16:02:44 dnsmasq-tftp[24978]: TFTP root is /srv/tftp Oct 12 16:02:49 dnsmasq-dhcp[24978]: 546438459 available DHCP subnet: 10.28.24.0/255.255.255.0 Oct 12 16:02:49 dnsmasq-dhcp[24978]: 546438459 available DHCP subnet: 10.28.24.0/255.255.255.0 Oct 12 16:02:49 dnsmasq-dhcp[24978]: 546438459 client provides name: localhost Oct 12 16:02:49 dnsmasq-dhcp[24978]: 546438459 DHCPDISCOVER(ens192) 00:ff:ab:cd:ef:ab no address available Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 available DHCP subnet: 10.28.24.0/255.255.255.0 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 available DHCP subnet: 10.28.24.0/255.255.255.0 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 vendor class: PXEClient:Arch:00000:UNDI:002001 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 DHCPDISCOVER(ens192) 00:aa:bb:cc:dd:ef Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 tags: client.example.com, known, BIOS, ens192 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 DHCPOFFER(ens192) 10.28.24.43 00:aa:bb:cc:dd:ef Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 requested options: 1:netmask, 2:time-offset, 3:router, 5, 6:dns-server, Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 requested options: 11, 12:hostname, 13:boot-file-size, 15:domain-name, Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 requested options: 16:swap-server, 17:root-path, 18:extension-path, Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 requested options: 43:vendor-encap, 54:server-identifier, 60:vendor-class, Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 requested options: 67:bootfile-name, 128, 129, 130, 131, 132, Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 requested options: 133, 134, 135 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 next server: 10.28.24.33 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 broadcast response Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 1 option: 53 message-type 2 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 54 server-identifier 10.28.24.33 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 51 lease-time 1h Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 12 option: 67 bootfile-name lpxelinux.0 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 58 T1 30m Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 59 T2 52m30s Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 1 netmask 255.255.255.0 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 28 broadcast 10.28.24.255 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 8 option: 6 dns-server 10.27.255.254, 10.17.255.254 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 41 option: 12 hostname client.example.com Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 3 router 10.28.24.254 Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 9 option: 60 vendor-class af:bf:cf:df:ef:ff:0f:1f:2f Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 17 option: 97 client-machine-id 00:ab:ad:af:aa:ac:ae:a0:a1:a2:a3:a4:a5:a6... Oct 12 16:03:19 dnsmasq-dhcp[24978]: 1471509918 sent size: 37 option: 43 vendor-encap a0:a1:a2:a3:a4:a5:af:bf:cf:a9:aa:ab:ac:ad... Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 available DHCP subnet: 10.28.24.0/255.255.255.0 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 available DHCP subnet: 10.28.24.0/255.255.255.0 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 vendor class: PXEClient:Arch:00000:UNDI:002001 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 DHCPREQUEST(ens192) 10.28.24.43 00:aa:bb:cc:dd:ef Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 tags: client.example.com, known, BIOS, ens192 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 DHCPACK(ens192) 10.28.24.43 00:aa:bb:cc:dd:ef Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 requested options: 1:netmask, 2:time-offset, 3:router, 5, 6:dns-server, Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 requested options: 11, 12:hostname, 13:boot-file-size, 15:domain-name, Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 requested options: 16:swap-server, 17:root-path, 18:extension-path, Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 requested options: 43:vendor-encap, 54:server-identifier, 60:vendor-class, Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 requested options: 67:bootfile-name, 128, 129, 130, 131, 132, Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 requested options: 133, 134, 135 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 next server: 10.28.24.33 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 broadcast response Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 1 option: 53 message-type 5 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 54 server-identifier 10.28.24.33 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 51 lease-time 1h Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 12 option: 67 bootfile-name lpxelinux.0 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 58 T1 30m Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 59 T2 52m30s Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 1 netmask 255.255.255.0 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 28 broadcast 10.28.24.255 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 8 option: 6 dns-server 10.27.255.254, 10.17.255.254 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 41 option: 12 hostname client.example.com Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 4 option: 3 router 10.28.24.254 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 9 option: 60 vendor-class af:bf:cf:df:ef:ff:0f:1f:2f Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 17 option: 97 client-machine-id 00:ab:ad:af:aa:ac:ae:a0:a1:a2:a3:a4:a5:a6... Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 sent size: 37 option: 43 vendor-encap a0:a1:a2:a3:a4:a5:af:bf:cf:a9:aa:ab:ac:ad... Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 available DHCP subnet: 10.28.24.0/255.255.255.0 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 available DHCP subnet: 10.28.24.0/255.255.255.0 Oct 12 16:03:21 dnsmasq-dhcp[24978]: 1471509918 vendor class: PXEClient:Arch:00000:UNDI:002001 Oct 12 16:03:21 dnsmasq01 kernel: [1140264.783620] dnsmasq[24978]: segfault at 7774de048 ip 00005612827b9d86 sp 00007fffa73f1f90 error 4 in dnsmasq[5612827b5000+4c000] Oct 12 16:03:21 dnsmasq01 kernel: [1140264.783640] Code: 00 00 00 00 49 8b 7d 38 4c 89 e6 e8 a4 7a 00 00 85 c0 75 c3 eb be 66 0f 1f 44 00 00 48 89 f7 48 89 d5 41 89 c9 e8 ba e6 ff ff <4c> 8b 38 48 89 44 24 08 4d 85 ff 0f 84 a9 01 00 00 41 81 e1 00 00 ############### -- System Information: Debian Release: 11.1 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dnsmasq depends on: ii dnsmasq-base [dnsmasq-base] 2.85-1 ii init-system-helpers 1.60 ii lsb-base 11.1.0 ii netbase 6.3 pn runit-helper <none> dnsmasq recommends no packages. Versions of packages dnsmasq suggests: pn resolvconf <none>