mbox series

[v2,0/2] btrfs: fix issues when mouting the poc image

Message ID 20210103092804.756-1-l@damenly.su (mailing list archive)
Headers show
Series btrfs: fix issues when mouting the poc image | expand

Message

Su Yue Jan. 3, 2021, 9:28 a.m. UTC
The two patches fix issues found by the image which is provided by
Insu Yun at SSLab@Gatech.

patch 1 fixes a NULL pointer dereference in error handling path.
patch 2 enhances tree checker to detect chunk item end overflow.

Su Yue (2):
  btrfs: prevent NULL pointer dereference in extent_io_tree_panic()
  btrfs: tree-checker: check if chunk item end oveflows

 fs/btrfs/extent_io.c    | 4 +---
 fs/btrfs/tree-checker.c | 7 +++++++
 2 files changed, 8 insertions(+), 3 deletions(-)

Comments

David Sterba Jan. 4, 2021, 3:58 p.m. UTC | #1
On Sun, Jan 03, 2021 at 05:28:02PM +0800, Su Yue wrote:
> The two patches fix issues found by the image which is provided by
> Insu Yun at SSLab@Gatech.
> 
> patch 1 fixes a NULL pointer dereference in error handling path.
> patch 2 enhances tree checker to detect chunk item end overflow.
> 
> Su Yue (2):
>   btrfs: prevent NULL pointer dereference in extent_io_tree_panic()
>   btrfs: tree-checker: check if chunk item end oveflows

Thanks, added to misc-next. I've slightly updated the error message in
patch 2, to say that it's the 'logical start' of the chunk.