]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit162d25020e86b264df8f51c1f5927310e8e45bd1
treec9ac3710974c011a7ecf2a94e105756b8deb59fc
parent521517d150fc0d109e2ccfc0006070e45d010737
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: 7839f6354be0 ("tls: Fix recvmsg() to be able to peek across multiple records")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tls/tls_sw.c