Repository navigation
Commit 7511c3e
mm: vmalloc: don't remove inexistent guard hole in remove_vm_area()
Commit 71394fe ("mm: vmalloc: add flag preventing guard hole
allocation") missed a spot. Currently remove_vm_area() decreases vm->size
to "remove" the guard hole page, even when it isn't present. All but one
users just free the vm_struct rigth away and never access vm->size anyway.
Don't touch the size in remove_vm_area() and have __vunmap() use the
proper get_vm_area_size() helper.
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 429d486 commit 7511c3e
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1443 | 1443 | | |
1444 | 1444 | | |
1445 | 1445 | | |
1446 | | - | |
1447 | 1446 | | |
1448 | 1447 | | |
1449 | 1448 | | |
| |||
1468 | 1467 | | |
1469 | 1468 | | |
1470 | 1469 | | |
1471 | | - | |
1472 | | - | |
| 1470 | + | |
| 1471 | + | |
1473 | 1472 | | |
1474 | 1473 | | |
1475 | 1474 | | |
| |||
0 commit comments