mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
tls: improve lockless access safety of tls_err_abort()
[ Upstream commit8a0d57df89] Most protos' poll() methods insert a memory barrier between writes to sk_err and sk_error_report(). This dates back to commita4d258036e("tcp: Fix race in tcp_poll"). I guess we should do the same thing in TLS, tcp_poll() does not hold the socket lock. Fixes:3c4d755915("tls: kernel TLS support") Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0b64a2bf16
commit
d615070b0e
2 changed files with 6 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue