From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59BC6C7EE23 for ; Mon, 29 May 2023 21:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229613AbjE2VPA (ORCPT ); Mon, 29 May 2023 17:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbjE2VPA (ORCPT ); Mon, 29 May 2023 17:15:00 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEAC2C7; Mon, 29 May 2023 14:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kJG48zeglz+zwcfVe2MxktM9ZJFl5E0cwgaXV6z5xIM=; b=ONEhzj5JdZTyQJuynF2uQIevEf AnBiHFKUZN9UQWdny+k64gWn1mDGBDKjVw6yV0egQPK4KsnhmFnfTa7lt8oOoaqOxL98qYr4GiZYx 7hhvQRyKyvY6nZtHNrlfv+RHw5A11TIIhP1uX48y1AgiEm6tTsBw2gznWPELEBEOM+b/eVUSeHLqQ fbwjaw7dFgXZ/2XiOWxOspMs/fwn+jIvif1yT5G5sNnRgNVrWk/+jPQdm3BxaxKyGRwnJsy6TFKaT fvVzzmeDD6ExByiDPxElSAw1F/fXHiUS3TiX/r3rUGsrvwbCW2cNefXac59+yWC0FWdM2TYed2PeY AM/wMkdw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1q3kCZ-005htz-Do; Mon, 29 May 2023 21:14:51 +0000 Date: Mon, 29 May 2023 22:14:51 +0100 From: Matthew Wilcox To: Mikulas Patocka Cc: Kent Overstreet , linux-bcachefs@vger.kernel.org, dm-devel@redhat.com, linux-fsdevel@vger.kernel.org Subject: Re: fuzzing bcachefs with dm-flakey Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-bcachefs@vger.kernel.org On Mon, May 29, 2023 at 04:59:40PM -0400, Mikulas Patocka wrote: > Hi > > I improved the dm-flakey device mapper target, so that it can do random > corruption of read and write bios - I uploaded it here: > https://people.redhat.com/~mpatocka/testcases/bcachefs/dm-flakey.c > > I set up dm-flakey, so that it corrupts 10% of read bios and 10% of write > bios with this command: > dmsetup create flakey --table "0 `blockdev --getsize /dev/ram0` flakey /dev/ram0 0 0 1 4 random_write_corrupt 100000000 random_read_corrupt 100000000" I'm not suggesting that any of the bugs you've found are invalid, but 10% seems really high. Is it reasonable to expect any filesystem to cope with that level of broken hardware? Can any of our existing ones cope with that level of flakiness? I mean, I've got some pretty shoddy USB cables, but ...