Re: [patch 0/5] RFC: fault-injection capabilities

From: Andi Kleen
Date: Wed Aug 23 2006 - 08:03:31 EST

Akinobu Mita <mita@xxxxxxxxxxxxxxxx> writes:

> This patch set provides some fault-injection capabilities.
> - kmalloc failures
> - alloc_pages() failures
> - disk IO errors
> We can see what really happens if those failures happen.


The SUSE kernel has a crasher module that is also quite useful for testing.
What it does basically is to always allocate/free memory and overwrite
the memory and check if the memory hasn't been changed by someone else.
Perhaps something like that could be incorporated into your framework too?

I put a copy of the suse patch in

> In order to enable these fault-injection capabilities:

However I'm not sure they're too useful right now. The problem is
that they're too global and might render the system unusable. Have you
considered adding some more filters, like uid/gid to fail only (
I think that would be useful because then it would be possible
to run test suites with faults while keeping other parts of the system
functional) or maybe even a list of callers to test? e.g. only
failing for module foo would be nice.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at