Re: [RFC] docs: netdev: additional info requirements for bug fixes
From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-07-27 22:25:19
On Mon, 27 Jul 2026 13:47:24 -0700 Jakub Kicinski wrote:
+All bug fixes must clearly state how the issue was discovered and validated, +and how the fix was tested. This should be done in plain English, not with +special tags or annotations. + +Example statements describing discovery: + +- discovered by a non-AI static analysis tool. +- discovered by an AI code review agent. +- discovered by manual code inspection. +- triggered during code development. +- triggered in CI testing. +- observed on a machine in real use. + +If the issue was not observed in reality (e.g. it was caught by an AI tool +or manual code inspection), the next sentence should describe the +reproduction. The reproduction should state whether kernel modifications +were necessary (e.g. inserting a delay to widen the race). The commit message +must disclose if error injection or loading a special kernel module was used +to trigger the issue. The reproduction steps should be included in the commit +message if they are short (roughly 10 lines or fewer); longer reproducers can +be posted online with a link included. + +The testing statement should explain whether the fix was tested against the +reproducer and against kernel selftests.
We should probably also add that the commit message of a fix must describe the impact to the user. FWIW the intention is that we'd either quote this text at people until they comply or even get an AI bot looking at all patches coming in and deciding if commit message is good enough. With some tuning LLM should be able to check that the 4 items are covered.