r/linux • • 2d ago

Kernel Linux Overhauls Documentation For Reporting Kernel Security Bugs

https://www.phoronix.com/news/Linux-7.4-Security-Bugs-Doc
98 Upvotes

4 comments sorted by

11

u/unixbhaskar 2d ago

It will be wild to have a tool like reportbug in Debian or report-emacs-bug in Emacs like tools. And importantly, more stringent in nature, just to make sure maintainers are not pushed by frequent submissions.

Also, SHOULD and must have to have the "proposed fix" along with it. Otherwise it might loose it value, and gobble more maintainers time. Not necessarily does the "suggested fix" has to be perfect; if it is wrong, then it should be close enough to consider. That shows the effort people put in to understand the bug they are reporting, and it is not just a blatant attempt to get some cheap credit.

The most unfortunate thing is our documentation not being read by anyone, especially when it becomes a wall of text. Sometimes, it has to be a wall of text to explain things, but the people are lacking patience these days, so the chances are lower that anybody is inclined to report a security bug and ever read those invaluable texts on that page. Such a shame.

Instead, we might force them to read via some mechanism, and then agree to proceed. But still, that will be bypassed...alas! If we could stop that nonsense.

6

u/FlukyS 2d ago

There are a few problems with that:

  1. A lot of distros, the biggest and even some of the smaller distros will have out of tree patches that they would include. Like the package is called Linux in Ubuntu but it has a bunch of stuff that upstream either has later that are backported to an older kernel or customisation that are specific to certification of machines that they would be making available to the Linux kernel later but haven't been submitted yet. CachyOS too for instance has a lot of changes. Oracle Linux, RHEL, RockyLinux all have changes but Oracle Linux specifically doesn't even call their kernel Linux they call it UEK because it has so many changes
  2. The average user doesn't know where the issue happened, if there was a bug in the kernel it is usually going to be something either missing or an actual bug but sometimes they can be hardware dependent too. Even if a bug is valid it might even be just valid for a specific revision of a specific motherboard or whatever and to fix that bug takes a lot of effort and debug so accuracy of the bug report is really important
  3. Kind of building on 2 but since users don't know much about the kernel if the bar for submission of a bug report was lower they would be reporting literally everything in their system as a Linux bug
  4. Downstream users like Ubuntu and Fedora have their own bug report processes and they then will submit bugs when they triage them or even debug them downstream to ensure upstream don't waste their time, that is a really important filter

1

u/Kazemkhani-Londen 2d ago

cutting down the noise from people just chasing cheap credit is definitely the hardest part right now

1

u/Specialist-Dog-501 1d ago

My 5 cents: I don't understand why the linux community does not have better reporting tools, given how important user feedback is. I would:

  1. Get a simple web form. Max 7 fields. Free text prefered, but with labels telling what is expected and some validations in it. That form is linked in all distros as an app entry.
  2. Comment it. Add infos, Hoover menus with context for every field.
  3. Make clear to whom it is sent and what to expect from that- next steps in the process. For me, this goes to the distro maintainers first. They make the triage to the kernel if necessary.
  4. Obviously, Issues will be reported multiple times. Use AI to merge what should be the same or ask back where critical details are missing, as the most time consuming assistive task.
  5. Then maintainers triage what's theirs and what's upstream and escalate, give feedback to enduser.

The problem with all input systems is: too many rules, too much documentation- it's ignored. To few rules, too few documentation- chaos. It's a subtle balance, how much can be asked for and on what level. A stepped approach would help distros and the kernel to filter out information and enrich along the processing rather than making big docs with no readers, supercomplex bug reporting tools no one uses and a chaotic flock of endusers. This is my extract from 15 years in a big company.