Thread (20 messages) 20 messages, 4 authors, 2016-11-23

Re: [PATCH v2] Btrfs: detect corruption when non-root leaf has zero item

From: David Sterba <hidden>
Date: 2016-08-24 11:53:21

On Tue, Aug 23, 2016 at 03:22:58PM -0700, Liu Bo wrote:
Right now we treat leaf which has zero item as a valid one
because we could have an empty tree, that is, a root that is
also a leaf without any item, however, in the same case but
when the leaf is not a root, we can end up with hitting the
BUG_ON(1) in btrfs_extend_item() called by
setup_inline_extent_backref().

This makes us check the situation as a corruption if leaf is
not its own root.

Signed-off-by: Liu Bo <redacted>
Reviewed-by: David Sterba <dsterba@suse.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help