|
|
Log in / Subscribe / Register

A tale of two data-corruption bugs

A tale of two data-corruption bugs

Posted May 28, 2015 23:28 UTC (Thu) by lacos (guest, #70616)
Parent article: A tale of two data-corruption bugs

I've just made three stunning discoveries.

(1) In all of the above discussion about "how this divmod interface should look like", noone mentions that the standard C library provides div(), ldiv(), lldiv(), and imaxdiv(), all of which return small *structures*. Obviously the kernel doesn't use the standard C library, but for the same functionality, the interface should be the same, preferably.

(2) So we have three commits here:

* 20d0189b1012 -- original commit. Introduces the original bug. Seven people on CC, no Acked-by or Reviewed-by tags. Whoever the maintainer was just pulled / applied the patch without reviews from the community.

* 47d68979cc96 -- first fix. Replaces the original bug with another bug. No Acked-by or Reviewed-by tags.

* a81157768a00 -- fix to the fix. Supposed to solve the most recent bug. Surprise: no Acked-by or Reviewed-by tags. Notice a pattern?

The QEMU community has a policy that *no patch is applied* until it gets at least one Reviewed-by. Edk2 (EFI Development Kit II) follows the same policy.

(3) Icing on the cake: the article states that the latest fix was written by Eric Work. Indeed the "author" metadata field on a81157768a00 carries his name. But, that's not enough. The primary / first author should always be named by the first Signed-off-by tag in the commit message. Reviewers and/or the maintainer should have immediately pointed out that Eric's S-o-b was missing from his patch email.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds