diff options
author | Eric Dumazet <edumazet@google.com> | 2014-11-25 07:40:04 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-25 14:29:18 -0500 |
commit | c3658e8d0f10147fc86018be7f11668246c156d3 (patch) | |
tree | a25e9383d5b91d6062aa4770e6a181e9079d0396 /net/sched/sch_gred.c | |
parent | 43612d7c04f1a4f5e60104143918fcdf018b66ee (diff) | |
download | op-kernel-dev-c3658e8d0f10147fc86018be7f11668246c156d3.zip op-kernel-dev-c3658e8d0f10147fc86018be7f11668246c156d3.tar.gz |
tcp: fix possible NULL dereference in tcp_vX_send_reset()
After commit ca777eff51f7 ("tcp: remove dst refcount false sharing for
prequeue mode") we have to relax check against skb dst in
tcp_v[46]_send_reset() if prequeue dropped the dst.
If a socket is provided, a full lookup was done to find this socket,
so the dst test can be skipped.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=88191
Reported-by: Jaša Bartelj <jasa.bartelj@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Daniel Borkmann <dborkman@redhat.com>
Fixes: ca777eff51f7 ("tcp: remove dst refcount false sharing for prequeue mode")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_gred.c')
0 files changed, 0 insertions, 0 deletions