[6.0-rc1] Kernel crash while running MCE tests

Ganesh ganeshgr at linux.ibm.com
Mon Aug 22 16:10:47 AEST 2022


On 8/22/22 11:19, Michael Ellerman wrote:

>>> So I guess the compiler has decided not to inline it (why?!), and it is
>>> not marked noinstr, so it gets KASAN instrumentation which crashes in
>>> real mode.
>>>
>>> We'll have to make sure everything get_pseries_errorlog() is either
>>> forced inline, or marked noinstr.
>> Making the following functions always_inline and noinstr is fixing the issue.
>> __always_inline pseries_errorlog_id()
>> __always_inline pseries_errorlog_length()
>> __always_inline do_enter_rtas()
>> __always_inline srr_regs_clobbered()
>> noinstr va_rtas_call_unlocked()
> Why do we need it? Because of fwnmi_release_errinfo()?

Yes.

>> Shall I post the patch?
> Yeah.
>
> cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20220822/d54c280f/attachment-0001.htm>


More information about the Linuxppc-dev mailing list