diff options
author | 2017-06-06 17:57:02 +0800 | |
---|---|---|
committer | 2017-06-21 19:16:04 +0200 | |
commit | 26a836cec2ea38329ddf3f049c78e9b94e500670 (patch) | |
tree | 80229894853e88e862f74defffa9bf2a2ed72f19 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | btrfs: Check name_len with boundary in verify dir_item (diff) | |
download | linux-dev-26a836cec2ea38329ddf3f049c78e9b94e500670.tar.xz linux-dev-26a836cec2ea38329ddf3f049c78e9b94e500670.zip |
btrfs: Check name_len on add_inode_ref call path
replay_one_buffer first reads buffers and dispatches items accroding to
the item type.
In this patch, add_inode_ref handles inode_ref and inode_extref.
Then add_inode_ref calls ref_get_fields and extref_get_fields to read
ref/extref name for the first time.
So checking name_len before reading those two is fine.
add_inode_ref also calls inode_in_dir to match ref/extref in parent_dir.
The call graph includes btrfs_match_dir_item_name to read dir_item name
in the parent dir.
Checking first dir_item is not enough. Change it to verify every
dir_item while doing matches.
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions