diff options
author | Dave Watson <davejwatson@fb.com> | 2019-01-27 01:59:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-29 08:07:08 +0100 |
commit | 1023121375c6b0b3dc00334983c762ba2b76cb19 (patch) | |
tree | 82e20cb9fb7643d6c8f74851ebcecaa98c1cc5d9 /samples | |
parent | net: tls: Save iv in tls_rec for async crypto requests (diff) | |
download | linux-1023121375c6b0b3dc00334983c762ba2b76cb19.tar.xz linux-1023121375c6b0b3dc00334983c762ba2b76cb19.zip |
net: tls: Fix deadlock in free_resources tx
If there are outstanding async tx requests (when crypto returns EINPROGRESS),
there is a potential deadlock: the tx work acquires the lock, while we
cancel_delayed_work_sync() while holding the lock. Drop the lock while waiting
for the work to complete.
Fixes: a42055e8d2c30 ("Add support for async encryption of records...")
Signed-off-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions