çå: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

From: chengzhihao
Date: Tue Aug 13 2019 - 21:20:36 EST


Sure, I'll do more tests on different machines to check the assertion. I'm trying to understand when this assertion will be triggered. Although I haven't found this assertion be triggered so far in several tests on x86_64(qemu).

-----éäåä-----
åää: Richard Weinberger [mailto:richard.weinberger@xxxxxxxxx]
åéæé: 2019å8æ14æ 5:44
æää: chengzhihao <chengzhihao1@xxxxxxxxxx>
æé: Richard Weinberger <richard@xxxxxx>; Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>; Artem Bityutskiy <dedekind1@xxxxxxxxx>; zhangyi (F) <yi.zhang@xxxxxxxxxx>; linux-mtd@xxxxxxxxxxxxxxxxxxx; LKML <linux-kernel@xxxxxxxxxxxxxxx>
äé: Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

On Tue, Jul 30, 2019 at 3:21 AM chengzhihao <chengzhihao1@xxxxxxxxxx> wrote:
>
> OK, that's fine, and I will continue to understand more implementation code related to this part.

I think we can go with the realloc() approach for now.
Can you please check whether the assert() triggers?

--
Thanks,
//richard