[Crash-utility] [PATCH] ppc64: still allow to move on if the emergency stacks info fails to initialize

lijiang lijiang at redhat.com
Mon Oct 10 02:41:48 UTC 2022


On Mon, Oct 10, 2022 at 10:16 AM lijiang <lijiang at redhat.com> wrote:

> On Mon, Oct 10, 2022 at 9:23 AM Kazuhito Hagio <kazuhito.hagio at gmail.com>
> wrote:
>
>> On Sat, Oct 8, 2022 at 12:27 PM lijiang <lijiang at redhat.com> wrote:
>>
>> >> --- a/ppc64.c
>> >> +++ b/ppc64.c
>> >> @@ -1947,7 +1947,7 @@ ppc64_in_emergency_stack(int cpu, ulong addr,
>> bool verbose)
>> >>          if (cpu < 0  || cpu >= kt->cpus)
>> >>                  return NONE_STACK;
>> >>
>> >> -       if (ms->emergency_sp) {
>> >> +       if (ms->emergency_sp && ms->emergency_sp[cpu]) {
>> >
>> >
>> > Is it better to use the IS_KVADDR(ms->emergency_sp[cpu]) ? For example:
>> >
>> > +       if (ms->emergency_sp && IS_KVADDR(ms->emergency_sp[cpu]) ) {
>>
>> Yes, looks better.  Please go ahead with this.
>>
>>
> Thanks. Applied.
>
>
> https://github.com/crash-utility/crash/commit/487551488b15fcd135b29990593699a121730219
>
>

Ah, I forgot to add the "Fixes Tag ". Sorry.

Lianbo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20221010/d41a51d1/attachment.htm>


More information about the Crash-utility mailing list