Linus is happy when people fix old bad code.πŸ˜ƒ #OSSummit

git.kernel.org/pub/scm/linux/… 🐧

In this thread I'll start documenting all the years-old bugs I find and fix across the whole kernel tree.
Bugfix for a 10-year-old bug in arch sh:

git.kernel.org/pub/scm/linux/… 🐧

This bug was introduced in November 2009.
Bugfix for an 8-year-old bug in USB:

git.kernel.org/pub/scm/linux/… 🐧

This bug was introduced in June 2011.
Bugfix for a 7-year-old bug in Radeon DRM:

git.kernel.org/pub/scm/linux/… 🐧

This bug was introduced in January 2012.
Bugfix for a 2-year-old bug in AMD DRM:

git.kernel.org/pub/scm/linux/… 🐧

This bug was introduced in April 2017.
Bugfix for a 7-year-old bug in perf test code:

git.kernel.org/pub/scm/linux/… 🐧

This bug was introduced in September 2012.
Bugfix for a 7-year-old bug in USB:

Bad bit shift operation:
git.kernel.org/pub/scm/linux/… 🐧

The bugfix has just landed in multiple stable trees:
lwn.net/Articles/80338… πŸ˜ƒ

This bug was introduced in April 2012.
Bugfix for a 12-year old bad-logic bug in MTD:

lore.kernel.org/linux-mtd/3fb0… 🐧

This bug was introduced in December 2008.
10-year old logically dead code in WLAN:

lore.kernel.org/lkml/202005052… 🐧

This code was introduced in March 2010. This issue was found thanks to the ongoing efforts to remove zero-length and one-element arrays from the kernel.
A 3 and a half years old out-of-bounds bug in CIFS:

lore.kernel.org/linux-hardenin… 🐧

It's been applied and will soon appear in stable:
git.samba.org/?p=sfrench/cif…

This bug was introduced in September 2017, and it was found thanks to the ongoing efforts to globally enable -Warray-bounds.
This bugfix has now been applied to 4 different -stable trees: Linux 5.10.15, 5.4.97, 4.19.175 and 4.14.221. πŸ§πŸ˜€

lwn.net/Articles/84556…

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Gustavo A. R. Silva

Gustavo A. R. Silva Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @embeddedgus

28 Jan 19
Taking a look into every fall-through warning is not the most glamorous and sexy thing. But the ongoing efforts to enabling -Wimplicit-fallthrough
keep paying off. :) lore.kernel.org/patchwork/patc…

This bug has been out there for almost two years.
Roses are red,
Violets are blue,
I'm almost done,
With the -Wimplicit-fallthrough πŸ’»πŸ”
Bugs, bugs, ancient bugs!
Another years-old bug found while working on the -Wimplicit-fallthrough stuff: lore.kernel.org/patchwork/patc…

This one was introduced in January 2012.
Read 37 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!