Eric Dumazet 2ab2ddd301 inet: make sure to grab rcu_read_lock before using ireq->ireq_opt
Timer handlers do not imply rcu_read_lock(), so my recent fix
triggered a LOCKDEP warning when SYNACK is retransmit.

Lets add rcu_read_lock()/rcu_read_unlock() pairs around ireq->ireq_opt
usages instead of guessing what is done by callers, since it is
not worth the pain.

Get rid of ireq_opt_deref() helper since it hides the logic
without real benefit, since it is now a standard rcu_dereference().

Fixes: 1ad98e9d1bdf ("tcp/dccp: fix lockdep issue when SYN is backlogged")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-02 15:52:12 -07:00
..
2018-05-16 07:24:30 +02:00
2017-10-21 01:33:19 +01:00
2018-04-23 10:21:24 -04:00
2018-07-07 10:58:49 +09:00
2018-03-27 13:18:09 -04:00
2018-06-22 13:43:27 +09:00
2018-07-24 14:10:43 -07:00
2017-10-16 21:24:25 +01:00
2018-02-28 11:43:28 -05:00