Re: [PATCH] Bluetooth: RFCOMM: serialize security confirmation handling
From: Chengfeng Ye
Date: Tue Aug 25 2026 - 14:46:44 EST
Hi Luiz,
On Tue, Aug 25, 2026 at 4:24 AM Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> Interesting, I though the kernel_connect would actually behave as a
> syscall and use it own thread so it wouldn't result into
> l2cap_chan_connect, in that case it is probably useless to use it in
> place of l2cap_chan_connect directly, so we may take the opportunity
> and clean this up.
Sorry for the negligence of the possible deadlock cycle. Could we
avoid the locking cycle by directly moving the session lookup and DLC
walk onto krfcommd so rfcomm_security_cfm() no longer takes
rfcomm_mutex from hci_rx_work? If we need a fix like this, should I
send a follow-up patch or send a v2?
Best regards,
Chengfeng