Re: [oliver.sang@xxxxxxxxx: [cpumask] b9a7ecc71f: WARNING:at_include/linux/cpumask.h:#__is_kernel_percpu_address]

From: Yury Norov
Date: Tue Oct 11 2022 - 13:23:40 EST


On Tue, Oct 11, 2022 at 10:16:03AM -0700, Yury Norov wrote:
> > Hi Yury,
> >
> > I just wanted to report that the warning fires when doing
> > 'cat /proc/cpuinfo' on at least x86 and riscv. I don't think
> > those are false positives. I'm guessing a patch should be
> > something like the following diff. If you haven't already
> > addressed this and I'm not off in left field, then I guess
> > we should integrate it into your series.
> >
> > Thanks,
> > drew
>
> Hi Andrew,
>
> Can you please send it as a patch with a description?

Also, can you describe why we'd silence the warning this way?
If the cpu number greater than nr_cpu_ids comes from upper layer,
we quite probably should investigate what happens there...

Thanks,
Yury