On 01/12/26 1:35 pm, netd…@kernel.org wrote:
> Hi!
>
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
>
> - Whether the issue was actually triggered, or is only theoretical
> (e.g. found by LLM and not proven at runtime). If it was triggered
> please include the symptoms, like the stack trace or kernel messages.
Not triggered; there is no stack trace or kernel message to include. The
series comes from a code walk of the clcsock lifetime, which the cover
letter states: "This is hardening found by code walk, not a fix for a
reported regression".
The window is structural rather than speculative:
smc_close_active_abort() and smc_close_passive_work() release the
clcsock from asynchronous contexts while an fd to the SMC socket can
still be open, so a task that uses that fd - getsockopt(), a socket diag
dump - can operate on a released socket. Reproducing it needs the
asynchronous close to land between the system call's entry and its use
of smc->clcsock, which is why it was found by inspection rather than
from a report.
Patch 1 frees the clcsock only once no file can reference it, patch 2
removes the lock that convention made necessary, and patch 3 records the
invariant.