All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

A critical OpenZFS bug: how a trivial error caused devastating consequences

By

r4um

10mo ago· 6 min readenInsight

Summary

The article describes a critical bug discovered and fixed in OpenZFS, a popular filesystem. The bug involves a function that converts between allocated and physical sizes in the storage IO pipeline. The author explains that the bug was both trivial in nature and devastating in impact, potentially causing data corruption or system instability. The article also touches on how the bug was introduced by human error and discusses Rust's potential role in preventing such memory safety issues in systems programming.

Key quotes

· 3 pulled
Suffice to say, it is both trivial and devastating.
In OpenZFS, any single piece of data we write has three notions of 'size'
Take a moment to find it yourself, if you like.
Snippet from the RSS feed
A couple of weeks ago I fixed a nasty bug in this function in OpenZFS:

You might also wanna read