From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel J Blueman Subject: [3.4-rc1] attempt to access beyond end of device and livelock Date: Fri, 6 Apr 2012 19:36:59 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Linux BTRFS , Linux Kernel To: Josef Bacik , Chris Mason Return-path: In-Reply-To: List-ID: Hi Josef, Chris, When testing BTRFS with RAID 0 metadata on linux-3.4-rc1, we see discard ranges exceeding the end of the block device [1], potentially causing dataloss; when this occurs, filesystem writeback becomes catatonic due to continual resubmission. Simply mounting with discard a raid0 metadata filesystem and copying some data in [2] provokes the issue. Thanks, =A0Daniel --- [1] attempt to access beyond end of device ram0: rw=3D129, want=3D8452072, limit=3D4096000 =2E.. --- [2] modprobe brd rd_size=3D2048000 (or boot with ramdisk_size=3D2048000) mkfs.btrfs -m raid0 /dev/ram0 /dev/ram1 mount /dev/ram0 /mnt -o discard cd /mnt && tar -xvzf linux.tar.gz --=20 Daniel J Blueman