diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-06-04 00:16:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-04 23:33:50 +0200 |
commit | da29e4b466e6916a52e0e2f60054f855c324a9c2 (patch) | |
tree | 920af641fcecb8ac9956ded01c33df742c917add /net/ipv4/tcp_htcp.c | |
parent | net: mscc: ocelot: Fix some struct initializations (diff) | |
download | linux-da29e4b466e6916a52e0e2f60054f855c324a9c2.tar.xz linux-da29e4b466e6916a52e0e2f60054f855c324a9c2.zip |
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 <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_htcp.c')
0 files changed, 0 insertions, 0 deletions