public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v2] sched/topology: change kzalloc to kcalloc
       [not found] <wayfdq456uccu2kzujdokp5kklbl7evp432rmnxcdh2222wwlp@67idbpxoy32u>
@ 2025-02-09 11:00 ` Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2025-02-09 11:00 UTC (permalink / raw)
  To: Ethan Carter Edwards, kernel-hardening, linux-hardening,
	Ingo Molnar
  Cc: LKML, kernel-janitors, Ben Segall, Peter Zijlstra

> We are replacing any instances of kzalloc(size * count, ...) with
> kcalloc(count, size, ...) due to risk of overflow [1].

* See also:
  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.13#n94

* How do you think about to use a summary phrase like “Replace two kzalloc() calls
  by kcalloc() in sched_init_numa()”?

* Would you be looking for any coccicheck extensions accordingly?

Regards,
Markus

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-09 11:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <wayfdq456uccu2kzujdokp5kklbl7evp432rmnxcdh2222wwlp@67idbpxoy32u>
2025-02-09 11:00 ` [PATCH v2] sched/topology: change kzalloc to kcalloc Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox