Skip to contentSkip to conversation

New: neighbour table overflow is not reported and impacts localhost TCP connectivity

Bug 85091 Stephen Hemminger 2 participants 2 messages Sep 24, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Wed, 24 Sep 2014 03:44:41 -0700
From: "[email protected]" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Bug 85091] New: neighbour table overflow is not reported and impacts localhost TCP connectivity

https://bugzilla.kernel.org/show_bug.cgi?id=85091

            Bug ID: 85091
           Summary: neighbour table overflow is not reported and impacts
                    localhost TCP connectivity
           Product: Networking
           Version: 2.5
    Kernel Version: 3.8 - 3.17-rc6
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: IPV4
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

With the default gc_thresh values and a busy /16 network attached, the neighbour cache can overflow. No indication is given that this happens and it does impact TCP on localhost.

Test setup:

* about 16k (simulated IP/MAC's) on one interface
* web server behind on second interface
* routing between the two
* HTTP benchmark from the 16k IP's to the web server
* for localhost connectivity verification a netperf instance is run on localhost like so: 'netperf -D 1 -l 600 127.0.0.1'

Result:

Kernel has to learn the 16k IP/MAC combinations, as soon as gc_thresh3 is hit, netperf stalls, no syslog/kernel message indicates the problem.

The only indication are log entries like this:

"net_ratelimit: 1464 callbacks suppressed"

No other messages are logged.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw
Quoted 11 lines · Stephen Hemminger

Result:

Kernel has to learn the 16k IP/MAC combinations, as soon as gc_thresh3 is hit, netperf stalls, no syslog/kernel message indicates the problem.

The only indication are log entries like this:

"net_ratelimit: 1464 callbacks suppressed"

No other messages are logged.

Looks like we have a race condition between we check gc_thresh3 and add the new entry into the table after locking in __neigh_create(). Otherwise the application layer should get EINVAL to stop.