summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorIlan Tayari <ilant@mellanox.com>2017-04-30 15:34:38 +0200
committerDavid S. Miller <davem@davemloft.net>2017-05-01 20:58:50 +0200
commit67d349ed603d5ce4a6f1722b1736e2bcef0e8690 (patch)
tree21e78406f0e8486ea8ccee0baa9adc4d7d93fe92 /include/rdma
parentip6_tunnel: Fix missing tunnel encapsulation limit option (diff)
downloadlinux-67d349ed603d5ce4a6f1722b1736e2bcef0e8690.tar.xz
linux-67d349ed603d5ce4a6f1722b1736e2bcef0e8690.zip
net/esp4: Fix invalid esph pointer crash
Both esp_output and esp_xmit take a pointer to the ESP header and place it in esp_info struct prior to calling esp_output_head. Inside esp_output_head, the call to esp_output_udp_encap makes sure to update the pointer if it gets invalid. However, if esp_output_head itself calls skb_cow_data, the pointer is not updated and stays invalid, causing a crash after esp_output_head returns. Update the pointer if it becomes invalid in esp_output_head Fixes: fca11ebde3f0 ("esp4: Reorganize esp_output") Signed-off-by: Ilan Tayari <ilant@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions