Thread (4 messages) 4 messages, 4 authors, 2024-01-01

Re: [PATCH] net/tcp_sigpool: Use kref_get_unless_zero()

From: Eric Dumazet <edumazet@google.com>
Date: 2023-12-22 17:08:52
Also in: lkml

On Fri, Dec 22, 2023 at 2:14 AM Dmitry Safonov [off-list ref] wrote:
The freeing and re-allocation of algorithm are protected by cpool_mutex,
so it doesn't fix an actual use-after-free, but avoids a deserved
refcount_warn_saturate() warning.

A trivial fix for the racy behavior.

Fixes: 8c73b26315aa ("net/tcp: Prepare tcp_md5sig_pool for TCP-AO")
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Dmitry Safonov <redacted>
Reported-by: syzbot <redacted>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help