Skip to content

client/cs: fix crash in reference ranging provider

Naga Bhavani Akella linux-bluetooth 1 version Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2client: avoid registering ranging objects as direct children of "/"client/cs.c+27 -11 reply
2/2doc: note RangingProvider1 objects are nested in bluetoothctl-csdoc/bluetoothctl-cs.rst+5 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH BlueZ v1 0/2] client/cs: fix crash in reference ranging provider

start <dev_addr> 30 followed by register_provider / segfaults bluetoothctl on the first ProcedureData signal: cs_ranging_obj_create() exported each device's RangingProvider1 object as a direct child of "/", the one path with real gdbus object data (its ObjectManager), and gdbus/object.c's invalidate_parent_data() dereferences a NULL parent in that case.

Nest the exported objects under RANGING_PROVIDER_PATH "/org/example/ranging") instead of "/" directly. bluetoothd's provider watch matches any descendant of the registered root, so discovery still works.

Patch 1 is the fix, patch 2 updates the docs to match.

Naga Bhavani Akella (2):
client: avoid registering ranging objects as direct children of "/"
doc: note RangingProvider1 objects are nested in bluetoothctl-cs

 client/cs.c             | 28 +++++++++++++++++++++++++++-
 doc/bluetoothctl-cs.rst |  8 +++++---
 2 files changed, 32 insertions(+), 4 deletions(-)