Re: L2CAP: Spec violation

From: Luiz Augusto von Dentz
Date: Mon Nov 14 2022 - 17:05:49 EST


Hi Kim,

On Fri, Nov 4, 2022 at 9:13 AM Sungwoo Kim <iam@xxxxxxxxxxxx> wrote:
>
> Hello,
>
> Our fuzzer found a BT spec violation, illegal state transition on L2cap.
> Specifically, l2cap_chan::state is transitioned from BT_CONFIG to
> BT_DISCONN by CONFIG_RSP by following trace:
>
> l2cap_config_rsp l2cap_core.c:4498
> l2cap_send_disconn_req l2cap_core.c:4585
> l2cap_state_change l2cap_core.c:1618
>
> According to the spec 5.3 vol.3 part A 6.1.4, CONFIG_RSP cannot cause
> that transition, i.e., CONFIG -> DISCONN by CONFIG_RSP is illegal.
> It'd be great if we could discuss.

Can you include some btmon traces?


--
Luiz Augusto von Dentz