On 6/21/2018 4:17 PM, Dave Anderson wrote: > > > ----- Original Message ----- >> Hi Dave, >> >> I'm faced with abort in "kmem -i" command with some vmcores >> and looking into it, but I haven't found the cause so far. >> Could you possibly take a look at this issue? >> >> I attached the abort log. I can send you the core and vmcore. >> >> Depending on execution, the occurrences vary. >> >> * abort, <segmentation violation in gdb>, or no problem >> * If not reproduced with interactive "crash> kmem -i", you may >> reproduce it with "echo 'kmem -i' | crash vmlinux vmcore". >> * observed in "kmem -V" and "kmem -z" as well >> * also observed on i686 with kernel 4.14 vmcore >> * latest crash (1926150e) >> >> Thanks, >> Kazu > > Hi Kazu, > > I'm not clear on why it always generates the SIGSEGV when the kmem > command is piped directly into crash, whereas it rarely happens when > running the command interactively. > > But anyway, as it turns out, there is a 1-byte buffer overflow in > vm_stat_init() that has always been there. > > Can you try the attached patch? Thank you for the patch! I confirmed that the fault is not reproduced with this patch on the systems where it has occurred. Thanks! Kazu > > Thanks, > Dave > > > > -- > Crash-utility mailing list > Crash-utility@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/crash-utility > -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility