diff options
author | Jakub Kicinski <[email protected]> | 2019-06-03 15:16:58 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-06-04 14:33:50 -0700 |
commit | da29e4b466e6916a52e0e2f60054f855c324a9c2 (patch) | |
tree | 920af641fcecb8ac9956ded01c33df742c917add /net/unix/sysctl_net_unix.c | |
parent | 7e7d199e05f80735864efcb5b306fefd98039a58 (diff) |
net/tls: fully initialize the msg wrapper skb
If strparser gets cornered into starting a new message from
an sk_buff which already has frags, it will allocate a new
skb to become the "wrapper" around the fragments of the
message.
This new skb does not inherit any metadata fields. In case
of TLS offload this may lead to unnecessarily re-encrypting
the message, as skb->decrypted is not set for the wrapper skb.
Try to be conservative and copy all fields of old skb
strparser's user may reasonably need.
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Dirk van der Merwe <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions