diff options
| author | Eric Dumazet <[email protected]> | 2010-04-21 09:26:15 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-04-23 02:06:06 +0000 |
| commit | fda48a0d7a8412cedacda46a9c0bf8ef9cd13559 (patch) | |
| tree | f749b26dea4353c6f3bd95e49fafceb06623c20b /lib/debugobjects.c | |
| parent | rdma: potential ERR_PTR dereference (diff) | |
| download | kernel-fda48a0d7a8412cedacda46a9c0bf8ef9cd13559.tar.gz kernel-fda48a0d7a8412cedacda46a9c0bf8ef9cd13559.zip | |
tcp: bind() fix when many ports are bound
Port autoselection done by kernel only works when number of bound
sockets is under a threshold (typically 30000).
When this threshold is over, we must check if there is a conflict before
exiting first loop in inet_csk_get_port()
Change inet_csk_bind_conflict() to forbid two reuse-enabled sockets to
bind on same (address,port) tuple (with a non ANY address)
Same change for inet6_csk_bind_conflict()
Reported-by: Gaspar Chilingarov <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Evgeniy Polyakov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
