Re:How to trigger races reliably in the Linux kernel
by loeg on Tuesday May 05, 2020 @12:30PM
(#23081806)
In the FreeBSD kernel, we've got fail(9) for this exact use (since 2009).
Check out the EXAMPLES section of the manual page. You can use the mechanisms to inject delay on some percentage of executions, and more generally some integer value can be injected, which can be used to simulate device failures (EIO) or whatever.
It's very powerful for creating reliable reproducers for all kinds of failures, including race conditions. And the KPI is not quite as verbose as the one presented in TFA.
Check out the EXAMPLES section of the manual page. You can use the mechanisms to inject delay on some percentage of executions, and more generally some integer value can be injected, which can be used to simulate device failures (EIO) or whatever.
It's very powerful for creating reliable reproducers for all kinds of failures, including race conditions. And the KPI is not quite as verbose as the one presented in TFA.
https://www.freebsd.org/cgi/man.cgi?query=fail&sektion=9