Re: [PATCH v2] f2fs: fix use-after-free issue when accessing sbi->stat_info

2018-12-26 Thread Chao Yu
On 2018/12/26 13:50, Sahitya Tummala wrote: > iput() on sbi->node_inode can update sbi->stat_info > in the below context, if the f2fs_write_checkpoint() > has failed with error. > > f2fs_balance_fs_bg+0x1ac/0x1ec > f2fs_write_node_pages+0x4c/0x260 > do_writepages+0x80/0xbc > __writeback_single_ino

[PATCH v2] f2fs: fix use-after-free issue when accessing sbi->stat_info

2018-12-25 Thread Sahitya Tummala
iput() on sbi->node_inode can update sbi->stat_info in the below context, if the f2fs_write_checkpoint() has failed with error. f2fs_balance_fs_bg+0x1ac/0x1ec f2fs_write_node_pages+0x4c/0x260 do_writepages+0x80/0xbc __writeback_single_inode+0xdc/0x4ac writeback_single_inode+0x9c/0x144 write_inode_