diff options
| author | Chao Yu <yuchao0@huawei.com> | 2019-09-10 04:14:16 +0300 | 
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-09-16 18:38:26 +0300 | 
| commit | 98194030554cd9b10568a9b58f5a135c7e7cba85 (patch) | |
| tree | 75243346db60e853d5a5b36dc366efdb5e205c68 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 743b620cb0516f6b6cbc45b48df00fe6d14d00ba (diff) | |
| download | linux-98194030554cd9b10568a9b58f5a135c7e7cba85.tar.xz | |
f2fs: fix to avoid accessing uninitialized field of inode page in is_alive()
If inode is newly created, inode page may not synchronize with inode cache,
so fields like .i_inline or .i_extra_isize could be wrong, in below call
path, we may access such wrong fields, result in failing to migrate valid
target block.
Thread A				Thread B
- f2fs_create
 - f2fs_add_link
  - f2fs_add_dentry
   - f2fs_init_inode_metadata
    - f2fs_add_inline_entry
     - f2fs_new_inode_page
     - f2fs_put_page
     : inode page wasn't updated with inode cache
					- gc_data_segment
					 - is_alive
					  - f2fs_get_node_page
					  - datablock_addr
					   - offset_in_addr
					   : access uninitialized fields
Fixes: 7a2af766af15 ("f2fs: enhance on-disk inode structure scalability")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
