lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0B80F9D4116B2F4484E7279D5A66984F7A8A3A@dggemi524-mbx.china.huawei.com>
Date:   Thu, 1 Aug 2019 09:26:34 +0000
From:   chengzhihao <chengzhihao1@...wei.com>
To:     Richard Weinberger <richard@....at>
CC:     "zhangyi (F)" <yi.zhang@...wei.com>,
        linux-mtd <linux-mtd@...ts.infradead.org>,
        linux-kernel <linux-kernel@...r.kernel.org>
Subject: 答复: 答复: [PATCH RFC] ubi: ubi_wl_get_peb: Replace a limited number of attempts with polling while getting PEB

> You send this patch three times, I guess your mail setup has issues? :-)
Sorry, I thought I hadn't sent the first two e-mails. (The Patch work website refreshes slowly)

> Do you have numbers how many attempts were needed to get a free block?
I tested it dozens of times. The biggest number of attempts I've ever had so far is 6. In most cases, it only takes 2 or 3 times.

-----邮件原件-----
发件人: Richard Weinberger [mailto:richard@....at] 
发送时间: 2019年8月1日 17:21
收件人: chengzhihao <chengzhihao1@...wei.com>
抄送: zhangyi (F) <yi.zhang@...wei.com>; linux-mtd <linux-mtd@...ts.infradead.org>; linux-kernel <linux-kernel@...r.kernel.org>
主题: Re: 答复: [PATCH RFC] ubi: ubi_wl_get_peb: Replace a limited number of attempts with polling while getting PEB

----- Ursprüngliche Mail -----
> Von: "chengzhihao1" <chengzhihao1@...wei.com>
> An: "richard" <richard@....at>, "yi zhang" <yi.zhang@...wei.com>
> CC: "linux-mtd" <linux-mtd@...ts.infradead.org>, "linux-kernel" 
> <linux-kernel@...r.kernel.org>
> Gesendet: Donnerstag, 1. August 2019 11:13:20
> Betreff: 答复: [PATCH RFC] ubi: ubi_wl_get_peb: Replace a limited number 
> of attempts with polling while getting PEB

> I don't quite understand why a limited number of attempts have been 
> made to get a free PEB in ubi_wl_get_peb (in fastmap-wl.c). I proposed 
> this PATCH with reference to the implementation of ubi_wl_get_peb (in 
> wl.c). As far as I know, getting PEB by polling probably won't fall into soft-lockup.
> ubi_update_fastmap may add new tasks (including erase task or wl 
> taskk, wl tasks generally do not generate additional free PEBs) to 
> ubi->works, and produce_free_peb will eventually complete all tasks in 
> ubi->works or obtain an free PEB that can be filled into pool.

You send this patch three times, I guess your mail setup has issues? :-)
 
This is one of the darkest corners of Fastmap where things get messy.
The number of retry attempts was limited to avoid a live lock.

I agree that allowing only one retry is a little to few.
With nandsim, a small nand and a fast PC you can hit that.

Do you have numbers how many attempts were needed to get a free block?

Thanks,
//richard

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ