Commit 3fa1523
committed
rules: floor x86_64 RANDOMIZE_MEMORY budget ceilings to the PUD grain
The page_offset and vmalloc upper bounds from the shared-entropy budget were
vaddr_start + remain/3, left un-aligned. Both bases are PUD-granular, so the
ragged remainder rendered as a garbage-looking ceiling (e.g. 0xffffa4aaaaaaaaaa)
whenever no direct-map leak tightened the window. Floor both to the PUD
boundary: sound (the true PUD-aligned base still satisfies the bound), strictly
tighter, and clean. Update the pinning test.1 parent 9b0dc54 commit 3fa1523
2 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | | - | |
| 179 | + | |
176 | 180 | | |
177 | 181 | | |
178 | 182 | | |
| |||
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
206 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
207 | 213 | | |
208 | 214 | | |
209 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4433 | 4433 | | |
4434 | 4434 | | |
4435 | 4435 | | |
4436 | | - | |
| 4436 | + | |
| 4437 | + | |
| 4438 | + | |
4437 | 4439 | | |
4438 | 4440 | | |
4439 | 4441 | | |
4440 | | - | |
| 4442 | + | |
| 4443 | + | |
4441 | 4444 | | |
4442 | 4445 | | |
4443 | 4446 | | |
| |||
0 commit comments