linux/net/bluetooth
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
bnep Bluetooth: fix BT dependency for submodules 2026-08-07 15:38:30 -04:00
hidp Bluetooth: fix BT dependency for submodules 2026-08-07 15:38:30 -04:00
rfcomm Bluetooth: RFCOMM: serialize session teardown 2026-08-24 13:14:43 -04:00
6lowpan.c Bluetooth: add annotations for l2cap_data locking context 2026-08-07 15:38:32 -04:00
af_bluetooth.c Bluetooth: af_bluetooth: Add minimal context analysis annotations 2026-08-07 12:26:02 -04:00
aosp.c Bluetooth: aosp: Fix typo in comment 2025-07-23 10:30:18 -04:00
aosp.h Bluetooth: aosp: Support AOSP Bluetooth Quality Report 2021-11-02 19:37:52 +01:00
coredump.c Bluetooth: coredump: Expose header size and end marker to drivers 2026-08-07 15:40:26 -04:00
ecdh_helper.c Bluetooth: Add SPDX id lines to some source files 2026-06-11 14:24:41 -04:00
ecdh_helper.h Bluetooth: Add SPDX id lines to some source files 2026-06-11 14:24:41 -04:00
eir.c Bluetooth: eir: Fix OOB read in eir_get_service_data() 2026-08-24 13:10:27 -04:00
eir.h Bluetooth: eir: Fix possible crashes on eir_create_adv_data 2025-06-11 16:29:22 -04:00
hci_codec.c Bluetooth: hci: validate codec capability element length 2026-06-11 14:24:41 -04:00
hci_codec.h Bluetooth: Add support for Read Local Supported Codecs V2 2021-09-07 14:09:18 -07:00
hci_conn.c Bluetooth: hci_conn: re-enable advertising only for peripheral role 2026-08-24 13:11:33 -04:00
hci_core.c Bluetooth: hci_core: Fix race condition during device registration 2026-08-31 13:52:54 -04:00
hci_debugfs.c Bluetooth: simplify force_no_mitm_write() with kstrtobool_from_user() 2026-08-07 12:27:39 -04:00
hci_debugfs.h Bluetooth: Add SPDX id lines to some source files 2026-06-11 14:24:41 -04:00
hci_drv.c Bluetooth: Introduce HCI Driver protocol 2025-05-21 10:28:07 -04:00
hci_event.c Bluetooth: hci_event: clear HCI_LE_ADV only on a created connection 2026-08-24 13:11:42 -04:00
hci_sock.c Bluetooth: Add SPDX id lines to some source files 2026-06-11 14:24:41 -04:00
hci_sync.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
hci_sysfs.c Bluetooth: fix memory leak in error path of hci_alloc_dev() 2026-06-03 11:22:28 -04:00
iso.c Bluetooth: ISO: fix use-after-free of listener socket in iso_conn_ready 2026-08-24 13:13:06 -04:00
Kconfig Bluetooth: fix BT dependency for submodules 2026-08-07 15:38:30 -04:00
l2cap_core.c Bluetooth: L2CAP: clear FLAG_DEFER_SETUP only for same PID/PSM 2026-08-31 13:59:45 -04:00
l2cap_sock.c Bluetooth: L2CAP: fix race l2cap_sock_cleanup_listen() vs. put_chan 2026-08-24 13:06:49 -04:00
leds.c Bluetooth: Use led_set_brightness() in LED trigger activate() callback 2024-09-10 13:06:11 -04:00
leds.h
lib.c Bluetooth: Add SPDX id lines to some source files 2026-06-11 14:24:41 -04:00
Makefile Bluetooth: enable context analysis 2026-08-07 12:27:20 -04:00
mgmt_config.c Bluetooth: mgmt: Add idle_timeout to configurable system parameters 2026-01-29 13:24:22 -05:00
mgmt_config.h
mgmt_util.c Bluetooth: Add SPDX id lines to some source files 2026-06-11 14:24:41 -04:00
mgmt_util.h Bluetooth: Add SPDX id lines to some source files 2026-06-11 14:24:41 -04:00
mgmt.c Bluetooth: mgmt: fix 'hdev->discovery.uuids' NULL dereference 2026-08-24 13:06:39 -04:00
msft.c Bluetooth: hci_core: Fix race condition during device registration 2026-08-31 13:52:54 -04:00
msft.h Bluetooth: msft: fix slab-use-after-free in msft_do_close() 2024-05-03 13:05:28 -04:00
sco.c Bluetooth: SCO: give the socket its own sco_conn reference 2026-07-28 16:13:48 -04:00
selftest.c Bluetooth: Add SPDX id lines to some source files 2026-06-11 14:24:41 -04:00
selftest.h Bluetooth: Add SPDX id lines to some source files 2026-06-11 14:24:41 -04:00
smp.c Networking changes for 7.3. 2026-08-20 08:16:04 -07:00
smp.h Bluetooth: add annotations for l2cap_data locking context 2026-08-07 15:38:32 -04:00