Repository navigation
Commit d81e341
ext4: refresh the ext4_ext_path struct after dropping i_data_sem.
commit 1811bc4 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 4089432 commit d81e341
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5005 | 5005 | | |
5006 | 5006 | | |
5007 | 5007 | | |
5008 | | - | |
| 5008 | + | |
| 5009 | + | |
| 5010 | + | |
5009 | 5011 | | |
| 5012 | + | |
5010 | 5013 | | |
5011 | 5014 | | |
5012 | 5015 | | |
| |||
5080 | 5083 | | |
5081 | 5084 | | |
5082 | 5085 | | |
| 5086 | + | |
5083 | 5087 | | |
5084 | 5088 | | |
5085 | 5089 | | |
| |||
5133 | 5137 | | |
5134 | 5138 | | |
5135 | 5139 | | |
| 5140 | + | |
5136 | 5141 | | |
5137 | 5142 | | |
5138 | 5143 | | |
5139 | 5144 | | |
5140 | 5145 | | |
| 5146 | + | |
| 5147 | + | |
| 5148 | + | |
5141 | 5149 | | |
5142 | 5150 | | |
5143 | 5151 | | |
| |||
5166 | 5174 | | |
5167 | 5175 | | |
5168 | 5176 | | |
| 5177 | + | |
5169 | 5178 | | |
5170 | 5179 | | |
5171 | 5180 | | |
| |||
5184 | 5193 | | |
5185 | 5194 | | |
5186 | 5195 | | |
| 5196 | + | |
| 5197 | + | |
| 5198 | + | |
5187 | 5199 | | |
5188 | 5200 | | |
5189 | 5201 | | |
| |||
0 commit comments