git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Reporting bugs and bisection

From
AVAl Viro <viro@zeniv.linux.org.uk>
Date
Apr 14, 2008, 07:23 UTC
Message-ID
<20080414072328.GW9785@ZenIV.linux.org.uk>
In-Reply-To
<20080413232441.e216a02c.akpm@linux-foundation.org>
On Sun, Apr 13, 2008 at 11:24:41PM -0700, Andrew Morton wrote:
Show 7 quoted lines
> No.  The problem we're discussing here is the apparently-large number of
> bugs which are in the kernel, the apparently-large number of new bugs which
> we're adding to the kernel, and our apparent tardiness in addressing them.
> 
> Do you agree with these impressions, or not?
> 
> If you do agree, what would you propose we do about it?

In addition to obvious "we need testing and something better than bugzilla to keep track of bugs"? Real review of code in tree and patches getting into the tree.

And the latter part _must_ be done on each entry point. Any git tree that acts as injection point really needs a working mechanism of some sort that would do that; afterwards it's too late, since review of the stuff getting into mainline on a massive merge is sadly impractical.

I don't know any formal mechanism that could take care of that; no more than making sure that no backdoors are injected into the tree. It really has to be a matter of trust for tree maintainers and community around the subsystem.

Git is damn good at killing the merge bottleneck. Too good, since it hides the review bottleneck. And we get equivalents of self-selected communities that had been problem for "here's our CVS, here's monthly dump from it, apply" kind of setups. It _is_ better, since one can get to commit history (modulo interesting issues with merge nodes and conflict resolution). But in practice it's not good enough - the patches going in during a merge (especially for a tree that collects from secondaries) are not visible enough. And it's too late at that point, since one has to do something monumentally ugly to get Linus revert a large merge. On the scale of Great IDE Mess in 2.5...

linux-next might help with the last part, but I don't think it really deals with the first one. It certainly helps to some extent, but...

We need higher S/N on l-k. We need people looking into the subsystem trees as those grow and causing a stench when bad things are found, with design issues getting brought to l-k if nothing else helps. We need tree maintainers understanding that review, including out-of-community one, is needed (the need of testing is generally better understood - I _hope_).

We need more people reading the fscking source. Subsystem by subsystem. Without assumption that code is not broken. With mechanism collating the questions asked and answers given. Ideally we need growing documentation of core subsystems and data structures, with explicit goal of helping reviewers new to an area to find their way around it. And yes, I'm guilty of procrastinating on that - several half-finished pieces on VFS-related stuff are sitting locally ;-/

We need gregkh to get real and stop assuming that two Signed-off-by are equivalent to "reviewed at least twice", while we are at it ;-)

We need people to realize that warnings are useful as triage tools - not as "Ug see warning. Warning bad. Ug fix that line. Warning go away. Ug changeset count grow. Ug happy.", but as machine-assisted part of finding confused areas of code. With human combining signals from different warnings to get statistically useful triage strategies (note that aforementioned making gcc/sparse/whatnot to STFU by local change has a lovely potential of distorting those signals and actually _hiding_ crap code).

Maybe we need a list a-la linux-arch for tree maintainers to coordinate stuff - obviously open not only for those.

We really need to get around to doing triage of remaining stuff in -mm, BTW - again, guilty for not getting through such on VFS-related stuff in there. Hopefully linux-next trees will eventually vacuum most of the pile in...

As for the bug that got this thread started... I'd say that asking to bisect was reasonable in this particular case. The following DSW mixed into the thread very soon went the way of all DSW (OK, it hadn't godwinated yet, at least in the parts I've seen, so there's still way to go, but...)

Previous: David MillerNext: Al Viro
Message 8 of 66 in “Re: Reporting bugs and bisection”
  1. david@lang.hmApr 13, 2008
  2. Jakub NarebskiApr 14, 2008
  3. Willy TarreauApr 14, 2008
  4. Al ViroApr 14, 2008
  5. Andrew MortonApr 14, 2008
  6. David MillerApr 14, 2008
  7. David MillerApr 14, 2008
  8. Al ViroApr 14, 2008
  9. Al ViroApr 14, 2008
  10. Andrew MortonApr 14, 2008
  11. David MillerApr 14, 2008
  12. Christoph HellwigApr 14, 2008
  13. Andi KleenApr 14, 2008
  14. Bill FinkApr 15, 2008
  15. Andrew MortonApr 14, 2008
  16. David MillerApr 14, 2008
  17. Roman ShaposhnikApr 14, 2008
  18. Adrian BunkApr 14, 2008
  19. Arjan van de VenApr 14, 2008
  20. Andrew MortonApr 14, 2008
  21. Arjan van de VenApr 14, 2008
  22. Ilpo JärvinenApr 14, 2008
  23. James MorrisApr 14, 2008
  24. David MillerApr 14, 2008
  25. Andrew MortonApr 14, 2008
  26. Willy TarreauApr 15, 2008
  27. Work WAS(Re: Reporting bugs and bisectionjamal, Apr 15, 2008
  28. David NewallApr 15, 2008
  29. Michael KerriskApr 15, 2008
  30. David NewallApr 15, 2008
  31. Rafael J. WysockiApr 15, 2008
  32. David NewallApr 16, 2008
  33. david@lang.hmApr 16, 2008
  34. David NewallApr 16, 2008
  35. Andi KleenApr 16, 2008
  36. Stephen ClarkApr 16, 2008
  37. Willy TarreauApr 16, 2008
  38. Rafael J. WysockiApr 16, 2008
  39. Sverre RabbelierApr 16, 2008
  40. Adrian BunkApr 16, 2008
  41. Andrew MortonApr 16, 2008
  42. Sverre RabbelierApr 16, 2008
  43. Adrian BunkApr 16, 2008
  44. J. Bruce FieldsApr 17, 2008
  45. Adrian BunkApr 17, 2008
  46. Alexey DobriyanApr 16, 2008
  47. Arjan van de VenApr 16, 2008
  48. Sverre RabbelierApr 16, 2008
  49. Adrian BunkApr 16, 2008
  50. Adrian BunkApr 16, 2008
  51. Sverre RabbelierApr 16, 2008
  52. Adrian BunkApr 16, 2008
  53. Willy TarreauApr 16, 2008
  54. Jakub NarebskiApr 16, 2008
  55. Jesper JuhlApr 16, 2008
  56. David NewallApr 17, 2008
  57. Rafael J. WysockiApr 17, 2008
  58. Ray LeeApr 17, 2008
  59. Sverre RabbelierApr 17, 2008
  60. Al ViroApr 17, 2008
  61. Ray LeeApr 17, 2008
  62. Al ViroApr 17, 2008
  63. Ray LeeApr 17, 2008
  64. Rene HermanApr 14, 2008
  65. Andrew MortonApr 14, 2008
  66. Rene HermanApr 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.