tls: splice_read: fix accessing pre-processed records
authorJakub Kicinski <kuba@kernel.org>
Wed, 24 Nov 2021 23:25:54 +0000 (15:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 03:28:16 +0000 (19:28 -0800)
commite062fe99cccd9ff9f232e593d163ecabd244fae8
treec9ac3710974c011a7ecf2a94e105756b8deb59fc
parentd87d67fd61ef4e7619eb24ab20cba3250a6444e8
tls: splice_read: fix accessing pre-processed records

recvmsg() will put peek()ed and partially read records onto the rx_list.
splice_read() needs to consult that list otherwise it may miss data.
Align with recvmsg() and also put partially-read records onto rx_list.
tls_sw_advance_skb() is pretty pointless now and will be removed in
net-next.

Fixes: 692d7b5d1f91 ("tls: Fix recvmsg() to be able to peek across multiple records")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_sw.c