lkml.org 
[lkml]   [2012]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [3.4-rc1] attempt to access beyond end of device and livelock
On 04/06/2012 07:36 PM, Daniel J Blueman wrote:
> 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,
> Daniel
>
> --- [1]
>
> attempt to access beyond end of device
> ram0: rw=129, want=8452072, limit=4096000
> ...
>
> --- [2]
>
> modprobe brd rd_size=2048000 (or boot with ramdisk_size=2048000)
> mkfs.btrfs -m raid0 /dev/ram0 /dev/ram1
> mount /dev/ram0 /mnt -o discard
> cd /mnt && tar -xvzf linux.tar.gz
> <access beyond end of device and livelock>

Thanks for the report, this bug shows we've miscalculated the length of discard extents.

I'll send a patch for this soon.

thanks,
--
liubo


\
 
 \ /
  Last update: 2012-04-08 10:53    [W:0.036 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site