Re: [PATCH v6 2/4] cacheinfo: Allocate memory during CPU hotplug if not done from the primary CPU

From: Borislav Petkov
Date: Thu Sep 12 2024 - 06:59:50 EST


On Wed, Sep 11, 2024 at 04:34:10PM -0700, Ricardo Neri wrote:
> Yes, both patches address issues during CPU hotplug (both NULL-pointer
> dereference). However, IHMO, they are separate issues. Patch 1/4 fixes
> a missing allocation check. Patch 2/4 causes the allocation to happen in
> case early allocation is not used.
>
> If I did not convince you, I am happy to merge together patches 1 and 2.

Well, what is easier to handle by stable and/or backporters: one patch or two
patches fixing two very similar CPU hotplug isuses in cacheinfo?

IOW, what is the benefit in having two patches instead of one?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette