Re: [PATCH] Fix bug where garbage collection for nf_conncount is not skipped when jiffies wrap around

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jensen, Nicklas Bo <njensen@xxxxxxxxxx> wrote:
> nf_conncount is supposed to skip garbage collection if it has already run garbage collection in the same jiffy. Unfortunately, this is broken when jiffies wrap around which this patch fixes.
> 
> The problem is that last_gc in the nf_conncount_list struct is an u32, but jiffies is an unsigned long which is 8 bytes on my systems. When those two are compared it only works until last_gc wraps around.
> 
> See bug report https://bugzilla.netfilter.org/show_bug.cgi?id=1778 for more details.
> 
> Signed-off-by: Nicklas Bo Jensen <njensen@xxxxxxxxxx>

Reviewed-by: Florian Westphal <fw@xxxxxxxxx>




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux