summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorEric Dumazet2018-10-02 21:35:05 +0200
committerDavid S. Miller2018-10-03 00:52:12 +0200
commit2ab2ddd301a22ca3c5f0b743593e4ad2953dfa53 (patch)
tree3ec72a50a6be78a4bc8eb73d8c9bd14df798aa26 /security
parentnfp: avoid soft lockups under control message storm (diff)
downloadkernel-qcow2-linux-2ab2ddd301a22ca3c5f0b743593e4ad2953dfa53.tar.gz
kernel-qcow2-linux-2ab2ddd301a22ca3c5f0b743593e4ad2953dfa53.tar.xz
kernel-qcow2-linux-2ab2ddd301a22ca3c5f0b743593e4ad2953dfa53.zip
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions