]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'inet_csk_get_port-and-soreusport-fixes'
authorDavid S. Miller <davem@davemloft.net>
Sat, 17 Dec 2016 16:13:20 +0000 (11:13 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Dec 2016 16:13:20 +0000 (11:13 -0500)
commit74b4c77b487e53dfb0a6880b345af0cda2e8a1cb
treeddae48385faf13e6537d82b1f72cff8553456a9a
parent822c7077288c33151d08b1bff87b74e18f4457bf
parent3889d7bbf6067f67f88bbc31e787e27bea586883
Merge branch 'inet_csk_get_port-and-soreusport-fixes'

Tom Herbert says:

====================
inet: Fixes for inet_csk_get_port and soreusport

This patch set fixes a couple of issues I noticed while debugging our
softlockup issue in inet_csk_get_port.

- Don't allow jump into port scan in inet_csk_get_port if function
  was called with non-zero port number (looking up explicit port
  number).
- When inet_csk_get_port is called with zero port number (ie. perform
  scan) an reuseport is set on the socket, don't match sockets that
  also have reuseport set. The intent from the user should be
  to get a new port number and then explictly bind other
  sockets to that number using soreuseport.

Tested:

Ran first patch on production workload with no ill effect.

For second patch, ran a little listener application and first
demonstrated that unbound sockets with soreuseport can indeed
be bound to unrelated soreuseport sockets.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>