Mainline Patch
You'll write a code change to the Linux kernel, send it through the mailing list the way the maintainers require, and see it merged with your name on it.
About
The kernel takes about ten thousand patches a release, and the door is open to anyone who can follow the rules, which are strict, written down, and enforced by people with very little time. You'll find a real thing to fix (a driver quirk for hardware you own, a warning, a bug from the mailing list, a missing device ID), make the change, test it on a kernel you built, and send it with git send-email to the right list and maintainers. Expect to be told to resend at least once. Documentation typos and whitespace fixes don't count here, because the badge is for a change to code. When it's merged, your name is in the kernel's git log for good.
At a glance
- Per requirement
- 75 XP
- Completion bonus
- 1200 XP
- Requirements
- 6
- Takes
- A season or more
- Skill level
- Advanced (years of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- With other people
Requirements
-
1
Read the kernel's process documents and set up git send-email. Read Documentation/process/submitting-patches.rst and the coding style document end to end, then configure git send-email with your mail provider. Send yourself a test patch and check that it arrives unmangled, with no HTML and no wrapped lines. Take a photo of the test patch in your inbox with the headers showing. Photo
-
2
Find a real change to make and say why it matters. Good sources are hardware you own that misbehaves, a warning from a build with W=1, a syzbot report, or a quirk table missing your device's ID. Use scripts/get_maintainer.pl to find the owners and the list. Take a photo of the bug, the warning or the hardware, and your one-paragraph case. Photo
-
3
Make the change, build a kernel with it, and test it on real hardware. The Custom Kernel badge covers the build. Boot the patched kernel and show the change doing what you claim, with dmesg or a test. Take a photo of uname -r on the patched kernel and the dmesg or test output. Photo
-
4
Pass checkpatch and write a commit message a maintainer would accept. Run scripts/checkpatch.pl on the patch and fix everything it flags. The message needs a subsystem prefix, a plain description of the problem and the fix, a Fixes tag if it fixes a known commit, and your Signed-off-by. Take a photo of the clean checkpatch run and the full commit message. Photo
-
5
Send it to the list and respond to every review comment. Send with git send-email to the maintainers and the list, in plain text, one patch per thread. When review comes back, reply inline, make the changes, and send a v2 with a changelog under the cut line. Take a photo of the thread on lore.kernel.org with your patch and the review. Photo
-
6
Show it merged into a maintainer tree or mainline. Find your commit in linux-next or in Linus's tree, with the Signed-off-by chain under it. Take a photo of the commit on git.kernel.org with your name on it, and tell us how many versions it took. Photo