Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ext4: fix possible use after free in ext4_quota_enable
The function frees qf_inode via iput but then pass qf_inode to lockdep_set_quota_inode on the failure path. This may result in a use-after-free bug. The patch frees df_inode only when it is never used. Fixes: daf647d ("ext4: add lockdep annotations for i_data_sem") Cc: [email protected] # 4.6 Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Pan Bian <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
- Loading branch information