Re: [PATCH v3] perf/x86/amd/uncore: Use kcalloc*() instead of kzalloc*()

2024-04-29 Thread Christophe JAILLET
Le 27/04/2024 à 18:45, Erick Archer a écrit : This is an effort to get rid of all multiplications from allocation functions in order to prevent integer overflows [1]. Here the multiplication is obviously safe. However, using kcalloc*() is more appropriate [2] and improves readability. This patch

Re: [PATCH v3] perf/x86/amd/uncore: Use kcalloc*() instead of kzalloc*()

2024-04-29 Thread Kees Cook
On Sat, Apr 27, 2024 at 06:45:23PM +0200, Erick Archer wrote: > This is an effort to get rid of all multiplications from allocation > functions in order to prevent integer overflows [1]. > > Here the multiplication is obviously safe. However, using kcalloc*() > is more appropriate [2] and improves

[PATCH v3] perf/x86/amd/uncore: Use kcalloc*() instead of kzalloc*()

2024-04-27 Thread Erick Archer
This is an effort to get rid of all multiplications from allocation functions in order to prevent integer overflows [1]. Here the multiplication is obviously safe. However, using kcalloc*() is more appropriate [2] and improves readability. This patch has no effect on runtime behavior. Link: https