I've just sent my first pull-request to Linus. Fingers crossed!
https://lore.kernel.org/lkml/20190506180521.GA30749@embeddedor/ … 
-
-
"The C language allows switch cases to "fall through" when a "break" statement is missing at the end of a case. This, however, introduces ambiguity in the code, as it's not always clear if the missing break is intentional or a bug..."
https://www.kernel.org/doc/html/latest/process/deprecated.html#implicit-switch-case-fall-through …Pokaż ten wątek -
"One source of kernel bugs has been closed, a switch that can only be seen as a best-case scenario.".
https://lwn.net/SubscriberLink/794944/bcd5146584b7d32e/ …Pokaż ten wątek -
Friday night, casually building ARCH=sh for the first time, I found a 10-year-old bug thanks to -Wimplicit-fallthrough: https://lore.kernel.org/patchwork/patch/1113467/ …
This is the perfect way to officially start my weekend. Cheers!
Pokaż ten wątek -
Happy to see other people finding more bugs (this time in ARM64) thanks to -Wimplicit-fallthrough: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3d584a3c85d6fe2cf878f220d4ad7145e7f89218 …
This bug was introduced in December 2017. It's fixed in mainline now and will be applied to 4.17+ stable kernels, soon.Pokaż ten wątek -
This made my day: https://lore.kernel.org/linux-iio/20190813135802.GB27392@kroah.com/ …
Mission accomplished. :)Pokaż ten wątek -
Kernel CI build for yesterday's linux-next (next-20190820): https://lore.kernel.org/linux-next/5d5bd622.1c69fb81.27320.88e2@mx.google.com/ … 70 fall-through warnings. Today's linux-next (next-20190821): https://lore.kernel.org/linux-next/5d5d39eb.1c69fb81.caf30.632c@mx.google.com/ … 0 fall-through warnings on x86_64, i386, arm, arm64, mips, riscv, arc and sh.

Pokaż ten wątek -
And yet another years-old bug is still out there in the wild. Hopefully, the bugfix will make it to mainline and land in stable, soon: https://lore.kernel.org/lkml/20190909052952.GA32131@embeddedor/ …
This bug was introduced in 2015.
ARCH=powerpc
mpc83xx_defconfigPokaż ten wątek -
Happy to see this bugfix finally landing in mainline. It should be applied to multiple stable trees, soon: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fc194ea6d34dfad9833d3043ce41d6c52aff39a …
pic.twitter.com/UDBOvsFiGR
Pokaż ten wątek -
This bugfix has now been applied to stable trees 5.3.2, 5.2.18 and 4.19.76: https://lwn.net/Articles/801011/ …
pic.twitter.com/jPQtZEujmZ
Pokaż ten wątek -
As commented at
@KernelRecipes a couple of weeks ago, 'fallthrough' pseudo-keyword will replace all /* fallthrough */ markings. So, yeah, we are now forking C to make the kernel more secure.
https://lore.kernel.org/lkml/CAHk-=whOF8heTGz5tfzYUBp_UQQzSWNJ_50M7-ECXkfFRDQWFA@mail.gmail.com/ …
pic.twitter.com/pDB8OT8V8z
Pokaż ten wątek -
u-boot is about to globally enable -Wimplicit-fallthrough: https://lists.denx.de/pipermail/u-boot/2020-May/411614.html … and that's great news!
Pokaż ten wątek -
I don't think I've documented this fix for a "missing continue" bug in this thread before, so here I go: https://git.kernel.org/linus/2c930e3d0aed1505e86e0928d323df5027817740 …
The bug was introduced in August 2014 by commit
65c7843c942d0 ("usbtest: Add interrupt EP testcases").
The bugfix was applied to -stable in 2017.Pokaż ten wątek -
The bugfix mentioned above was part of a small series: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1369379.html …
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1369380.html …
At the time I was new to kernel development and I wasn't into the good practice of adding the "Fixes:" and "stable" tags to the changelog text.Pokaż ten wątek -
Another fix (I haven't documented before) for a bug that was found thanks to the efforts to enable -Wimplicit-fallthrough: "net: sched: cls_api: fix dead code in switch" https://git.kernel.org/linus/2ed9db3074fc …
pic.twitter.com/L9iH7rh087
Pokaż ten wątek
Koniec rozmowy
Nowa rozmowa -
Wydaje się, że ładowanie zajmuje dużo czasu.
Twitter jest przeciążony lub wystąpił chwilowy problem. Spróbuj ponownie lub sprawdź status Twittera, aby uzyskać więcej informacji.