summaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2019-04-20 02:51:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-02 11:02:57 +0300
commit2adb99038ae421985daa37379521c863462859f9 (patch)
tree475508153024a1addc6c1c1c7d79f11e696d4654 /lib/test_overflow.c
parentc01e42fdccf5880b3ecb6bd8a8eaa8b24d17526a (diff)
downloadlinux-2adb99038ae421985daa37379521c863462859f9.tar.xz
net/tls: avoid potential deadlock in tls_set_device_offload_rx()
[ Upstream commit 62ef81d5632634d5e310ed25b9b940b2b6612b46 ] If device supports offload, but offload fails tls_set_device_offload_rx() will call tls_sw_free_resources_rx() which (unhelpfully) releases and reacquires the socket lock. For a small fix release and reacquire the device_offload_lock. Fixes: 4799ac81e52a ("tls: Add rx inline crypto offload") Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions