]> git.baikalelectronics.ru Git - kernel.git/commit
tls: rx: release the sock lock on locking timeout
authorJakub Kicinski <kuba@kernel.org>
Wed, 20 Jul 2022 20:37:00 +0000 (13:37 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 22 Jul 2022 01:58:11 +0000 (18:58 -0700)
commit52177097e51178f7d05257f1db2e6bff36e2ab0c
tree5b7d8dc86d710679cd29f44003d5c962939e485c
parent2bec9595862aafe4a203f729d9132ec55e899dc3
tls: rx: release the sock lock on locking timeout

Eric reports we should release the socket lock if the entire
"grab reader lock" operation has failed. The callers assume
they don't have to release it or otherwise unwind.

Reported-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot+16e72110feb2b653ef27@syzkaller.appspotmail.com
Fixes: 138b74ba5144 ("tls: rx: allow only one reader at a time")
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220720203701.2179034-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_sw.c