Re: [PATCH 1/2] x86, sched: Prevent divisions by zero in frequency invariant accounting

From: Ricardo Neri
Date: Mon May 18 2020 - 18:20:20 EST


On Sat, May 02, 2020 at 04:25:00PM +0200, Giovanni Gherdovich wrote:
> >
> > I've changed the patch like so.. OK?
> >
> > (ok, perhaps I went a little overboard with the paranoia ;-)
>
> Right, I wasn't really checking for overflow, only for when the product
> "mcnt * arch_max_freq_ratio" becomes zero.
>
> Thanks for your edit (I took note of the macros check_*_overflow, didn't know
> them). I fully subscribe to the paranoid approach.
>
> I understand you've already edited the patches in your tree, so I am not
> resending, just confirming my
>
> Signed-off-by: Giovanni Gherdovich <ggherdovich@xxxxxxx>

Hi, have these changes been merged? I still don't see them in the tip or
Linus' tree.

Thanks and BR,
Ricardo