[Crash-utility] [hacklet] handle kernel > 5.12 rename of task_struct.state

HAGIO KAZUHITO(萩尾 一仁) k-hagio-ab at nec.com
Mon Jul 5 01:20:17 UTC 2021


> -----Original Message-----
> Greetings fellow crash users.  The hacklet below keeps crash working
> (for the nonce) into the 5.14 kernel cycle.  I doubt it's applicable (despite being kinda sorta disguised
> as a patch just in case;), but it should serve as a bandaid until the real deal comes along.
> 
> Handle kernel rename of task_struct.state to __state
> 
> Kernels post 5.13 renamed task->state to task->__state.  Check the
> validity of 'state', and upon failure, rashly presume that "__state"
> exists, and isn't going to change again any time soon.

Hi Mike,

Thanks for the patch.  but Alex also had addressed the same issue, and
this patch just got merged:
https://github.com/crash-utility/crash/commit/d6b4f36d6b22b70fb14e692f36d20910ef5563c1

Could you try this?

Thanks,
Kazu





More information about the Crash-utility mailing list