Home
last modified time | relevance | path

Searched hist:d800a7b3 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/tls/
H A Dtls_strp.cd800a7b3 Tue Aug 09 12:55:44 CDT 2022 Jakub Kicinski <kuba@kernel.org> tls: rx: device: don't try to copy too much on detach

Another device offload bug, we use the length of the output
skb as an indication of how much data to copy. But that skb
is sized to offset + record length, and we start from offset.
So we end up double-counting the offset which leads to
skb_copy_bits() returning -EFAULT.

Reported-by: Tariq Toukan <tariqt@nvidia.com>
Fixes: 84c61fe1a75b ("tls: rx: do not use the standard strparser")
Tested-by: Ran Rozenstein <ranro@nvidia.com>
Link: https://lore.kernel.org/r/20220809175544.354343-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>