linux/drivers/tty/vt
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
..
.gitignore vt: create ucs_fallback_table.h_shipped with gen_ucs_fallback_table.py 2025-05-21 13:39:45 +02:00
conmakehash.c tty: vt: conmakehash: remove non-portable code printing comment header 2024-08-13 11:06:29 +02:00
consolemap.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
cp437.uni tty: fix up a few remaining files without SPDX identifiers 2019-04-04 18:48:43 +02:00
defkeymap.c_shipped vt: defkeymap: Map keycodes above 127 to K_HOLE 2025-07-22 18:53:56 +02:00
defkeymap.map tty: fix up a few remaining files without SPDX identifiers 2019-04-04 18:48:43 +02:00
gen_ucs_fallback_table.py vt: process the full-width ASCII fallback range programmatically 2025-05-21 13:39:45 +02:00
gen_ucs_recompose_table.py vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
gen_ucs_width_table.py vt: merge ucs_is_zero_width()/ucs_is_double_width() into ucs_get_width() 2026-05-22 11:47:33 +02:00
keyboard.c vt: stabilize tty reference in kbd_keycode with tty_port_tty_get 2026-08-03 16:31:12 +02:00
Makefile vt: add ucs_get_fallback() 2025-05-21 13:39:45 +02:00
selection.c drivers/tty/vt: use umin() instead of min_t(u16, ...) for row/col limits 2025-11-21 18:16:11 +01:00
ucs_fallback_table.h_shipped vt: process the full-width ASCII fallback range programmatically 2025-05-21 13:39:45 +02:00
ucs_recompose_table.h_shipped vt: move UCS tables to the "shipped" form 2025-04-26 11:22:04 +02:00
ucs_width_table.h_shipped vt: merge ucs_is_zero_width()/ucs_is_double_width() into ucs_get_width() 2026-05-22 11:47:33 +02:00
ucs.c vt: merge ucs_is_zero_width()/ucs_is_double_width() into ucs_get_width() 2026-05-22 11:47:33 +02:00
vc_screen.c vc_screen: replace __get_free_pages() with kmalloc() 2026-07-07 17:22:11 +02:00
vt_ioctl.c TTY / Serial driver updates for 7.3-rc1 2026-08-25 10:59:12 -07:00
vt.c TTY / Serial driver update for 7.2-rc1 2026-06-22 11:51:49 -07:00