News for hackers. Stuff that matters.
Re:SSD will fail at 40k power-on hours (2021) by tyingq on Sunday July 10, 2022 @07:01PM (#32050076)
From a related issue with a different vendor:

"The fault fixed by the Dell EMC firmware concerns an Assert function which had a bad check to validate the value of a circular buffer’s index value. Instead of checking the maximum value as N, it checked for N-1. The fix corrects the assert check to use the maximum value as N."

https://www.anandtech.com/show/15673/dell-hpe-updates-for-40...

Why the MAX value would be in an circular buffer, or what was being stored in N-1? No idea.

Re:SSD will fail at 40k power-on hours (2021) by KMag on Sunday July 10, 2022 @10:36PM (#32051560)
From my reading, it's checking the maximum index into the circular buffer. That is, when it hits the end of the circular buffer, there's an assertion to check that they're properly wrapping the index back to the start of the buffer, but the assertion has an off-by-one error.

I presume you find a lot of circular buffers in SSD firmware, for wear-leveling reasons. Samsung's NILFS and NILFS2 are structured as circular buffer append-only logs, at least partly to avoid trusting the firmware wear-leveling.

Re:SSD will fail at 40k power-on hours (2021) by userbinator on Sunday July 10, 2022 @07:24PM (#32050267)
circular buffer

The infamous Seagate firmware bug was due to the same thing.