Re: [request for stable inclusion]: ext2: Fix fs corruption in ext2_get_xip_mem()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2014-09-12 at 09:57 +0800, Wang Nan wrote:
> Hi Greg and Zefan:
> 
> upstream commit 7ba3ec5749ddb61f79f7be17b5fd7720eebc52de:
>   ext2: Fix fs corruption in ext2_get_xip_mem()
> 
> looks applicable for 3.10 and 3.4.
> 
> On 3.10, without this patch we can easily trigger a bug using:
> 
> # mkfs.ext2 -b 4096 /dev/ram1
> # mount -t ext2 -o xip /dev/ram1 /mnt
> # cp /bin/ls /mnt
> cp: error writing '/mnt/ls': No space left on device
> cp: failed to extend '/mnt/ls': No space left on device
> 
> On 3.4, no such error report, but in this case an extra block is allocated.
> 
> Thank you!

I've queued this up for 3.2, as ext2 doesn't seem to have changed
significantly between 3.2 and 3.4.

Ben.

-- 
Ben Hutchings
The world is coming to an end.	Please log off.

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]