Sabrina Dubroca 0844370f89 tls: fix lockless read of strp->msg_ready in ->poll
tls_sk_poll is called without locking the socket, and needs to read
strp->msg_ready (via tls_strp_msg_ready). Convert msg_ready to a bool
and use READ_ONCE/WRITE_ONCE where needed. The remaining reads are
only performed when the socket is locked.

Fixes: 121dca784fc0 ("tls: suppress wakeups unless we have a full record")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/0b7ee062319037cf86af6b317b3d72f7bfcd2e97.1713797701.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-25 08:32:37 -07:00
..
2024-04-23 11:35:52 +02:00
2024-03-11 18:06:04 -07:00
2024-02-20 15:32:45 +01:00
2024-03-21 14:41:00 -07:00
2024-01-11 10:07:29 -08:00
2024-03-07 21:12:43 -08:00
2024-04-06 09:37:50 -07:00
2023-12-12 14:24:14 +01:00
2024-01-31 16:41:16 -08:00