Sarah Sharp | 2c97a63 | 2013-04-13 18:40:55 -0700 | [diff] [blame] | 1 | Background |
| 2 | ========== |
| 3 | |
| 4 | The upstream Linux kernel maintainers only fix bugs for specific kernel |
| 5 | versions. Those versions include the current "release candidate" (or -rc) |
| 6 | kernel, any "stable" kernel versions, and any "long term" kernels. |
| 7 | |
| 8 | Please see https://www.kernel.org/ for a list of supported kernels. Any |
| 9 | kernel marked with [EOL] is "end of life" and will not have any fixes |
| 10 | backported to it. |
| 11 | |
| 12 | If you've found a bug on a kernel version isn't listed on kernel.org, |
| 13 | contact your Linux distribution or embedded vendor for support. |
| 14 | Alternatively, you can attempt to run one of the supported stable or -rc |
| 15 | kernels, and see if you can reproduce the bug on that. It's preferable |
| 16 | to reproduce the bug on the latest -rc kernel. |
| 17 | |
| 18 | |
| 19 | How to report Linux kernel bugs |
| 20 | =============================== |
| 21 | |
| 22 | |
Sarah Sharp | d60418b | 2013-04-13 17:44:55 -0700 | [diff] [blame] | 23 | Identify the problematic subsystem |
| 24 | ---------------------------------- |
| 25 | |
| 26 | Identifying which part of the Linux kernel might be causing your issue |
| 27 | increases your chances of getting your bug fixed. Simply posting to the |
| 28 | generic linux-kernel mailing list (LKML) may cause your bug report to be |
| 29 | lost in the noise of a mailing list that gets 1000+ emails a day. |
| 30 | |
| 31 | Instead, try to figure out which kernel subsystem is causing the issue, |
| 32 | and email that subsystem's maintainer and mailing list. If the subsystem |
| 33 | maintainer doesn't answer, then expand your scope to mailing lists like |
| 34 | LKML. |
| 35 | |
| 36 | |
| 37 | Identify who to notify |
| 38 | ---------------------- |
| 39 | |
| 40 | Once you know the subsystem that is causing the issue, you should send a |
| 41 | bug report. Some maintainers prefer bugs to be reported via bugzilla |
| 42 | (https://bugzilla.kernel.org), while others prefer that bugs be reported |
| 43 | via the subsystem mailing list. |
| 44 | |
| 45 | To find out where to send an emailed bug report, find your subsystem or |
| 46 | device driver in the MAINTAINERS file. Search in the file for relevant |
| 47 | entries, and send your bug report to the person(s) listed in the "M:" |
| 48 | lines, making sure to Cc the mailing list(s) in the "L:" lines. When the |
| 49 | maintainer replies to you, make sure to 'Reply-all' in order to keep the |
| 50 | public mailing list(s) in the email thread. |
| 51 | |
| 52 | If you know which driver is causing issues, you can pass one of the driver |
| 53 | files to the get_maintainer.pl script: |
| 54 | perl scripts/get_maintainer.pl -f <filename> |
| 55 | |
| 56 | If it is a security bug, please copy the Security Contact listed in the |
| 57 | MAINTAINERS file. They can help coordinate bugfix and disclosure. See |
| 58 | Documentation/SecurityBugs for more information. |
| 59 | |
| 60 | If you can't figure out which subsystem caused the issue, you should file |
| 61 | a bug in kernel.org bugzilla and send email to |
| 62 | linux-kernel@vger.kernel.org, referencing the bugzilla URL. (For more |
| 63 | information on the linux-kernel mailing list see |
| 64 | http://www.tux.org/lkml/). |
| 65 | |
| 66 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | [Some of this is taken from Frohwalt Egerer's original linux-kernel FAQ] |
| 68 | |
Sarah Sharp | 7883a25 | 2013-04-13 19:11:26 -0700 | [diff] [blame] | 69 | Gather information |
| 70 | ------------------ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | |
Sarah Sharp | 7883a25 | 2013-04-13 19:11:26 -0700 | [diff] [blame] | 72 | The most important information in a bug report is how to reproduce the |
| 73 | bug. This includes system information, and (most importantly) |
| 74 | step-by-step instructions for how a user can trigger the bug. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 75 | |
Sarah Sharp | 7883a25 | 2013-04-13 19:11:26 -0700 | [diff] [blame] | 76 | If the failure includes an "OOPS:", take a picture of the screen, capture |
| 77 | a netconsole trace, or type the message from your screen into the bug |
| 78 | report. Please read "Documentation/oops-tracing.txt" before posting your |
| 79 | bug report. This explains what you should do with the "Oops" information |
| 80 | to make it useful to the recipient. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 81 | |
Sarah Sharp | 7883a25 | 2013-04-13 19:11:26 -0700 | [diff] [blame] | 82 | This is a suggested format for a bug report sent via email or bugzilla. |
| 83 | Having a standardized bug report form makes it easier for you not to |
Tobias Klauser | 9dcbb32 | 2005-09-10 00:26:58 -0700 | [diff] [blame] | 84 | overlook things, and easier for the developers to find the pieces of |
Sarah Sharp | 7883a25 | 2013-04-13 19:11:26 -0700 | [diff] [blame] | 85 | information they're really interested in. If some information is not |
| 86 | relevant to your bug, feel free to exclude it. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 87 | |
Sarah Sharp | 3b12c21 | 2013-04-13 17:55:18 -0700 | [diff] [blame] | 88 | First run the ver_linux script included as scripts/ver_linux, which |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | reports the version of some important subsystems. Run this script with |
| 90 | the command "sh scripts/ver_linux". |
| 91 | |
| 92 | Use that information to fill in all fields of the bug report form, and |
| 93 | post it to the mailing list with a subject of "PROBLEM: <one line |
Tobias Klauser | 9dcbb32 | 2005-09-10 00:26:58 -0700 | [diff] [blame] | 94 | summary from [1.]>" for easy identification by the developers. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 95 | |
Tobias Klauser | 9dcbb32 | 2005-09-10 00:26:58 -0700 | [diff] [blame] | 96 | [1.] One line summary of the problem: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | [2.] Full description of the problem/report: |
| 98 | [3.] Keywords (i.e., modules, networking, kernel): |
Randy Dunlap | 4e229be | 2006-12-06 20:39:14 -0800 | [diff] [blame] | 99 | [4.] Kernel information |
| 100 | [4.1.] Kernel version (from /proc/version): |
| 101 | [4.2.] Kernel .config file: |
Andrew Morton | 30e835e | 2005-08-05 11:59:32 -0700 | [diff] [blame] | 102 | [5.] Most recent kernel version which did not have the bug: |
| 103 | [6.] Output of Oops.. message (if applicable) with symbolic information |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 104 | resolved (see Documentation/oops-tracing.txt) |
Andrew Morton | 30e835e | 2005-08-05 11:59:32 -0700 | [diff] [blame] | 105 | [7.] A small shell script or example program which triggers the |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 106 | problem (if possible) |
Andrew Morton | 30e835e | 2005-08-05 11:59:32 -0700 | [diff] [blame] | 107 | [8.] Environment |
| 108 | [8.1.] Software (add the output of the ver_linux script here) |
| 109 | [8.2.] Processor information (from /proc/cpuinfo): |
| 110 | [8.3.] Module information (from /proc/modules): |
| 111 | [8.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem) |
| 112 | [8.5.] PCI information ('lspci -vvv' as root) |
| 113 | [8.6.] SCSI information (from /proc/scsi/scsi) |
| 114 | [8.7.] Other information that might be relevant to the problem |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 115 | (please look in /proc and include all information that you |
| 116 | think to be relevant): |
| 117 | [X.] Other notes, patches, fixes, workarounds: |
| 118 | |
| 119 | |
Sarah Sharp | bc6bed4 | 2013-04-13 19:30:48 -0700 | [diff] [blame^] | 120 | Follow up |
| 121 | ========= |
| 122 | |
| 123 | Expectations for bug reporters |
| 124 | ------------------------------ |
| 125 | |
| 126 | Linux kernel maintainers expect bug reporters to be able to follow up on |
| 127 | bug reports. That may include running new tests, applying patches, |
| 128 | recompiling your kernel, and/or re-triggering your bug. The most |
| 129 | frustrating thing for maintainers is for someone to report a bug, and then |
| 130 | never follow up on a request to try out a fix. |
| 131 | |
| 132 | That said, it's still useful for a kernel maintainer to know a bug exists |
| 133 | on a supported kernel, even if you can't follow up with retests. Follow |
| 134 | up reports, such as replying to the email thread with "I tried the latest |
| 135 | kernel and I can't reproduce my bug anymore" are also helpful, because |
| 136 | maintainers have to assume silence means things are still broken. |
| 137 | |
| 138 | Expectations for kernel maintainers |
| 139 | ----------------------------------- |
| 140 | |
| 141 | Linux kernel maintainers are busy, overworked human beings. Some times |
| 142 | they may not be able to address your bug in a day, a week, or two weeks. |
| 143 | If they don't answer your email, they may be on vacation, or at a Linux |
| 144 | conference. Check the conference schedule at LWN.net for more info: |
| 145 | https://lwn.net/Calendar/ |
| 146 | |
| 147 | In general, kernel maintainers take 1 to 5 business days to respond to |
| 148 | bugs. The majority of kernel maintainers are employed to work on the |
| 149 | kernel, and they may not work on the weekends. Maintainers are scattered |
| 150 | around the world, and they may not work in your time zone. Unless you |
| 151 | have a high priority bug, please wait at least a week after the first bug |
| 152 | report before sending the maintainer a reminder email. |
| 153 | |
| 154 | The exceptions to this rule are regressions, kernel crashes, security holes, |
| 155 | or userspace breakage caused by new kernel behavior. Those bugs should be |
| 156 | addressed by the maintainers ASAP. If you suspect a maintainer is not |
| 157 | responding to these types of bugs in a timely manner (especially during a |
| 158 | merge window), escalate the bug to LKML and Linus Torvalds. |
| 159 | |
| 160 | Thank you! |