Repository navigation
Commit 1811bc4
ext4: refresh the ext4_ext_path struct after dropping i_data_sem.
After we drop i_data sem, we need to reload the ext4_ext_path
structure since the extent tree can change once i_data_sem is
released.
This addresses the BUG:
[52117.465187] ------------[ cut here ]------------
[52117.465686] kernel BUG at fs/ext4/extents.c:1756!
...
[52117.478306] Call Trace:
[52117.478565] ext4_ext_shift_extents+0x3ee/0x710
[52117.479020] ext4_fallocate+0x139c/0x1b40
[52117.479405] ? __do_sys_newfstat+0x6b/0x80
[52117.479805] vfs_fallocate+0x151/0x4b0
[52117.480177] ksys_fallocate+0x4a/0xa0
[52117.480533] __x64_sys_fallocate+0x22/0x30
[52117.480930] do_syscall_64+0x35/0x80
[52117.481277] entry_SYSCALL_64_after_hwframe+0x44/0xae
[52117.481769] RIP: 0033:0x7fa062f855ca
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20210903062748.4118886-4-yangerkun@huawei.com
Signed-off-by: yangerkun <yangerkun@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 4268496 commit 1811bc4
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5014 | 5014 | | |
5015 | 5015 | | |
5016 | 5016 | | |
5017 | | - | |
| 5017 | + | |
| 5018 | + | |
| 5019 | + | |
5018 | 5020 | | |
| 5021 | + | |
5019 | 5022 | | |
5020 | 5023 | | |
5021 | 5024 | | |
| |||
5089 | 5092 | | |
5090 | 5093 | | |
5091 | 5094 | | |
| 5095 | + | |
5092 | 5096 | | |
5093 | 5097 | | |
5094 | 5098 | | |
| |||
5142 | 5146 | | |
5143 | 5147 | | |
5144 | 5148 | | |
| 5149 | + | |
5145 | 5150 | | |
5146 | 5151 | | |
5147 | 5152 | | |
5148 | 5153 | | |
5149 | 5154 | | |
| 5155 | + | |
| 5156 | + | |
| 5157 | + | |
5150 | 5158 | | |
5151 | 5159 | | |
5152 | 5160 | | |
| |||
5175 | 5183 | | |
5176 | 5184 | | |
5177 | 5185 | | |
| 5186 | + | |
5178 | 5187 | | |
5179 | 5188 | | |
5180 | 5189 | | |
| |||
5193 | 5202 | | |
5194 | 5203 | | |
5195 | 5204 | | |
| 5205 | + | |
| 5206 | + | |
| 5207 | + | |
5196 | 5208 | | |
5197 | 5209 | | |
5198 | 5210 | | |
| |||
0 commit comments