btrfs-progs/check
Qu Wenruo d73427b76d btrfs-progs: check/original: Add checks for compressed extent without csum
There is one report of compressed extent happens in btrfs, but has no
csum and then leads to possible decompress error screwing up kernel
memory.

Although it's a kernel bug, and won't cause problem until compressed
data get corrupted, let's catch such problem in advance.

This patch will catch any unexpected compressed extent with:

1) 0 or less than expected csum

2) nodatasum flag set in the inode item

This is for original mode.

Reported-by: James Harvey <jamespharvey20@gmail.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-05-17 12:32:38 +02:00
..
main.c btrfs-progs: check/original: Add checks for compressed extent without csum 2019-05-17 12:32:38 +02:00
mode-common.c btrfs-progs: check/lowmem: Check and repair free space cache inode mode 2019-04-16 09:04:25 +08:00
mode-common.h btrfs-progs: check/lowmem: Check and repair free space cache inode mode 2019-04-16 09:04:25 +08:00
mode-lowmem.c btrfs-progs: check/lowmem: Add checks for compressed extent without csum 2019-05-17 12:32:38 +02:00
mode-lowmem.h btrfs-progs: check/lowmem: Check and repair free space cache inode mode 2019-04-16 09:04:25 +08:00
mode-original.h btrfs-progs: check/original: Add inode mode check 2019-04-16 09:04:25 +08:00