Messages in this thread | | | Subject | Re: net: integer overflow in ip_idents_reserve | From | Eric Dumazet <> | Date | Wed, 17 Dec 2014 06:11:40 -0800 |
| |
On Tue, 2014-12-16 at 20:15 -0500, Sasha Levin wrote:
> I reported this one because there's usually some code to handle overflow > in code that expects that and here there was none (I could see).
IP ID are best effort.
When sending one million IPv4 frames per second to a particular destination, the 16bit ID space is recycled so fast that really their precise values do not matter anymore. You pray that IP fragments wont be needed at all.
(One of the idea I had was to detect this kind of stress and fallback to a random generation, reducing false sharing, but this seemed a micro optimization targeting synthetic benchmarks )
Thanks
| |