On Wed, Mar 17, 2021 at 05:14:05PM +0000, Stefan Riedmüller wrote: > Hi Sascha, > > On Wed, 2021-03-17 at 10:41 +0100, Sascha Hauer wrote: > > Hi Stefan, > > > > On Tue, Mar 16, 2021 at 01:36:26PM +0100, Stefan Riedmueller wrote: > > > The blocks containing the bad block table can become bad as well. So > > > make sure to skip any blocks that are marked bad when searching for the > > > bad block table. > > > > The file is a more or less direct copy from the kernel. Does the problem > > exist in the kernel as well? > > From my point of view I would say yes. I have just made a small test Issue is > shown in the kernel as well. It is a very raw case where two BBT blocks need > to be worn out but on the other hand this fix should not have that much of an > impact. > > I will send a similar patch to the kernel. I'd like to delay this one until it is accepted in the kernel. I do not fully understand the consequences of this patch, but hopefully on the mtd list there is someone. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox