The bug is in isc-dhcp, file common/discover.c, function next_iface4():

        char buf[256];

This buffer is exceeded when the function performs an fgets() from
/proc/net/dev and an interface has a very high (PB or greater) number of
bytes, collisions, etc. as per this ifconfig output:

eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:1006693089307755 errors:6040167125781120 
dropped:2013394768550100 overruns:1006697384275050 frame:5033478331440660
          TX packets:1006697384275050 errors:4026789537100200 dropped:0 
overruns:1006697384275050 carrier:2013394768550100
          collisions:5033486921375250 txqueuelen:1000 
          RX bytes:1006693089307755 (1.0 PB)  TX bytes:1006697384275050 (1.0 PB)

I have raised this with ISC and hopefully they will fix it. If you want
to patch it anyway, simply double the buffer size.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1222377

Title:
  network-manager stops connecting to Wi-Fi after 1 PB transferred on
  any interface

Status in “network-manager” package in Ubuntu:
  Incomplete

Bug description:
  Transfer 1 PB or more over any eth* interface (not tested with lo,
  impractical to test with wlan*). Use ifconfig to confirm interface
  byte counters.

  Once a counter exceeds 1 PB, network-manager will fail to connect to
  any Wi-Fi access points, though existing connections will stay up.

  A single 10 Gb/s link can transfer 1 PB in two weeks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1222377/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to