On 24/11/26 1:13 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:
>
> - How the issue was discovered, e.g. hit in production, hit during
> development, syzbot report, manual code inspection, LLM or static
> analysis tool scan.
Manual code inspection while reviewing the CDC validation and tear-down
paths. No report, no reproducer, no tool.
>
> - 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 at runtime, and there is no stack trace to include: the
failure is silent, the socket is simply never freed.
smc_cdc_msg_validate() holds a reference only when queue_work()
succeeds, and smc_conn_abort_work() is the only place that drops it.
When smc_conn_free() cancels the work while it is still pending,
cancel_work_sync() removes it, the handler never runs and the reference
is lost. Once the work is running, cancel_work_sync() waits for it and
returns false, so the leak needs the queued-but-not-started window, for
example a close racing with a failed CDC validation.