Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-10-18 Thread Zhihao Cheng
Can the current modification method be confirmed? 在 2019/9/16 6:00, Richard Weinberger 写道: > I need to give this another thought

Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-09-15 Thread Zhihao Cheng
在 2019/9/16 6:00, Richard Weinberger 写道: > On Fri, Aug 16, 2019 at 10:01 AM chengzhihao wrote: >> >>> ubifs_assert(c, p < c->gap_lebs + c->lst.idx_lebs); >> >> I've done 50 problem reproduces on different flash devices and made sure >> that the assertion was not triggered. See record.txt for

Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-09-15 Thread Richard Weinberger
On Fri, Aug 16, 2019 at 10:01 AM chengzhihao wrote: > > > ubifs_assert(c, p < c->gap_lebs + c->lst.idx_lebs); > > I've done 50 problem reproduces on different flash devices and made sure that > the assertion was not triggered. See record.txt for details. Thanks for letting me know. :) I need

答复: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-08-16 Thread chengzhihao
抄送: Richard Weinberger ; Sascha Hauer ; Artem Bityutskiy ; zhangyi (F) ; linux-...@lists.infradead.org; LKML 主题: 答复: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps Sure, I'll do more tests on different machines to check the assertion. I'm trying to understand when th

答复: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-08-13 Thread chengzhihao
...@gmail.com] 发送时间: 2019年8月14日 5:44 收件人: chengzhihao 抄送: Richard Weinberger ; Sascha Hauer ; Artem Bityutskiy ; zhangyi (F) ; linux-...@lists.infradead.org; LKML 主题: Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps On Tue, Jul 30, 2019 at 3:21 AM chengzhihao wrote: > &

Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-08-13 Thread Richard Weinberger
On Tue, Jul 30, 2019 at 3:21 AM chengzhihao 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

答复: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-07-29 Thread chengzhihao
Bityutskiy ; zhangyi (F) ; linux-...@lists.infradead.org; LKML 主题: Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps On Sat, Jul 20, 2019 at 8:00 AM Zhihao Cheng wrote: > > Running stress-test test_2 in mtd-utils on ubi device, sometimes we > can get following oops message:

Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-07-29 Thread Richard Weinberger
On Mon, Jul 29, 2019 at 6:51 PM Richard Weinberger wrote: > > - ubifs_assert(c, p < c->gap_lebs + c->lst.idx_lebs); > > + ubifs_assert(c, p < c->lst.idx_lebs); I wonder, doesn't this assert trigger too? -- Thanks, //richard

Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-07-29 Thread Richard Weinberger
On Sat, Jul 20, 2019 at 8:00 AM Zhihao Cheng wrote: > > Running stress-test test_2 in mtd-utils on ubi device, sometimes we can > get following oops message: > > BUG: unable to handle page fault for address: 0140 > #PF: supervisor read access in kernel mode > #PF:

Re: 答复: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-07-27 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "chengzhihao1" > An: "richard" , "Sascha Hauer" , > "Artem Bityutskiy" , "yi > zhang" > CC: "linux-mtd" , "linux-kernel" > > Gesendet: Samstag, 27. Juli 2019 13:09

答复: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-07-27 Thread chengzhihao
ping -邮件原件- 发件人: chengzhihao 发送时间: 2019年7月20日 14:05 收件人: rich...@nod.at; s.ha...@pengutronix.de; dedeki...@gmail.com; zhangyi (F) 抄送: linux-...@lists.infradead.org; linux-kernel@vger.kernel.org; chengzhihao 主题: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps Running

[PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-07-20 Thread Zhihao Cheng
Running stress-test test_2 in mtd-utils on ubi device, sometimes we can get following oops message: BUG: unable to handle page fault for address: 0140 #PF: supervisor read access in kernel mode #PF: error_code(0x) - not-present page PGD 280a067 P4D 280a067 PUD 0 Oops:

[PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-07-19 Thread Zhihao
From: Zhihao Cheng Running stress-test test_2 in mtd-utils on ubi device, sometimes we can get follwing oops message: BUG: unable to handle page fault for address: 0140 #PF: supervisor read access in kernel mode #PF: error_code(0x) - not-present page PGD 280a067 P4D