From: Eric Dumazet Date: Tue, 25 Nov 2014 15:40:04 +0000 (-0800) Subject: tcp: fix possible NULL dereference in tcp_vX_send_reset() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~65^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3658e8d0f10147fc86018be7f11668246c156d3;p=pandora-kernel.git 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 Signed-off-by: Eric Dumazet Reported-by: Daniel Borkmann Fixes: ca777eff51f7 ("tcp: remove dst refcount false sharing for prequeue mode") Signed-off-by: David S. Miller --- Reading git-diff-tree failed