Skip to content

Conversation

cvinayak
Copy link
Contributor

@cvinayak cvinayak commented Apr 8, 2021

Fix control Tx buffer leak into data Tx pool that happens
after a cross-over control procedure response was paused due
to currently active encryption setup procedure, and a new
control Tx PDU in addition to the paused one is enqueued
thereafter.

When the control tx PDUs is resumed but not yet enqueued
towards the radio, if there is a new control Tx PDU enqueued
then the paused control Tx PDU is not set as the head of the
control PDUs in the Tx queue. This caused the paused control
Tx PDU to be associated with data Tx pool, hence causing the
incorrect release into data Tx pool.

Relates to the commit bff76b4 ("Bluetooth: controller:
split: Fix control tx queue handling"), and to the
commit 6991d09 ("Bluetooth: controller: Fix control tx
queue handling"), and to the
commit 7f727ac ("Bluetooth: controller: Fix regression
in ctrl tx queue handling").

Fixes #32898.

Signed-off-by: Vinayak Kariappa Chettimada [email protected]

@cvinayak cvinayak self-assigned this Apr 8, 2021
@cvinayak cvinayak added area: Bluetooth area: Bluetooth Controller Backport Backport PR and backport failure issues bug The issue is a bug, or the PR is fixing a bug labels Apr 8, 2021
@cvinayak cvinayak changed the title [backport v1.14-branch] Bluetooth: controller: Fix regression in ctrl tx queue handling [Backport v1.14-branch] Bluetooth: controller: Fix regression in ctrl tx queue handling Apr 10, 2021
@galak
Copy link
Contributor

galak commented Apr 13, 2021

Can you rebase now that the doc building is fixed.

Fix control Tx buffer leak into data Tx pool that happens
after a cross-over control procedure response was paused due
to currently active encryption setup procedure, and a new
control Tx PDU in addition to the paused one is enqueued
thereafter.

When the control tx PDUs is resumed but not yet enqueued
towards the radio, if there is a new control Tx PDU enqueued
then the paused control Tx PDU is not set as the head of the
control PDUs in the Tx queue. This caused the paused control
Tx PDU to be associated with data Tx pool, hence causing the
incorrect release into data Tx pool.

Relates to the commit bff76b4 ("Bluetooth: controller:
split: Fix control tx queue handling"), and to the
commit 6991d09 ("Bluetooth: controller: Fix control tx
queue handling"), and to the
commit 7f727ac ("Bluetooth: controller: Fix regression
in ctrl tx queue handling").

Fixes zephyrproject-rtos#32898.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
@cvinayak cvinayak force-pushed the backport-33310-to-v1.14-branch branch from ddfaf15 to 1a93b72 Compare April 14, 2021 03:40
@nashif nashif merged commit da9ac45 into zephyrproject-rtos:v1.14-branch May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Controller area: Bluetooth Backport Backport PR and backport failure issues bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants