mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
net: tls, update curr on splice as well
commitc5a595000e
upstream. The curr pointer must also be updated on the splice similar to how we do this for other copy types. Fixes:d829e9c411
("tls: convert to generic sk_msg interface") Signed-off-by: John Fastabend <john.fastabend@gmail.com> Reported-by: Jann Horn <jannh@google.com> Link: https://lore.kernel.org/r/20231206232706.374377-2-john.fastabend@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
869aee35cf
commit
9b3d3a7f3c
1 changed files with 2 additions and 0 deletions
|
@ -1225,6 +1225,8 @@ static int tls_sw_do_sendpage(struct sock *sk, struct page *page,
|
|||
}
|
||||
|
||||
sk_msg_page_add(msg_pl, page, copy, offset);
|
||||
msg_pl->sg.copybreak = 0;
|
||||
msg_pl->sg.curr = msg_pl->sg.end;
|
||||
sk_mem_charge(sk, copy);
|
||||
|
||||
offset += copy;
|
||||
|
|
Loading…
Reference in a new issue