Full Disclosure mailing list archives

Re: ifIndex overflow (Linux Kernel - net/core/dev.c) [maybe offtopic]


From: Valdis.Kletnieks () vt edu
Date: Tue, 12 Feb 2013 15:34:21 -0500

On Thu, 07 Feb 2013 20:28:31 +0100, Daniel Preussker said:
I was looking into the net/core/dev.c from the current Kernel (previous
also have this) and found out that ifIndex gets incremented by an
endless loop.

After creating 4 billion pseudo-eth devices I finally got it to overflow
and endless loop, had to kill the kernel - fun right?

I wonder what /proc/slabinfo and related memory statistics looked like after
3.9 billion devices created.  You'll need a fairly beefy box to roll that
counter without OOM'ing the kernel first.


Attachment: _bin
Description:

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

Current thread: