<div dir="ltr"><div dir="ltr">On Mon, Dec 26, 2022 at 12:42 PM HAGIO KAZUHITO(萩尾 一仁) <<a href="mailto:k-hagio-ab@nec.com">k-hagio-ab@nec.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2022/12/22 16:50, lijiang wrote:<br>
> After applying the patch, I got another error based on the latest kernel<br>
> commit 9d2f6060fe4c3b49d0cdc1dce1c99296f33379c8:<br>
> <br>
>   crash> kmem -S filp<br>
> CACHE             OBJSIZE  ALLOCATED     TOTAL  SLABS  SSIZE  NAME<br>
> ffff9d80c030a100      232       1125      3936    123     8k  filp<br>
> CPU 0 KMEM_CACHE_CPU:<br>
>    ffff9d81e7a38470<br>
> CPU 0 SLAB:<br>
>    SLAB              MEMORY            NODE  TOTAL  ALLOCATED  FREE<br>
>    fffff0f3841a7700  ffff9d80c69dc000     0     32         10    22<br>
>    FREE / [ALLOCATED]<br>
> kmem: filp: slab: fffff0f3841a7700 invalid freepointer: 4404c55079ecb7fe<br>
> CPU 1 KMEM_CACHE_CPU:<br>
>    ffff9d81e7a78470<br>
> CPU 1 SLAB:<br>
>    SLAB              MEMORY            NODE  TOTAL  ALLOCATED  FREE<br>
>    fffff0f38446a600  ffff9d80d1a98000     0     32          0    32<br>
>    FREE / [ALLOCATED]<br>
> ...<br>
> <br>
> And this issue can not always be reproduced, I have tested it more than ten<br>
> times, the above error can be observed on my side, maybe one or two times.<br>
> <br>
> But anyway, I'm curious if this is another issue. Could you please also<br>
> double check it?<br>
<br>
Thank you for testing.<br>
<br>
I have not reproduced it with kdump, but did it with live system when<br>
repeating this:<br>
<br>
crash> kmem -S > /tmp/kmem-S<br>
crash> kmem -S > /tmp/kmem-S<br>
...<br>
crash> kmem -S > /tmp/kmem-S<br>
kmem: kmalloc-16: slab: ffffdb3bc440bcc0 invalid freepointer: d3ec64863a077e7c<br>
<br>
As you say, it does not always happen, so it will be a timing issue or<br>
corner case.  Maybe there was a change in managing freepointer list,<br>
but so far I'm not sure what the cause is.<br>
<br></blockquote><div><br></div><div>Theoretically, this issue can also be reproduced on kdump at a certain time point.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Anyway, I think it's not due to the offset change of slab.slab_list and<br>
not the same issue.  Can we apply this and look into it later?<br>
<br></blockquote><div><br></div><div>Yes, I agree that it might be another issue. Let's leave it there.</div><div>For the patch: Ack.</div><div> </div><div>Thanks.</div><div>Lianbo</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks,<br>
Kazu<br>
</blockquote></div></div>