Commit b59071b
committed
When working around kernel bugs writing strange mappings via
Trying to fix the whole mapping at once triggers `ENOMEM` on most kernel versions,
e.g. 6.15, if the mapping is `PROT_NONE` `MAP_PRIVATE`.
Resolves #3976/proc/.../mem, only fix the mappings that actually overlap the area we're going to write.1 parent f71c3b1 commit b59071b
3 files changed
Lines changed: 49 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
| 1178 | + | |
1178 | 1179 | | |
1179 | 1180 | | |
1180 | 1181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3186 | 3186 | | |
3187 | 3187 | | |
3188 | 3188 | | |
3189 | | - | |
| 3189 | + | |
3190 | 3190 | | |
3191 | 3191 | | |
3192 | | - | |
3193 | | - | |
3194 | | - | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
3195 | 3198 | | |
3196 | 3199 | | |
3197 | 3200 | | |
| |||
3205 | 3208 | | |
3206 | 3209 | | |
3207 | 3210 | | |
3208 | | - | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
3209 | 3217 | | |
3210 | | - | |
| 3218 | + | |
3211 | 3219 | | |
3212 | 3220 | | |
3213 | 3221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments