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-05-30 11:26:32 -07:00
2019-10-01 18:42:15 +02:00
2019-05-22 17:48:43 -07:00
2019-10-04 18:08:58 -07:00
2019-04-27 17:07:21 -04:00
2019-07-03 13:51:54 -07:00
2019-07-11 14:43:25 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:45 +02:00
2019-09-16 09:02:18 +02:00
2019-07-05 15:01:15 -07:00
2019-07-01 06:16:40 +02:00
2019-07-27 14:23:48 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2017-09-01 20:33:42 -07:00
2019-09-26 09:34:25 +02:00
2019-05-21 10:50:45 +02:00
2019-07-01 10:54:51 -07:00
2019-09-27 12:05:02 +02:00
2019-06-07 11:00:14 -07:00
2018-10-24 14:18:16 -07:00
2019-09-20 19:17:57 -07:00
2019-07-11 14:43:25 -07:00
2019-10-08 19:46:42 -07:00
2017-11-02 11:10:55 +01:00
2019-10-03 11:40:21 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-09-27 12:05:02 +02:00
2019-07-26 14:17:44 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-09-07 17:49:00 +02:00
2019-06-06 08:34:50 +02:00
2019-05-31 08:34:32 -07:00
2019-05-21 10:50:46 +02:00
2019-04-08 09:15:17 +02:00
2019-06-05 17:37:07 +02:00
2019-08-28 14:47:35 -07:00
2019-06-06 08:34:50 +02:00
2019-07-22 12:10:54 -07:00
2019-09-13 12:35:33 +02:00
2019-05-21 10:50:45 +02:00
2019-09-12 11:20:33 +01:00
2019-06-07 11:00:14 -07:00
2019-05-30 11:26:32 -07:00
2019-10-01 18:42:15 +02:00
2019-08-08 15:55:10 -07:00
2019-09-15 14:17:27 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-14 12:15:28 -07:00
2019-05-30 11:26:32 -07:00
2019-07-18 17:08:07 -07:00
2019-10-13 10:13:08 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:45 +02:00
2019-01-17 15:01:08 -08:00
2019-05-30 11:26:32 -07:00
2019-10-03 11:47:10 -04:00
2019-05-30 11:26:32 -07:00
2018-12-19 11:21:37 -08:00
2019-05-30 11:26:32 -07:00
2019-04-23 07:42:20 +02:00
2019-05-30 11:26:32 -07:00
2019-06-06 08:34:50 +02:00
2019-05-21 11:28:45 +02:00