Thread (7 messages) 7 messages, 2 authors, 2024-07-31

Re: [PATCH v1 net] sctp: Fix null-ptr-deref in reuseport_add_sock().

From: Kuniyuki Iwashima <hidden>
Date: 2024-07-31 19:33:38
Also in: linux-sctp

From: Dmitry Antipov <redacted>
Date: Wed, 31 Jul 2024 22:15:12 +0300
On 7/31/24 10:06 PM, Kuniyuki Iwashima wrote:
quoted
reuseport_lock is to synchronise operations within the same
reuseport group, but which socket should belong to which group
is out of scope.
Hm... then the lock should be a member of 'struct sock_reuseport'
rather than global, isn't?
I thought that before and it would be doable with more complex
locking since we still need another synchronisation for add/detach
and alloc.  Such operations are most unlikely done concurrently
nor frequently, and the global lock would be enough.

I'll check that again later, but anyway, it's a different topic
for net-next.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help