diff options
author | Eric Dumazet <edumazet@google.com> | 2017-11-02 19:53:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-03 07:51:39 +0100 |
commit | 9eba9353388da7bfac9694dfe94c15365d49ebd6 (patch) | |
tree | 56d6e257cef00eff4bb0e2af027509011615e4fa /net/sunrpc | |
parent | bpf: fix verifier NULL pointer dereference (diff) | |
download | linux-9eba9353388da7bfac9694dfe94c15365d49ebd6.tar.xz linux-9eba9353388da7bfac9694dfe94c15365d49ebd6.zip |
tcp: fix a lockdep issue in tcp_fastopen_reset_cipher()
icsk_accept_queue.fastopenq.lock is only fully initialized at listen()
time.
LOCKDEP is not happy if we attempt a spin_lock_bh() on it, because
of missing annotation. (Although kernel runs just fine)
Lets use net->ipv4.tcp_fastopen_ctx_lock to protect ctx access.
Fixes: 1fba70e5b6be ("tcp: socket option to set TCP fast open key")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Christoph Paasch <cpaasch@apple.com>
Reviewed-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions