lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 1 Apr 2011 16:15:34 -1000
From:	Andreas Dilger <>
To:	Eric Sandeen <>
Cc:	Daniel Taylor <>,
	" development" <>,
	Johann Lombardi <>
Subject: Re: breaking ext4 to test recovery

On 2011-03-31, at 12:44 PM, Eric Sandeen wrote:
> On 3/31/11 5:21 PM, Andreas Dilger wrote:
>> We have a kernel patch "dev_read_only" that we use with Lustre to
>> disable writes to the block device while the device is in use.  This
>> allows simulating crashes at arbitrary points in the code or test
>> scripts.  It was based on Andrew Morton's test harness that he used
>> for ext3 recovery testing back when it was being ported to the 2.4
>> kernel.
>> The best part of this patch is that it works with any block device,
>> can simulate power failure w/o any need for automated power control,
>> and once the block device is unused (all buffers and references
>> dropped) it can be re-activated safely.
> It won't simulate a lost write cache though, will it?

I'm not sure what you mean.  Since the patch works at the block device layer (in __generic_make_request()) it will drop the write at the time it is submitted to the device, not when it is put into the cache.

That said, I notice in the linux git repo a line that is in the same place as our patch "if (should_fail_request(bio))" which looks like it might have similar functionality when CONFIG_FAIL_MAKE_REQUEST is enabled.  I'm not sure what kernel version it was added in.  It looks like it is possible to fail the IOs some fraction of the time, or permanently, by writing something into /sys/block/{dev}/fail.

Cheers, Andreas

To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists