commit | 56a0e706fcf870270878d6d72b71092ae42d229c | [log] [tgz] |
---|---|---|
author | Liu Bo <bo.li.liu@oracle.com> | Mon Oct 30 11:14:38 2017 -0600 |
committer | David Sterba <dsterba@suse.com> | Wed Nov 15 14:47:01 2017 +0100 |
tree | b805b64c6152ce3c2f228405e62847960601bed2 | |
parent | 619c47f3d4cd7a60576fd15e133a2eee4fcc0c4e [diff] |
Btrfs: bail out gracefully rather than BUG_ON If a file's DIR_ITEM key is invalid (due to memory errors) and gets written to disk, a future lookup_path can end up with kernel panic due to BUG_ON(). This gets rid of the BUG_ON(), meanwhile output the corrupted key and return ENOENT if it's invalid. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reported-by: Guillaume Bouchard <bouchard@mercs-eng.com> Signed-off-by: David Sterba <dsterba@suse.com>