Commit e062fe9
committed
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: 692d7b5 ("tls: Fix recvmsg() to be able to peek across multiple records")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent d87d67f commit e062fe9
1 file changed
+25
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
| 2008 | + | |
2008 | 2009 | | |
2009 | 2010 | | |
2010 | 2011 | | |
| |||
2014 | 2015 | | |
2015 | 2016 | | |
2016 | 2017 | | |
2017 | | - | |
2018 | | - | |
2019 | | - | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
2020 | 2026 | | |
2021 | | - | |
2022 | | - | |
2023 | | - | |
2024 | | - | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
2025 | 2032 | | |
2026 | 2033 | | |
2027 | 2034 | | |
| |||
2037 | 2044 | | |
2038 | 2045 | | |
2039 | 2046 | | |
2040 | | - | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
2041 | 2058 | | |
2042 | 2059 | | |
2043 | 2060 | | |
| |||
0 commit comments