Re: [PATCH] btrfs-progs: restore: check lzo compress length

2014-06-23 Thread David Sterba
On Wed, Jun 18, 2014 at 06:51:19PM +0200, Vincent Stehlé wrote: This patch actually allowed me to finish a btrfs restore of a damaged filesystem, which was repeateadly crashing otherwise. This was with v3.12, but I think it still makes sense. It does, thanks. -- To unsubscribe from this list:

[PATCH] btrfs-progs: restore: check lzo compress length

2014-06-18 Thread Vincent Stehlé
When things go wrong for lzo-compressed btrfs, feeding lzo1x_decompress_safe() with corrupt data during restore can lead to crashes. Reduce the risk by adding a check on the input length. Signed-off-by: Vincent Stehlé vincent.ste...@laposte.net --- Hi, This patch actually allowed me to finish a