Sabrina Dubroca 06cc878651 tls: skip setting sk_write_space on rekey
syzbot reported a problem when calling setsockopt(SO_SNDBUF) after a
rekey. SO_SNDBUF calls sk_write_space, ie tls_write_space, which then
calls the original socket's sk_write_space, saved in
ctx->sk_write_space. Rekeys should skip re-assigning
ctx->sk_write_space, so we don't end up with tls_write_space calling
itself.

Fixes: 47069594e67e ("tls: implement rekey for TLS1.3")
Reported-by: syzbot+6ac73b3abf1b598863fa@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/676d231b.050a0220.2f3838.0461.GAE@google.com/
Tested-by: syzbot+6ac73b3abf1b598863fa@syzkaller.appspotmail.com
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://patch.msgid.link/ffdbe4de691d1c1eead556bbf42e33ae215304a7.1736436785.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-01-10 18:34:45 -08:00
..
2024-11-11 10:32:06 -08:00
2024-10-04 12:42:32 +01:00
2024-06-14 19:08:50 -07:00
2025-01-06 15:57:01 -08:00
2024-12-12 18:22:52 -08:00
2024-10-08 15:33:49 -07:00
2024-12-16 18:13:44 -08:00
2024-10-15 18:52:26 -07:00
2024-01-11 10:07:29 -08:00
2025-01-10 09:15:17 +00:00
2025-01-10 09:15:17 +00:00
2024-12-27 11:23:37 -08:00
2024-12-19 18:54:07 -08:00
2025-01-10 09:15:17 +00:00
2024-11-21 08:28:08 -08:00
2024-12-19 18:54:07 -08:00
2023-12-12 14:24:14 +01:00
2024-10-10 08:30:21 -07:00
2024-10-08 15:16:59 +02:00
2024-10-10 08:30:21 -07:00