Re: [syzbot] [net?] possible deadlock in inet6_getname
From: Gerd Rausch
Date: Tue Feb 17 2026 - 12:28:52 EST
On 2026-02-17 09:19, Fernando Fernandez Mancera wrote:
On 2/17/26 6:13 PM, Gerd Rausch wrote:
If someone were to change the code to pass in "fan_out == true"
from a context not already holding a socket lock,
would they remember to change rds_tcp_conn_slots_available()
to acquire that lock?
Usually kernel requires the developer to understand when do they need to acquire a lock or not.
Anyway, what would you suggest? To check whether we have acquired the lock or not and do it conditionally?>
Something along those lines.
Either a "_locked" version of "conn_slots_available" function pointer,
a parameter, or a check.
What you suggested is fine though for the immediate syzbot need.
Thanks,
Gerd