linux/scripts/coccinelle/api
Kees Cook 0336f89888 coccinelle: Add rules to find str_down_up() replacements
As done with str_up_down(), add checks for str_down_up() opportunities.
5 cases currently exist in the tree.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240812183637.work.999-kees@kernel.org
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Kees Cook <kees@kernel.org>
2024-08-15 09:26:02 -07:00
..
alloc update Coccinelle URL 2022-08-07 21:30:36 +02:00
atomic_as_refcounter.cocci coccinelle: api/atomic_as_refcounter: include message type in output 2022-12-26 21:47:12 +01:00
check_bq27xxx_data.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
d_find_alias.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
device_attr_show.cocci coccinelle: device_attr_show: Remove useless expression STR 2024-02-18 09:19:35 +01:00
err_cast.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
kfree_mismatch.cocci coccinelle: api: add kfree_mismatch script 2020-10-17 23:11:06 +02:00
kfree_sensitive.cocci coccinelle: api: kfree_sensitive: print memset position 2020-10-10 21:26:12 +02:00
kstrdup.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
kvmalloc.cocci coccinelle: api: rename kzfree to kfree_sensitive 2021-08-05 13:01:09 +02:00
memdup_user.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
memdup.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
platform_get_irq.cocci coccinelle: platform_get_irq: Fix parse error 2019-09-06 10:10:28 +02:00
platform_no_drv_owner.cocci treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 257 2019-06-05 17:30:27 +02:00
pm_runtime.cocci Coccinelle: pm_runtime: Fix grammar in comment 2024-05-20 21:31:33 +02:00
resource_size.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
simple_open.cocci License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stream_open.cocci stream_open related bits for Linux 5.3 2019-07-14 17:08:08 -07:00
string_choices.cocci coccinelle: Add rules to find str_down_up() replacements 2024-08-15 09:26:02 -07:00
vma_pages.cocci License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00