Re: [PATCH] powerpc/vdso: Fix vdso cpu truncation

2020-07-16 Thread Michael Ellerman
On Thu, 16 Jul 2020 09:37:04 +1000, Anton Blanchard wrote: > The code in vdso_cpu_init that exposes the cpu and numa node to > userspace via SPRG_VDSO incorrctly masks the cpu to 12 bits. This means > that any kernel running on a box with more than 4096 threads (NR_CPUS > advertises a limit of of

[PATCH] powerpc/vdso: Fix vdso cpu truncation

2020-07-15 Thread Anton Blanchard
From: Milton Miller The code in vdso_cpu_init that exposes the cpu and numa node to userspace via SPRG_VDSO incorrctly masks the cpu to 12 bits. This means that any kernel running on a box with more than 4096 threads (NR_CPUS advertises a limit of of 8192 cpus) would expose userspace to two cpu