tls: rx: strp: force mixed decrypted records into copy mode
[ Upstream commit 14c4be92 ] If a record is partially decrypted we'll have to CoW it, anyway, so go into copy mode and allocate a writable skb right away. This will make subsequent fix simpler because we won't have to teach tls_strp_msg_make_copy() how to copy skbs while preserving decrypt status. Tested-by:Shai Amiram <samiram@nvidia.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Reviewed-by:
Simon Horman <simon.horman@corigine.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Stable-dep-of: eca9bfaf ("tls: rx: strp: preserve decryption status of skbs when needed") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment