]> git.hungrycats.org Git - linux/commit
tls: rx: don't issue wake ups when data is decrypted
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 03:38:21 +0000 (20:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:47 +0000 (14:38 +0000)
commit17d8bda2a6fdb49938d74e8018700e5ae1be1482
tree8bee11b31c491401996d1fbd801551785ddfd5ce
parentde0970d258efa793fd1236a362f0838c9c9d2384
tls: rx: don't issue wake ups when data is decrypted

[ Upstream commit 5dbda02d322db7762f1a0348117cde913fb46c13 ]

We inform the applications that data is available when
the record is received. Decryption happens inline inside
recvmsg or splice call. Generating another wakeup inside
the decryption handler seems pointless as someone must
be actively reading the socket if we are executing this
code.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: f7fa16d49837 ("tls: decrement decrypt_pending if no async completion will be called")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/tls/tls_sw.c