lists.openwall.net | 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 linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <CAGpXXZKZM1Pa6hefYqq0pOyUbVvbif8KqcdC+APdUo6uxT=+LQ@mail.gmail.com> Date: Thu, 21 Feb 2013 22:27:22 -0500 From: Greg Freemyer <greg.freemyer@...il.com> To: Dmitry Monakhov <dmonakhov@...nvz.org> Cc: xfs@....sgi.com, linux-fsdevel@...r.kernel.org, linux-ext4@...r.kernel.org, dchinner@...hat.com Subject: Re: [PATCH] xfstests: add disk failure simulation test On Wed, Feb 13, 2013 at 10:41 AM, Dmitry Monakhov <dmonakhov@...nvz.org> wrote: > There are many situations where disk may fail for example > 1) brutal usb dongle unplug > 2) iscsi (or any other netbdev) failure due to network issues > In this situation filesystem which use this blockdevice is > expected to fail(force RO remount, abort, etc) but whole system > should still be operational. In other words: > 1) Kernel should not panic > 2) Memory should not leak > 3) Data integrity operations (sync,fsync,fdatasync, directio) should fail > for affected filesystem > 4) It should be possible to umount broken filesystem Out of curiosity, does xfstest also have fault injection at the sector level? It may be a little too aggressive, but hdparm --make-bad-sector nnnnnnn can use a ATA long_write to write out a sector and non-matching crc. When the sector is then read after that, the drive returns a media error. At the end of the test hdparm --repair-sector nnnnnnn will fix the bad sector and store a valid crc. The reason I say it is aggressive is that matched pairs of --make-bad-sector and --repair-sector should have no long term effect on the drive, but non-matched pairs will leave the drive with a media error. A normal write to that "bad" sector will force it to be remapped to a spare sector. I don't know of a simple way to undo that mapping. Greg -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists