"BUG at kernel/entry/common.c:407!" on 5.10.133+

From: David Chen
Date: Mon Sep 26 2022 - 14:14:01 EST


Hi all,

On 5.10 branch starting from 5.10.133, if I do:

echo 1 > /proc/sys/kernel/stack_tracer_enabled

The system will lock up, and the console will keep spewing
"BUG at kernel/entry/common.c:407!" indefinitely.

I bisect this issue down to "c9eb5dc x86: Use return-thunk in asm code".
Though interestingly, when I tried this on 5.19.11 which also contains the
change, the issue didn't occur. Also this issue happens on both KVM guest and
Virtualbox guest. I'm not sure if this affects non-VM for not.

Any help is appreciated.

Thanks,
David