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