linux/drivers/firmware
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
..
arm_ffa SoC fixes for 7.2 2026-07-17 08:52:09 -07:00
arm_scmi treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
broadcom mm.git review status for linus..mm-nonmm-stable 2026-02-12 12:13:01 -08:00
cirrus firmware: cs_dsp: Fix mock register default typo in KUnit test 2026-08-05 13:07:12 +01:00
efi efi: apple-properties: validate setup data header length 2026-08-20 14:49:39 +03:00
google firmware: coreboot: Validate table bounds 2026-08-03 03:00:21 +00:00
imx firmware: imx: scu: manage mailbox channels and global handle 2026-07-24 16:28:37 -04:00
meson firmware: meson: sm: Add thermal calibration SMC call 2026-05-26 13:24:33 +02:00
microchip RISC-V soc fixes for v7.0-rc6 2026-04-01 13:42:51 +02:00
psci psci: simplify hotplug_tests() 2026-07-22 15:38:36 -04:00
qcom treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
samsung firmware: samsung: acpm: Add devm_acpm_get_by_phandle helper 2026-05-29 16:02:23 +02:00
smccc firmware: smccc: Fix Arm SMCCC SOC_ID name call 2026-05-20 09:41:44 +01:00
tegra firmware: tegra: bpmp: Add support for multi-socket platforms 2026-05-31 07:25:25 +02:00
xilinx remoteproc updates for v7.3 2026-08-25 14:03:31 -07:00
arm_scpi.c firmware: arm_scpi: Fix device_node reference leak in probe path 2026-03-07 19:49:52 +00:00
arm_sdei_nmi.c arm64: escalate smp_send_stop() to an SDEI NMI as a last resort 2026-08-02 09:21:06 +00:00
arm_sdei.c firmware: arm_sdei: add SDEI_EVENT_SIGNAL support 2026-08-02 09:21:06 +00:00
dmi_scan.c x86/CPU/AMD: Print AGESA string from DMI additional information entry 2026-04-01 20:54:16 +02:00
dmi-id.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dmi-sysfs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
edd.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
iscsi_ibft_find.c
iscsi_ibft.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
Makefile drivers/firmware: add SDEI cross-CPU NMI service for arm64 2026-08-02 09:21:06 +00:00
memmap.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
mtk-adsp-ipc.c
qemu_fw_cfg.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
raspberrypi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
stratix10-rsu.c firmware: stratix10-rsu: Add synchronous fallback for async SVC operations 2026-07-10 09:58:23 -05:00
stratix10-svc.c SoCFPGA firmware updates for v7.3 2026-07-31 14:14:51 +02:00
sysfb_simplefb.c efi: sysfb_efi: Reduce number of references to global screen_info 2025-12-16 14:12:44 +01:00
sysfb.c sysfb: Pass sysfb_primary_display to devices 2025-12-16 14:12:44 +01:00
thead,th1520-aon.c firmware: thead: Fix buffer overflow and use standard endian macros 2026-04-01 13:03:07 +02:00
ti_sci.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
ti_sci.h firmware: ti_sci: Add support for restoring clock context during resume 2026-05-26 06:44:42 -05:00
trusted_foundations.c
turris-mox-rwtm.c firmware: turris-mox-rwtm: Add support for ECDSA signatures with HW private key 2025-03-20 17:56:57 +01:00