Please apply:
db05ddf7f32 ("ipmi:watchdog: Set panic count to proper value on a panic to stable kernel")
to the stable branches from 5.4.x to 5.10.x.
It requires as a pre-requisite:
a01a89b1db ("ipmi/watchdog: replace atomic_add() and atomic_sub()")
This change went in to 5.16 and a backport war requested and put into 5.15. It was missed in the earlier kernels; it didn't apply because the prerequisite was missed. It fixes a lockup at panic time. I think distros have picked it up, but I had a user report this.
Thank you,
-corey