<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:fw@strlen.de" title="Florian Westphal <fw@strlen.de>"> <span class="fn">Florian Westphal</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - sets: timeout > 24d20h31m23s becomes 49d17h2m47s"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1237">bug 1237</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>ASSIGNED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Assignee</td>
           <td>pablo@netfilter.org
           </td>
           <td>fw@strlen.de
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>fw@strlen.de
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - sets: timeout > 24d20h31m23s becomes 49d17h2m47s"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1237#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - sets: timeout > 24d20h31m23s becomes 49d17h2m47s"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1237">bug 1237</a>
              from <span class="vcard"><a class="email" href="mailto:fw@strlen.de" title="Florian Westphal <fw@strlen.de>"> <span class="fn">Florian Westphal</span></a>
</span></b>
        <pre>(In reply to Marco De Benedetto from <a href="show_bug.cgi?id=1237#c0">comment #0</a>)
<span class="quote">> I would like to use a timeout of 30 days for elements in a set but it
> seems there is a some kind of problem above 24d20h31m23s.</span >

Indeed, this is a kernel bug.  nft uses msecs_to_jiffies which treats values <
0
as "infinity",  24d20h31m23s is 2147483000 msecs and still smaller than
INT_MAX, 1 second more causes integer overflow.

nft timeout handling also has a problem with 32bit systems, as jiffies is only
32bit.  We should probably use "u64" instead of "long" and have gc task use
time_is_before_eq_jiffies64().</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>