linux/drivers/hv
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
..
channel_mgmt.c Drivers: hv: Remove support for WS2012/2012R2 & Win8/8.1 version of Hyper-V 2026-08-24 00:35:41 +00:00
channel.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
connection.c Drivers: hv: Remove support for WS2012/2012R2 & Win8/8.1 version of Hyper-V 2026-08-24 00:35:41 +00:00
hv_balloon.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
hv_common.c Drivers: hv: Use meaningful errnos for hypercall status codes 2026-08-24 00:01:30 +00:00
hv_debugfs.c hv_debugfs: Make hv_debug_root static 2020-04-04 17:47:43 +01:00
hv_kvp.c hv: utils: replace deprecated strcpy with strscpy in kvp_register 2026-04-29 22:15:31 +00:00
hv_proc.c x86/hyperv: Skip LP/VP creation on kexec 2026-04-22 06:23:25 +00:00
hv_snapshot.c Drivers: hv: Remove support for WS2012/2012R2 & Win8/8.1 version of Hyper-V 2026-08-24 00:35:41 +00:00
hv_trace_balloon.h hv_balloon: trace post_status 2018-03-06 09:57:17 -08:00
hv_trace.c hv: add SPDX license to trace 2018-03-28 13:24:56 +02:00
hv_trace.h Drivers: hv: vmbus: Drivers: hv: vmbus: Introduce CHANNELMSG_MODIFYCHANNEL_RESPONSE 2021-04-18 13:03:11 +00:00
hv_util.c Drivers: hv: use kmalloc_array() instead of kmalloc() 2025-12-05 23:16:49 +00:00
hv_utils_transport.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hv_utils_transport.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 280 2019-06-05 17:36:36 +02:00
hv.c clocksource: hyper-v: Remove support for stimer interrupts in message mode 2026-08-24 00:36:14 +00:00
hyperv_vmbus.h Drivers: hv: vmbus: add VTL2 redirect connection ID 2026-07-31 20:02:03 +00:00
Kconfig mshv: Add conditional VMBus dependency 2026-05-27 15:11:05 -07:00
Makefile mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv_common.c mshv: hide x86-specific functions on arm64 2025-12-17 18:04:15 +00:00
mshv_debugfs_counters.c mshv: Add data for printing stats page counters 2026-02-04 06:17:05 +00:00
mshv_debugfs.c mshv: unmap debugfs stats pages on kexec 2026-04-29 22:56:53 +00:00
mshv_eventfd.c mshv: Order pt_vp_array publish against irqfd assertion path 2026-07-31 20:01:59 +00:00
mshv_eventfd.h mshv: clear eventfd counter on irqfd shutdown 2026-02-04 06:36:19 +00:00
mshv_irq.c mshv: Fix duplicate GSI detection for GSI 0 2026-07-22 23:51:25 +00:00
mshv_portid_table.c mshv: Use kfree_rcu in mshv_portid_free 2026-07-31 20:01:43 +00:00
mshv_regions.c mshv: use hmm_range_fault_unlocked_timeout() for region faults 2026-08-04 19:18:54 -07:00
mshv_root_hv_call.c mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv_root_main.c mshv: Publish VP to pt_vp_array before installing the file descriptor 2026-07-31 20:02:03 +00:00
mshv_root.h mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv_synic.c hyperv-next for v7.2-rc1 2026-06-22 08:06:13 -07:00
mshv_trace.c mshv: Introduce tracing support 2026-04-14 04:42:02 +00:00
mshv_trace.h mshv: Add tracepoint for GPA intercept handling 2026-04-22 06:23:25 +00:00
mshv_vtl_main.c mshv_vtl: bounds-check cpu index in vtl mmap fault handler 2026-07-31 20:02:04 +00:00
mshv_vtl.h Drivers: hv: Introduce mshv_vtl driver 2025-12-05 23:16:26 +00:00
mshv.h mshv: Use common "entry virt" APIs to do work in root before running guest 2025-09-30 22:50:48 +00:00
ring_buffer.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
vmbus_drv.c clocksource: hyper-v: Remove support for stimer interrupts in message mode 2026-08-24 00:36:14 +00:00