Re: [PATCH] rust: cpumask: Validate CPU number in set() and clear()

From: Viresh Kumar
Date: Mon Jun 09 2025 - 07:17:33 EST


On 05-06-25, 21:37, Boqun Feng wrote:
> While this can fix the current problem, but it's not a good solution for
> the long run. Because outside a test, we should never use an arbitrary
> i32 as a cpu number (we usually get it from smp_processor_id(), or
> something else). So the `< nr_cpu_ids` testing is not necessary in
> normal use cases.

Thanks for the feedback Boqun.

I have sent a new version and hopefully took care of all the review
comments:

https://lore.kernel.org/all/cover.1749463570.git.viresh.kumar@xxxxxxxxxx/

--
viresh