On Wed, Jul 05, 2017 at 11:27:07AM -0400, Steven Rostedt wrote: [snip]
I need to be clearer on this. What I meant was, if there's a bug where someone has a test that easily reproduces the bug, then if there's not a test added to selftests for said bug, then we should shame those into doing so.
Besides shaming, there's one more option -- acknowledgement. When it's a test case or test tool that discovered the bug, we could acknowledge it by adding one line in the bug fixing patch. The exact forms can be discussed, but here are some examples to show the basic idea: Tool: lockdep Tool: ktest Tool: smatch Tool: trinity Tool: syzkaller Tool: xfstests/tests/ext4/025 Tool: scripts/coccinelle/locks/call_kern.cocci Tool: tools/testing/selftests/bpf/test_align.c Reports from test infrastructures like 0day could go further to help acknowledge the tool author or maintainer by showing such lines in its bug report email: You may consider adding these lines in the bug fixing patch: -----------------------[ cut here ]---------------------------------- Fixes: XXXXXXXXXX ("title of the buggy commit") Tool: tools/testing/selftests/bpf/test_align.c <davem@xxxxxxxxxxxxx> Reported-by: 0day test robot <xiaolong.ye@xxxxxxxxx> -----------------------[ cut here ]---------------------------------- Regards, Fengguang -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html