All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add str_alloc_free()/str_free_alloc helper and
@ 2026-04-30  6:40 Jiazi Li
  2026-04-30  6:40 ` [PATCH v2 1/2] lib/string_choices: Add str_alloc_free() helper Jiazi Li
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jiazi Li @ 2026-04-30  6:40 UTC (permalink / raw)
  To: Kees Cook, Andy Shevchenko, Julia Lawall, Nicolas Palix
  Cc: Jiazi Li, linux-hardening

Currently finds 4 locations:
./drivers/net/wireless/realtek/rtw89/fw.c:2557:7-12: opportunity for str_alloc_free(valid)
./drivers/net/wireless/realtek/rtw89/fw.c:2693:7-12: opportunity for str_alloc_free(valid)
./drivers/android/tests/binder_alloc_kunit.c:196:6-21: opportunity for str_alloc_free(alloc -> pages [ i ])
./mm/slub.c:1634:3-8: opportunity for str_alloc_free(alloc)

Jiazi Li (2):
  lib/string_choices: Add str_alloc_free() helper
  coccinelle: Add rules to find str_alloc_free() replacements

 include/linux/string_choices.h              |   6 +
 scripts/coccinelle/api/string_choices.cocci | 228 ++++++++++++--------
 2 files changed, 139 insertions(+), 95 deletions(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-01  8:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30  6:40 [PATCH v2 0/2] Add str_alloc_free()/str_free_alloc helper and Jiazi Li
2026-04-30  6:40 ` [PATCH v2 1/2] lib/string_choices: Add str_alloc_free() helper Jiazi Li
2026-05-01  8:51   ` Andy Shevchenko
2026-04-30  6:40 ` [PATCH v2 2/2] coccinelle: Add rules to find str_alloc_free() replacements Jiazi Li
2026-05-01  8:53   ` Andy Shevchenko
2026-05-01  8:54 ` [PATCH v2 0/2] Add str_alloc_free()/str_free_alloc helper and Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.