Commit 3b9af75
committed
ext4: move where set the MAY_INLINE_DATA flag is set
jira VULN-67318
cve-pre CVE-2023-53100
commit-author Ye Bin <yebin10@huawei.com>
commit 1dcdce5
The only caller of ext4_find_inline_data_nolock() that needs setting of
EXT4_STATE_MAY_INLINE_DATA flag is ext4_iget_extra_inode(). In
ext4_write_inline_data_end() we just need to update inode->i_inline_off.
Since we are going to add one more caller that does not need to set
EXT4_STATE_MAY_INLINE_DATA, just move setting of EXT4_STATE_MAY_INLINE_DATA
out to ext4_iget_extra_inode().
Signed-off-by: Ye Bin <yebin10@huawei.com>
Cc: stable@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230307015253.2232062-2-yebin@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 1dcdce5)
Signed-off-by: Brett Mastbergen <bmastbergen@ciq.com>1 parent f439d32 commit 3b9af75
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4683 | 4683 | | |
4684 | 4684 | | |
4685 | 4685 | | |
| 4686 | + | |
| 4687 | + | |
4686 | 4688 | | |
4687 | | - | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
4688 | 4693 | | |
4689 | 4694 | | |
4690 | 4695 | | |
| |||
0 commit comments