<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;}
@font-face
        {font-family:Menlo;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Gadugi;
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
span.gmail-il
        {mso-style-name:gmail-il;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Suggest you test with 2.91 RC2.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Dnsmasq-discuss <dnsmasq-discuss-bounces@lists.thekelleys.org.uk>
<b>On Behalf Of </b>Bryant Eadon<br>
<b>Sent:</b> Sunday, February 23, 2025 2:05 AM<br>
<b>To:</b> dnsmasq-discuss@lists.thekelleys.org.uk<br>
<b>Subject:</b> [Dnsmasq-discuss] Tracing a dnsmasq bug - hot loop - possibly DHCP6 lease management<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">Hello,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I am tracing an issue where <span class="gmail-il">dnsmasq</span> 2.86 appears to get stuck in a loop using all compute resources for the core it's on, and becomes unresponsive to DHCP4, DHCPv6 and DNS requests.  I am working on replicating
 the problem, and want to check to see if anyone on this list has seen the behavior before -- <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">-- Details -- <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">On the local LAN I am seeing 3 devices in DHCPv6 that are requesting IPV6 addresses every 10 minutes, even though their expiry time is advertised as 8 hours. I will have some difficulty finding the exact devices.  It appears the DHCPv6
 lease file continues tracking all of the leases on this openwrt based router.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">A subset of these tracked requests are here, from the lease file -<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740156067 1484488511 2600:4040:a92e:2700::ffcd * 00:03:00:01:f0:09:0d:cb:26:08<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740156067 1484488511 fd30:fc9a:a298::f8a3 * 00:03:00:01:f0:09:0d:cb:26:08<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740156067 1375367042 2600:4040:a92e:2700::ffcc * 00:03:00:01:f0:09:0d:cb:27:52<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740156067 1375367042 fd30:fc9a:a298::f8a2 * 00:03:00:01:f0:09:0d:cb:27:52<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740155562 1744997917 2600:4040:a92e:2700::ffcb * 00:03:00:01:f0:09:0d:cb:26:08<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740155562 1744997917 fd30:fc9a:a298::f8a1 * 00:03:00:01:f0:09:0d:cb:26:08<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740155561 729442040 2600:4040:a92e:2700::ffca * 00:03:00:01:f0:09:0d:cb:27:52<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740155561 729442040 fd30:fc9a:a298::f8a0 * 00:03:00:01:f0:09:0d:cb:27:52<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740155561 1831382606 2600:4040:a92e:2700::ffc9 * 00:03:00:01:f0:09:0d:cb:25:b0<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740155561 1831382606 fd30:fc9a:a298::f89f * 00:03:00:01:f0:09:0d:cb:25:b0<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740155018 995327705 2600:4040:a92e:2700::ffc8 * 00:03:00:01:f0:09:0d:cb:25:b0<o:p></o:p></span></p>
<p style="margin:0in;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:"Menlo",serif;color:black">1740155018 995327705 fd30:fc9a:a298::f89e * 00:03:00:01:f0:09:0d:cb:25:b0<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So, this is 48 entries (identical) in the dhcpv6 lease file per host that does this.  There are 2 entries, per host (96 entries) .. and there are 3 hosts on the LAN doing this -- bringing the entries to 288 tracked leases, excluding the
 IPV4 leases too.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">My <span class="gmail-il">dnsmasq</span> config file is attached ( <span class="gmail-il">dnsmasq</span>-configfile.txt ).  The only parameter I imagine is related :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">   dhcp-range=set:lan,192.168.2.40,192.168.2.254,255.255.255.0,8h<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Notably - this is not a DHCPv6 setting, but it <b>does </b>show the 8h lease time I am seeing in the DHCPv6 leases , AND the parameters here have a limit of 215 addresses these hosts are pushing (the same) number of leases over 288 within
 an 8hour span.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Has anyone seen this before ?  Why are the IPv6 leases not replaced in the lease file when the same DUID requests addresses well before the end of the IPv6 lease time ?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">*Bonus* -- I've attached a pcap file for the DHCPv6 requests I think could be central to this problem.  These packets arrived much later of course, well after I've experienced this problem, but may give us some insight to what's happening.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thank you,<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Bryant Eadon<o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><img width="1" height="1" style="width:.0104in;height:.0104in" id="_x0000_i1025" src="https://mailfoogae.appspot.com/t?sender=aYnJ5YW50LmVhZG9uQGdtYWlsLmNvbQ%3D%3D&type=zerocontent&guid=614ec00b-1bf5-4313-91b7-90d89013ea0e"><span style="font-size:7.5pt;font-family:"Gadugi",sans-serif;color:white">ᐧ</span><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>