Eric Dumazet
d983ea6f16
tcp: add rcu protection around tp->fastopen_rsk
...
Both tcp_v4_err() and tcp_v6_err() do the following operations
while they do not own the socket lock :
fastopen = tp->fastopen_rsk;
snd_una = fastopen ? tcp_rsk(fastopen)->snt_isn : tp->snd_una;
The problem is that without appropriate barrier, the compiler
might reload tp->fastopen_rsk and trigger a NULL deref.
request sockets are protected by RCU, we can simply add
the missing annotations and barriers to solve the issue.
Fixes: 168a8f5805 ("tcp: TCP Fast Open Server - main code path")
Signed-off-by: Eric Dumazet <edumazet@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-10-13 10:13:08 -07:00
..
2019-07-06 12:50:01 +02:00
2019-09-27 15:10:34 -07:00
2019-06-19 17:09:55 +02:00
2019-06-22 08:59:24 -04:00
2019-09-24 16:37:18 +02:00
2019-09-05 12:33:28 +02:00
2019-09-24 16:37:18 +02:00
2019-10-01 18:42:15 +02:00
2019-09-18 12:34:53 -07:00
2019-07-25 18:00:41 -07:00
2019-07-12 16:03:16 -07:00
2019-09-15 14:17:27 +02:00
2019-05-30 11:29:22 -07:00
2019-09-04 14:22:33 +02:00
2019-09-16 12:06:25 +02:00
2019-10-13 10:13:08 -07:00
2019-05-30 11:29:52 -07:00
2019-10-01 18:42:15 +02:00
2019-05-24 17:36:42 +02:00
2019-07-10 18:43:43 -07:00
2019-10-02 12:19:53 -04:00
2019-06-07 11:00:14 -07:00
2019-07-11 14:37:45 -07:00
2019-09-24 16:37:18 +02:00
2019-09-26 08:56:17 +02:00
2019-10-13 10:13:08 -07:00
2019-10-13 10:13:08 -07:00
2019-07-29 10:26:14 -07:00
2019-09-27 10:27:14 +02:00
2019-07-08 19:48:57 -07:00
2019-10-01 18:42:15 +02:00
2019-06-23 13:24:17 -07:00
2019-06-17 20:20:36 -07:00
2019-10-09 21:42:59 -07:00
2019-10-07 22:10:50 +02:00
2019-05-30 11:26:41 -07:00
2019-08-25 14:34:08 -07:00
2019-09-19 18:04:40 -07:00
2019-10-09 21:22:06 -07:00
2019-09-01 11:45:02 -07:00
2019-06-14 19:50:33 -07:00
2019-07-24 15:49:05 -07:00
2019-10-04 18:31:36 -07:00
2019-06-19 17:09:55 +02:00
2019-10-01 18:42:15 +02:00
2019-10-01 18:42:15 +02:00
2019-06-05 17:37:07 +02:00
2019-09-16 09:18:03 +02:00
2019-09-21 18:45:46 -07:00
2019-10-02 12:16:57 -04:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-10-11 21:20:23 -07:00
2019-10-09 21:43:00 -07:00
2019-10-09 21:43:00 -07:00
2019-10-10 19:08:41 -07:00
2019-06-22 08:59:24 -04:00
2019-09-27 17:00:27 -07:00
2019-05-30 11:26:32 -07:00
2019-10-09 21:43:00 -07:00
2019-09-07 18:10:34 +02:00
2019-06-07 11:00:14 -07:00
2019-10-01 21:23:35 -04:00
2019-08-10 15:25:47 -07:00
2019-10-07 22:10:50 +02:00
2019-10-09 21:42:59 -07:00
2019-10-03 16:34:27 +02:00
2019-10-01 18:42:15 +02:00
2019-05-31 15:30:03 -06:00
2019-08-17 12:40:08 -07:00
2019-07-19 10:42:02 -07:00
2019-05-21 10:50:45 +02:00