diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-02 17:45:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-02 17:45:11 -0400 |
commit | a9586d9be812be4a0046ad4d312b013e587607cb (patch) | |
tree | 5bddd06a10a97c88c836e88e57dcc2d7005356c0 | |
parent | a8bdf745126593308927dfa264d3d2158338a148 (diff) | |
parent | b7ca36ae3bdd1d8e336ee76f06d7aa4b0af84959 (diff) |
Merge tag 'for-linus-docs-2012-05-02' of git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci
Pull ReportingBugs rewrite from Sarah Sharp:
"Here are the updates to ReportingBugs that were discussed and acked a
couple weeks ago. I've updated the fifth patch with your ack, as
requested"
* tag 'for-linus-docs-2012-05-02' of git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci:
Docs: Move ref to Frohwalt Egerer to end of REPORTING-BUGS
Docs: Add a tips section to REPORTING-BUGS.
Docs: Expectations for bug reporters and maintainers
Docs: Add info on supported kernels to REPORTING-BUGS.
Docs: Add "Gather info" section to REPORTING-BUGS.
Docs: Step-by-step directions for reporting bugs.
Trivial: docs: Remove six-space indentation in REPORTING-BUGS.
-rw-r--r-- | REPORTING-BUGS | 162 |
1 files changed, 134 insertions, 28 deletions
diff --git a/REPORTING-BUGS b/REPORTING-BUGS index 55a6074ccbb7..0cb8cdfa63bc 100644 --- a/REPORTING-BUGS +++ b/REPORTING-BUGS | |||
@@ -1,39 +1,103 @@ | |||
1 | [Some of this is taken from Frohwalt Egerer's original linux-kernel FAQ] | 1 | Background |
2 | ========== | ||
2 | 3 | ||
3 | What follows is a suggested procedure for reporting Linux bugs. You | 4 | The upstream Linux kernel maintainers only fix bugs for specific kernel |
4 | aren't obliged to use the bug reporting format, it is provided as a guide | 5 | versions. Those versions include the current "release candidate" (or -rc) |
5 | to the kind of information that can be useful to developers - no more. | 6 | kernel, any "stable" kernel versions, and any "long term" kernels. |
6 | 7 | ||
7 | If the failure includes an "OOPS:" type message in your log or on | 8 | Please see https://www.kernel.org/ for a list of supported kernels. Any |
8 | screen please read "Documentation/oops-tracing.txt" before posting your | 9 | kernel marked with [EOL] is "end of life" and will not have any fixes |
9 | bug report. This explains what you should do with the "Oops" information | 10 | backported to it. |
10 | to make it useful to the recipient. | 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 | |||
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. | ||
11 | 30 | ||
12 | Send the output to the maintainer of the kernel area that seems to | 31 | Instead, try to figure out which kernel subsystem is causing the issue, |
13 | be involved with the problem, and cc the relevant mailing list. Don't | 32 | and email that subsystem's maintainer and mailing list. If the subsystem |
14 | worry too much about getting the wrong person. If you are unsure send it | 33 | maintainer doesn't answer, then expand your scope to mailing lists like |
15 | to the person responsible for the code relevant to what you were doing. | 34 | LKML. |
16 | If it occurs repeatably try and describe how to recreate it. That is | 35 | |
17 | worth even more than the oops itself. The list of maintainers and | 36 | |
18 | mailing lists is in the MAINTAINERS file in this directory. If you | 37 | Identify who to notify |
19 | know the file name that causes the problem you can use the following | 38 | ---------------------- |
20 | command in this directory to find some of the maintainers of that file: | 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: | ||
21 | perl scripts/get_maintainer.pl -f <filename> | 54 | perl scripts/get_maintainer.pl -f <filename> |
22 | 55 | ||
23 | If it is a security bug, please copy the Security Contact listed | 56 | If it is a security bug, please copy the Security Contact listed in the |
24 | in the MAINTAINERS file. They can help coordinate bugfix and disclosure. | 57 | MAINTAINERS file. They can help coordinate bugfix and disclosure. See |
25 | See Documentation/SecurityBugs for more information. | 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 | |||
67 | Tips for reporting bugs | ||
68 | ----------------------- | ||
69 | |||
70 | If you haven't reported a bug before, please read: | ||
26 | 71 | ||
27 | If you are totally stumped as to whom to send the report, send it to | 72 | http://www.chiark.greenend.org.uk/~sgtatham/bugs.html |
28 | linux-kernel@vger.kernel.org. (For more information on the linux-kernel | 73 | http://www.catb.org/esr/faqs/smart-questions.html |
29 | mailing list see http://www.tux.org/lkml/). | ||
30 | 74 | ||
31 | This is a suggested format for a bug report sent to the Linux kernel mailing | 75 | It's REALLY important to report bugs that seem unrelated as separate email |
32 | list. Having a standardized bug report form makes it easier for you not to | 76 | threads or separate bugzilla entries. If you report several unrelated |
77 | bugs at once, it's difficult for maintainers to tease apart the relevant | ||
78 | data. | ||
79 | |||
80 | |||
81 | Gather information | ||
82 | ------------------ | ||
83 | |||
84 | The most important information in a bug report is how to reproduce the | ||
85 | bug. This includes system information, and (most importantly) | ||
86 | step-by-step instructions for how a user can trigger the bug. | ||
87 | |||
88 | If the failure includes an "OOPS:", take a picture of the screen, capture | ||
89 | a netconsole trace, or type the message from your screen into the bug | ||
90 | report. Please read "Documentation/oops-tracing.txt" before posting your | ||
91 | bug report. This explains what you should do with the "Oops" information | ||
92 | to make it useful to the recipient. | ||
93 | |||
94 | This is a suggested format for a bug report sent via email or bugzilla. | ||
95 | Having a standardized bug report form makes it easier for you not to | ||
33 | overlook things, and easier for the developers to find the pieces of | 96 | overlook things, and easier for the developers to find the pieces of |
34 | information they're really interested in. Don't feel you have to follow it. | 97 | information they're really interested in. If some information is not |
98 | relevant to your bug, feel free to exclude it. | ||
35 | 99 | ||
36 | First run the ver_linux script included as scripts/ver_linux, which | 100 | First run the ver_linux script included as scripts/ver_linux, which |
37 | reports the version of some important subsystems. Run this script with | 101 | reports the version of some important subsystems. Run this script with |
38 | the command "sh scripts/ver_linux". | 102 | the command "sh scripts/ver_linux". |
39 | 103 | ||
@@ -65,4 +129,46 @@ summary from [1.]>" for easy identification by the developers. | |||
65 | [X.] Other notes, patches, fixes, workarounds: | 129 | [X.] Other notes, patches, fixes, workarounds: |
66 | 130 | ||
67 | 131 | ||
68 | Thank you | 132 | Follow up |
133 | ========= | ||
134 | |||
135 | Expectations for bug reporters | ||
136 | ------------------------------ | ||
137 | |||
138 | Linux kernel maintainers expect bug reporters to be able to follow up on | ||
139 | bug reports. That may include running new tests, applying patches, | ||
140 | recompiling your kernel, and/or re-triggering your bug. The most | ||
141 | frustrating thing for maintainers is for someone to report a bug, and then | ||
142 | never follow up on a request to try out a fix. | ||
143 | |||
144 | That said, it's still useful for a kernel maintainer to know a bug exists | ||
145 | on a supported kernel, even if you can't follow up with retests. Follow | ||
146 | up reports, such as replying to the email thread with "I tried the latest | ||
147 | kernel and I can't reproduce my bug anymore" are also helpful, because | ||
148 | maintainers have to assume silence means things are still broken. | ||
149 | |||
150 | Expectations for kernel maintainers | ||
151 | ----------------------------------- | ||
152 | |||
153 | Linux kernel maintainers are busy, overworked human beings. Some times | ||
154 | they may not be able to address your bug in a day, a week, or two weeks. | ||
155 | If they don't answer your email, they may be on vacation, or at a Linux | ||
156 | conference. Check the conference schedule at LWN.net for more info: | ||
157 | https://lwn.net/Calendar/ | ||
158 | |||
159 | In general, kernel maintainers take 1 to 5 business days to respond to | ||
160 | bugs. The majority of kernel maintainers are employed to work on the | ||
161 | kernel, and they may not work on the weekends. Maintainers are scattered | ||
162 | around the world, and they may not work in your time zone. Unless you | ||
163 | have a high priority bug, please wait at least a week after the first bug | ||
164 | report before sending the maintainer a reminder email. | ||
165 | |||
166 | The exceptions to this rule are regressions, kernel crashes, security holes, | ||
167 | or userspace breakage caused by new kernel behavior. Those bugs should be | ||
168 | addressed by the maintainers ASAP. If you suspect a maintainer is not | ||
169 | responding to these types of bugs in a timely manner (especially during a | ||
170 | merge window), escalate the bug to LKML and Linus Torvalds. | ||
171 | |||
172 | Thank you! | ||
173 | |||
174 | [Some of this is taken from Frohwalt Egerer's original linux-kernel FAQ] | ||