public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* Bug in commit aa511ff8218b ("badblocks: switch to the improved badblock handling
@ 2023-12-22 18:31 Ira Weiny
  2023-12-22 18:57 ` Ira Weiny
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ira Weiny @ 2023-12-22 18:31 UTC (permalink / raw)
  To: Coly Li
  Cc: Dan Williams, Jens Axboe, Xiao Ni, Geliang Tang, Hannes Reinecke,
	NeilBrown, Vishal L Verma, linux-block, nvdimm, linux-kernel

Coly,

Yesterday I noticed that a few of our nvdimm tests were failing.  I bisected
the problem to the following commit.

aa511ff8218b ("badblocks: switch to the improved badblock handling code") 

Reverting this patch fixed our tests.

I've also dug into the code a bit and I believe the algorithm for
badblocks_check() is broken (not yet sure about the other calls).  At the
very least I see the bb->p pointer being indexed with '-1'.  :-(

I did notice that this work was due to a bug report in badblock_set().
Therefore, I'm not sure of that severity of that fix is vs a revert.  But
at this point I'm not seeing an easy fix so I'm in favor of a revert.

Thanks,
Ira

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-01-07  8:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-22 18:31 Bug in commit aa511ff8218b ("badblocks: switch to the improved badblock handling Ira Weiny
2023-12-22 18:57 ` Ira Weiny
2023-12-23  0:24   ` Ira Weiny
2023-12-23  9:39     ` Coly Li
2023-12-23 17:13       ` Ira Weiny
2023-12-24  0:18         ` Coly Li
2023-12-23  6:52 ` Coly Li
2023-12-23  8:35 ` Linux regression tracking #adding (Thorsten Leemhuis)
2024-01-07  8:48   ` Linux regression tracking #update (Thorsten Leemhuis)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox