]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: tree-checker: check item_size for dev_item
authorSu Yue <l@damenly.su>
Fri, 21 Jan 2022 09:33:35 +0000 (17:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 31 Jan 2022 15:06:04 +0000 (16:06 +0100)
commit25ee36251b56c286cbd4f172b4f611114fe85909
tree707813b8ac12b70259eb190128727e92ed8bbce7
parent8a1895ed3a8b45366f84d1358738ae1e7faba162
btrfs: tree-checker: check item_size for dev_item

Check item size before accessing the device item to avoid out of bound
access, similar to inode_item check.

Signed-off-by: Su Yue <l@damenly.su>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-checker.c