Eric Dumazet
94caec8ce7
ipv4: tcp: get rid of ugly unicast_sock
...
[ Upstream commit bdbbb8527b ]
In commit be9f4a44e7 ("ipv4: tcp: remove per net tcp_sock")
I tried to address contention on a socket lock, but the solution
I chose was horrible :
commit 3a7c384ffd ("ipv4: tcp: unicast_sock should not land outside
of TCP stack") addressed a selinux regression.
commit 0980e56e50 ("ipv4: tcp: set unicast_sock uc_ttl to -1")
took care of another regression.
commit b5ec8eeac4 ("ipv4: fix ip_send_skb()") fixed another regression.
commit 811230cd85 ("tcp: ipv4: initialize unicast_sock sk_pacing_rate")
was another shot in the dark.
Really, just use a proper socket per cpu, and remove the skb_orphan()
call, to re-enable flow control.
This solves a serious problem with FQ packet scheduler when used in
hostile environments, as we do not want to allocate a flow structure
for every RST packet sent in response to a spoofed packet.
Signed-off-by: Eric Dumazet <edumazet@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-02-26 17:50:12 -08:00
..
2013-09-11 12:34:13 -07:00
2014-01-04 20:10:40 +02:00
2013-09-23 16:29:41 -04:00
2013-12-06 12:37:56 -05:00
2014-05-31 13:20:27 -07:00
2015-02-26 17:50:12 -08:00
2014-01-17 14:43:17 -05:00
2014-11-21 09:23:06 -08:00
2013-12-06 12:37:56 -05:00
2014-01-21 14:43:16 -08:00
2014-01-22 21:57:05 -08:00
2014-05-31 13:20:36 -07:00
2013-12-28 17:02:46 -05:00
2014-01-13 17:39:11 +01:00
2014-06-07 10:28:10 -07:00
2013-11-04 15:27:08 -05:00
2013-12-10 17:56:54 -05:00
2014-01-03 23:41:41 +01:00
2014-01-21 23:17:20 -08:00
2013-09-20 14:49:32 -04:00
2014-02-09 17:32:50 -08:00
2013-12-06 12:37:56 -05:00
2013-12-06 12:37:56 -05:00
2013-12-10 21:50:00 -05:00
2013-09-20 14:49:32 -04:00
2013-09-20 14:49:32 -04:00
2013-09-20 14:49:32 -04:00
2014-02-09 17:32:49 -08:00
2014-02-09 17:32:49 -08:00
2014-10-15 08:36:42 +02:00
2013-11-07 19:28:58 -05:00
2014-02-04 20:19:51 -08:00
2013-09-20 14:49:33 -04:00
2013-10-03 15:36:37 -04:00
2013-12-06 07:24:39 +01:00
2013-09-20 14:49:33 -04:00
2013-09-20 14:49:33 -04:00
2014-01-06 15:51:53 -08:00
2014-01-06 20:28:34 -05:00
2013-09-20 14:49:33 -04:00
2014-03-28 16:54:50 -04:00
2013-09-21 14:01:38 -04:00
2013-10-19 19:45:34 -04:00
2013-09-21 14:01:38 -04:00
2014-10-15 08:36:40 +02:00
2013-10-23 17:01:41 -04:00
2013-10-08 23:19:24 -04:00
2013-10-19 19:45:35 -04:00
2014-01-17 17:56:33 -08:00
2014-08-14 09:38:23 +08:00
2013-10-09 13:04:03 -04:00
2014-01-02 03:30:35 -05:00
2014-05-31 13:20:33 -07:00
2014-01-04 20:10:24 -05:00
2013-09-21 14:01:38 -04:00
2014-08-14 09:38:23 +08:00
2013-11-11 00:19:35 -05:00
2015-02-26 17:50:12 -08:00
2014-11-14 08:59:44 -08:00
2014-02-09 17:32:50 -08:00
2013-09-21 14:01:39 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2014-01-01 22:22:43 -05:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2014-01-03 20:56:48 -05:00
2014-01-10 09:50:02 +01:00
2013-10-21 18:56:23 -04:00
2013-12-06 12:37:56 -05:00
2013-09-04 14:53:20 -04:00
2013-10-01 17:06:14 -04:00
2013-09-21 14:01:39 -04:00
2014-01-16 11:31:58 -08:00
2014-02-09 17:32:50 -08:00
2013-09-21 14:01:39 -04:00
2014-01-25 11:17:34 -08:00
2013-09-21 14:01:39 -04:00
2014-01-03 23:41:42 +01:00
2013-09-21 14:01:39 -04:00
2013-09-21 14:01:39 -04:00
2014-01-19 19:53:18 -08:00
2014-01-13 11:50:15 -08:00
2013-12-09 19:54:47 -05:00
2014-01-21 18:05:04 -08:00
2013-09-23 01:51:08 -04:00
2013-09-23 01:51:08 -04:00
2013-09-23 01:51:08 -04:00
2014-01-21 23:17:20 -08:00
2014-10-05 14:52:20 -07:00
2013-10-10 00:08:07 -04:00
2013-09-23 01:51:08 -04:00
2014-01-13 11:22:54 -08:00
2014-01-22 21:57:05 -08:00
2014-01-13 11:50:14 -08:00
2013-09-23 01:51:09 -04:00
2014-08-14 09:38:23 +08:00
2014-10-15 08:36:40 +02:00
2013-12-19 18:51:20 -05:00
2013-09-23 01:51:09 -04:00
2013-10-21 18:43:02 -04:00
2014-10-15 08:36:40 +02:00
2014-01-19 19:53:18 -08:00
2013-11-07 02:14:33 -05:00
2013-09-23 16:29:40 -04:00
2014-01-21 18:05:04 -08:00
2013-09-23 16:29:40 -04:00
2013-09-23 16:29:41 -04:00
2013-09-23 16:29:41 -04:00
2014-02-20 14:30:10 +01:00