linux/drivers/block/drbd
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
..
drbd_actlog.c drbd: fix "LOGIC BUG" in drbd_al_begin_io_nonblock() 2026-02-19 08:21:53 -07:00
drbd_bitmap.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
drbd_buildtag.c drbd: move UAPI headers to include/uapi/linux/ 2026-05-08 19:23:23 -06:00
drbd_config.h drbd: move UAPI headers to include/uapi/linux/ 2026-05-08 19:23:23 -06:00
drbd_debugfs.c drbd: replace genl_magic with explicit netlink serialization 2026-05-08 19:23:23 -06:00
drbd_debugfs.h drbd: use consistent license 2022-11-22 19:38:39 -07:00
drbd_int.h drbd: replace genl_magic with explicit netlink serialization 2026-05-08 19:23:23 -06:00
drbd_interval.c drbd: drbd_insert_interval(): Clarify comment 2023-01-29 15:18:33 -07:00
drbd_interval.h drbd: fix "LOGIC BUG" in drbd_al_begin_io_nonblock() 2026-02-19 08:21:53 -07:00
drbd_main.c drbd: replace genl_magic with explicit netlink serialization 2026-05-08 19:23:23 -06:00
drbd_nl_gen.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
drbd_nl_gen.h drbd: replace genl_magic with explicit netlink serialization 2026-05-08 19:23:23 -06:00
drbd_nl.c drbd: don't leak the shared secret to unprivileged netlink dumps 2026-08-15 20:00:10 -06:00
drbd_polymorph_printk.h drbd: add context parameter to expect() macro 2022-12-01 11:33:49 -07:00
drbd_proc.c drbd: replace genl_magic with explicit netlink serialization 2026-05-08 19:23:23 -06:00
drbd_protocol.h drbd: use consistent license 2022-11-22 19:38:39 -07:00
drbd_receiver.c drbd: reject data replies with an out-of-range payload size 2026-07-10 06:49:11 -06:00
drbd_req.c drbd: fix null-pointer dereference on local read error 2026-02-20 07:09:06 -07:00
drbd_req.h drbd: pass drbd_peer_device to __req_mod 2023-04-01 20:27:55 -06:00
drbd_state_change.h drbd: fix function cast warnings in state machine 2024-02-13 08:55:40 -07:00
drbd_state.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
drbd_state.h drbd: use consistent license 2022-11-22 19:38:39 -07:00
drbd_strings.c drbd: use consistent license 2022-11-22 19:38:39 -07:00
drbd_strings.h drbd: use consistent license 2022-11-22 19:38:39 -07:00
drbd_vli.h drbd: remove unnecessary assignment in vli_encode_bits 2023-01-29 15:18:33 -07:00
drbd_worker.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
Kconfig lib/crc: remove CONFIG_LIBCRC32C 2025-04-04 11:31:42 -07:00
Makefile drbd: replace genl_magic with explicit netlink serialization 2026-05-08 19:23:23 -06:00