Re: [PATCH] sched: Fix implicit type conversion

From: Peter Zijlstra
Date: Mon Oct 25 2021 - 04:58:04 EST


On Mon, Oct 25, 2021 at 08:17:27AM +0000, Jiasheng Jiang wrote:
> The variable 'n' is defined as ULONG. However in the cpumask_next(),
> it is used as INT.
> That is vulnerable and may cause overflow.
> Therefore, it might be better to define 'n' as INT.

-ENOPARSE