KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
82 stars 5 forks source link

Add vzalloc() and vmalloc() functions to alloc-with-multiplies check in checkpatch.pl #342

Open GustavoARSilva opened 1 year ago

GustavoARSilva commented 1 year ago

Update checkpatch.pl to check for instances of vzalloc()/vmalloc() that could be replaced with their 2-factor multiplication argument form vcalloc()/vmalloc_array (). So, they can be caught before new code is even committed.

Related to: https://github.com/KSPP/linux/issues/187

kees commented 7 months ago

Did this get sent upstream? I see the earlier commit 73f1d07e5f8a1dec989a5ec964f5f2ce5b6f8825, though?