[PW_SID:1054169] [v9] Bluetooth: mgmt: Fix race condition in mesh handling#3310
[PW_SID:1054169] [v9] Bluetooth: mgmt: Fix race condition in mesh handling#3310BluezTestBot wants to merge 2 commits intoworkflowfrom
Conversation
This patch adds workflow files for ci: [sync.yml] - The workflow file for scheduled work - Sync the repo with upstream repo and rebase the workflow branch - Review the patches in the patchwork and creates the PR if needed [ci.yml] - The workflow file for CI tasks - Run CI tests when PR is created Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
This patch addresses race conditions in mesh handling within mgmt_util.c. The functions mgmt_mesh_add and mgmt_mesh_find modify or traverse the mesh_pending list without locking. This patch uses guard(mutex) with the existing mgmt_pending_lock to protect the critical sections, as suggested by maintainers in previous reviews. Note: The heap buffer overflow fix previously included in earlier versions of this patch series has already been merged upstream. Fixes: b338d91 ("Bluetooth: Implement support for Mesh") Cc: stable@vger.kernel.org Signed-off-by: Maiquel Paiva <maiquelpaiva@gmail.com>
|
CheckPatch |
|
GitLint |
|
SubjectPrefix |
|
BuildKernel |
|
CheckAllWarning |
|
CheckSparse |
|
BuildKernel32 |
|
TestRunnerSetup |
|
TestRunner_l2cap-tester |
|
TestRunner_iso-tester |
|
TestRunner_bnep-tester |
|
TestRunner_mgmt-tester |
|
TestRunner_rfcomm-tester |
|
TestRunner_sco-tester |
|
TestRunner_ioctl-tester |
|
TestRunner_mesh-tester |
|
TestRunner_smp-tester |
|
TestRunner_userchan-tester |
|
IncrementalBuild |
b12713f to
208468a
Compare
This patch addresses race conditions in mesh handling within mgmt_util.c.
The functions mgmt_mesh_add and mgmt_mesh_find modify or traverse the
mesh_pending list without locking. This patch uses guard(mutex) with
the existing mgmt_pending_lock to protect the critical sections, as
suggested by maintainers in previous reviews.
Note: The heap buffer overflow fix previously included in earlier
versions of this patch series has already been merged upstream.
Fixes: b338d91 ("Bluetooth: Implement support for Mesh")
Cc: stable@vger.kernel.org
Signed-off-by: Maiquel Paiva maiquelpaiva@gmail.com
net/bluetooth/mgmt_util.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)