]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: improve check_node to avoid reading corrupted nodes
authorLiu Bo <bo.li.liu@oracle.com>
Thu, 15 Sep 2016 00:23:24 +0000 (17:23 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 16:05:28 +0000 (18:05 +0200)
commit3a0ae8f9d1a8a324a83165140757125cae06d4a5
tree53c6fd2e8890e34628c1d4ea9f3df0f3c0cedf74
parent44de7de89f7c94579182b8ff2df252b66915aa6b
Btrfs: improve check_node to avoid reading corrupted nodes

We need to check items in a node to make sure that we're reading
a valid one, otherwise we could get various crashes while processing
delayed_refs.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c