diff options
| author | Sabrina Dubroca <[email protected]> | 2024-04-24 10:25:47 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-04-25 15:32:37 +0000 |
| commit | 0844370f8945086eb9335739d10205dcea8d707b (patch) | |
| tree | 4be7d487609af271fc19ce111974738fe30417e9 /net/nsh/nsh.c | |
| parent | dpll: fix dpll_pin_on_pin_register() for multiple parent pins (diff) | |
| download | kernel-0844370f8945086eb9335739d10205dcea8d707b.tar.gz kernel-0844370f8945086eb9335739d10205dcea8d707b.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/0b7ee062319037cf86af6b317b3d72f7bfcd2e97.1713797701.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions
