[PATCH v4.19.y 1/2] btrfs: merge btrfs_find_device and find_device

2020-06-08 Thread Vikash Bansal
btrfs_fs_devices". Signed-off-by: Vikash Bansal --- fs/btrfs/dev-replace.c | 8 ++-- fs/btrfs/ioctl.c | 5 ++- fs/btrfs/scrub.c | 4 +- fs/btrfs/volumes.c | 84 +- fs/btrfs/volumes.h | 4 +- 5 files changed, 53 insertions(+), 52

[PATCH v4.19.y 2/2] btrfs: Detect unbalanced tree with empty leaf before crashing btree operations

2020-06-08 Thread Vikash Bansal
g/show_bug.cgi?id=202821 Reviewed-by: Nikolay Borisov Signed-off-by: Qu Wenruo Signed-off-by: David Sterba Signed-off-by: Vikash Bansal --- fs/btrfs/disk-io.c | 10 ++ fs/btrfs/tree-checker.c | 6 ++ 2 files changed, 16 insertions(+) diff --git a/fs/btrfs/disk-io.c b/fs/b

[PATCH v4.19.y 0/2] btrfs: Fix for CVE-2019-18885

2020-06-08 Thread Vikash Bansal
CVE Description: NVD Site Link: https://nvd.nist.gov/vuln/detail?vulnId=CVE-2019-18885 It was discovered that the btrfs file system in the Linux kernel did not properly validate metadata, leading to a NULL pointer dereference. An attacker could use this to specially craft a file system image that,