linux/sound/core/seq/oss
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
..
Makefile ALSA: core: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:32 +02:00
seq_oss_device.h ALSA: seq: Simplify internal command operation from OSS layer 2025-08-29 11:52:35 +02:00
seq_oss_event.c ALSA: seq: oss: Fix UAF at handling events with embedded SysEx data 2026-05-27 07:29:43 +02:00
seq_oss_event.h ALSA: seq: oss: Use scoped cleanup for temporary MIDI use lock 2026-06-04 10:20:41 +02:00
seq_oss_init.c ALSA: core: Mark some variables as __ro_after_init 2026-05-25 09:31:40 +02:00
seq_oss_ioctl.c ALSA: seq: oss: Use scoped cleanup for temporary MIDI use lock 2026-06-04 10:20:41 +02:00
seq_oss_midi.c ALSA: seq: oss: Fix UAF at handling events with embedded SysEx data 2026-05-27 07:29:43 +02:00
seq_oss_midi.h ALSA: seq: oss: Fix UAF at handling events with embedded SysEx data 2026-05-27 07:29:43 +02:00
seq_oss_readq.c ALSA: seq: oss: Serialize readq reset state with q->lock 2026-06-14 10:54:21 +02:00
seq_oss_readq.h ALSA: seq: oss/rw: allocate evrec with main struct 2026-05-04 13:24:53 +02:00
seq_oss_rw.c ALSA: seq: oss: Use scoped cleanup for temporary MIDI use lock 2026-06-04 10:20:41 +02:00
seq_oss_synth.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
seq_oss_synth.h ALSA: seq: oss: Convert to snd_seq bus probe mechanism 2025-12-14 11:08:09 +01:00
seq_oss_timer.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
seq_oss_timer.h ALSA: seq: oss: remove unused inline function snd_seq_oss_timer_is_realtime 2020-04-29 15:58:55 +02:00
seq_oss_writeq.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
seq_oss_writeq.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_oss.c ALSA: core: Clean up file_operations definitions 2026-07-13 12:01:27 +02:00