Re: 5.7.0 / BUG: kernel NULL pointer dereference / setup_cpu_watcher

From: Christian Kujau
Date: Fri Jun 05 2020 - 14:02:50 EST


On Fri, 5 Jun 2020, JÃrgen Groà wrote:
> Do you happen to start the guest with vcpus < maxvcpus?

Indeed, I was booting with vcpus=2, maxvcpus=4. Setting both to the same
value made the domU boot.

> If yes there is already a patch pending for 5.8:
> https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git/commit/?h=for-linus-5.8&id=c54b071c192dfe8061336f650ceaf358e6386e0b

Applied that manually and now the system boots even with vcpus < maxvcpus.
So, if this still matters:

Tested-by: Christian Kujau <lists@xxxxxxxxxxxxxxx>

Thank you for your response, and the fix!

Christian.
--
BOFH excuse #146:

Communications satellite used by the military for star wars.