* [bluez/bluez] 895f77: attrib: Fix unregistering notifications registered...
@ 2026-09-24 14:24 Luiz Augusto von Dentz
0 siblings, 0 replies; only message in thread
From: Luiz Augusto von Dentz @ 2026-09-24 14:24 UTC (permalink / raw)
To: linux-bluetooth
Branch: refs/heads/1173166
Home: https://github.com/bluez/bluez
Commit: 895f77da97dc7c9cb0247089a25b89442e834943
https://github.com/bluez/bluez/commit/895f77da97dc7c9cb0247089a25b89442e834943
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
M attrib/gattrib.c
Log Message:
-----------
attrib: Fix unregistering notifications registered with bt_gatt_client
g_attrib_register registers ATT_OP_HANDLE_NOTIFY with bt_gatt_client,
when there is one, returning its id, but g_attrib_unregister always
unregisters with bt_att, so the notification was never unregistered
and its destroy callback was called once bt_gatt_client was freed,
after the user data was freed, e.g. the reports of HoG:
ERROR: AddressSanitizer: heap-use-after-free
#11 report_notify_destroy profiles/input/hog-lib.c:359
#12 attrib_callbacks_destroy attrib/gattrib.c:126
#13 notify_data_unref src/shared/gatt-client.c:256
...
#17 bt_gatt_client_free src/shared/gatt-client.c:2293
#18 bt_gatt_client_unref src/shared/gatt-client.c:2605
#19 g_attrib_unref attrib/gattrib.c:154
#20 attio_cleanup src/device.c:874
Give out ids of our own, keeping track of how each one was registered
so it is unregistered accordingly.
Commit: 41645ad2a317bb1e5d92fd2427a2391ccb96618d
https://github.com/bluez/bluez/commit/41645ad2a317bb1e5d92fd2427a2391ccb96618d
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
M client/gatt.c
Log Message:
-----------
client/gatt: Fix setting descriptor value from scripts
gatt.register-descriptor completed the command right after prompting
for the value, so when run from a script the line with the value was
executed as a command instead of being passed to the prompt, causing
the descriptor to be unregistered.
Complete the command once the value is set, as done for
characteristics, and parse a copy of the value so the input line is
not truncated by strsep while still in use by the shell.
Commit: 8bbcecc9b28bc9260fe0f0537701daf4310c9ac5
https://github.com/bluez/bluez/commit/8bbcecc9b28bc9260fe0f0537701daf4310c9ac5
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
M client/mgmt.c
Log Message:
-----------
client/mgmt: Print Connection Subrate event
Print the MGMT Connection Subrate event, generated as a result of a
LE Connection Rate Request, e.g. after mgmt.conn-subrate, or a change
initiated by the remote device, so the new connection rate can be
confirmed.
Commit: f498acfcd2179b61be5e3d377718a76640a03768
https://github.com/bluez/bluez/commit/f498acfcd2179b61be5e3d377718a76640a03768
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
M emulator/main.c
M emulator/server.c
M emulator/server.h
Log Message:
-----------
emulator: Default to the latest BR/EDR+LE version
Emulate BR/EDR+LE 6.2 controllers by default, for both local (-l) and
server (--server, --tcp) controllers, so the latest features such as
Shorter Connection Intervals (LE Connection Rate Request) are
supported, e.g. by test-functional which uses --server.
Add the -C/--core=<version> option to emulate older versions instead:
5.0, 5.2, 6.0 or 6.2.
Commit: a046897e840d29f7a6e478b3fa09888dc88491e3
https://github.com/bluez/bluez/commit/a046897e840d29f7a6e478b3fa09888dc88491e3
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
A client/scripts/hog-device-sci.bt
A client/scripts/hog-device.bt
Log Message:
-----------
client/scripts: Add HoG device scripts
Add scripts registering a HID Service (HIDS) acting as a HID over GATT
keyboard, with and without Shorter Connection Interval (SCI) support.
HID SCI Mode can be notified so the device can confirm a mode change.
Commit: 6db64b52fdd547687ac49d9a6e219529ba7e176c
https://github.com/bluez/bluez/commit/6db64b52fdd547687ac49d9a6e219529ba7e176c
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
M Makefile.am
A doc/functional-hog.rst
M doc/functional-testing.rst
Log Message:
-----------
doc: Add functional-hog documentation
Document the HoG functional tests, where bluetoothctl registers a HID
Service with and without Shorter Connection Interval (SCI) support
using client/scripts/hog-device*.bt, and the HID host:
- checks HID Information, HID SCI Mode and HID SCI Information with
gatt.select-attribute/gatt.read
- receives a few Input Reports notified by the HID device
- changes the SCI mode, followed by the connection rate with
mgmt.conn-subrate, and receives the notification from the HID device
confirming the mode has been changed
Commit: f3c32979b1b1b5aad1508487403aa5229e95ed44
https://github.com/bluez/bluez/commit/f3c32979b1b1b5aad1508487403aa5229e95ed44
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
A test/functional/test_hog.py
Log Message:
-----------
test: functional: add HoG tests
Add tests where bluetoothctl registers a HID Service, with and without
SCI support, using client/scripts/hog-device*.bt, and the HID host
checks the service, receives Input Reports and, with SCI support,
changes the SCI mode and the connection rate.
See doc/functional-hog.rst for details.
Commit: f191e73d06e8e8533491139d727e53f7c9cb1928
https://github.com/bluez/bluez/commit/f191e73d06e8e8533491139d727e53f7c9cb1928
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2026-09-24 (Thu, 24 Sep 2026)
Changed paths:
M Makefile.am
M doc/test-functional.rst
M test/functional/conftest.py
Log Message:
-----------
test: functional: limit the workers by the memory available
Each worker of pytest-xdist runs VM instances, so using one worker per
CPU could run out of memory, with the OOM killer terminating some of
them and tests failing at random.
With -n auto, limit the number of workers by the memory available,
estimating each worker needs memory for 3 VM instances of 256M of guest
memory plus the overhead of qemu, and use -n auto for check-functional
by default, which can be overridden with CHECK_FUNCTIONAL_JOBS.
Compare: https://github.com/bluez/bluez/compare/895f77da97dc%5E...f191e73d06e8
To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-24 14:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-24 14:24 [bluez/bluez] 895f77: attrib: Fix unregistering notifications registered Luiz Augusto von Dentz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox