[Intel-wired-lan] [PATCH 000/141] Fix fall-through warnings for Clang
Gustavo A. R. Silva
gustavoars at kernel.org
Mon Nov 23 08:03:48 EST 2020
On Sun, Nov 22, 2020 at 11:53:55AM -0800, James Bottomley wrote:
> On Sun, 2020-11-22 at 11:22 -0800, Joe Perches wrote:
> > On Sun, 2020-11-22 at 11:12 -0800, James Bottomley wrote:
> > > On Sun, 2020-11-22 at 10:25 -0800, Joe Perches wrote:
> > > > On Sun, 2020-11-22 at 10:21 -0800, James Bottomley wrote:
> > > > > Please tell me our reward for all this effort isn't a single
> > > > > missing error print.
> > > >
> > > > There were quite literally dozens of logical defects found
> > > > by the fallthrough additions. Very few were logging only.
> > >
> > > So can you give us the best examples (or indeed all of them if
> > > someone is keeping score)? hopefully this isn't a US election
> > > situation ...
> >
> > Gustavo? Are you running for congress now?
> >
> > https://lwn.net/Articles/794944/
>
> That's 21 reported fixes of which about 50% seem to produce no change
> in code behaviour at all, a quarter seem to have no user visible effect
> with the remaining quarter producing unexpected errors on obscure
> configuration parameters, which is why no-one really noticed them
> before.
The really important point here is the number of bugs this has prevented
and will prevent in the future. See an example of this, below:
https://lore.kernel.org/linux-iio/20190813135802.GB27392@kroah.com/
This work is still relevant, even if the total number of issues/bugs
we find in the process is zero (which is not the case).
"The sucky thing about doing hard work to deploy hardening is that the
result is totally invisible by definition (things not happening) [..]"
- Dmitry Vyukov
Thanks
--
Gustavo
More information about the Linux-mediatek
mailing list