HomePhabricator

Handle locked pages more robustly (Fixes issue #1462)
e95568b78ddeUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Handle locked pages more robustly (Fixes issue #1462)

Memory locks do not stack, that is, pages which have been locked several times by calls to mlock()
will be unlocked by a single call to munlock(). This can result in keying material ending up in swap when
those functions are used naively. In this commit a class "LockedPageManager" is added
that simulates stacking memory locks by keeping a counter per page.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Aug 22 2012, 09:34
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGfedd060d819e: Merge pull request #1700 from laanwj/2012_08_testsotherfiles
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rSTAGINGe95568b78dde: Handle locked pages more robustly (Fixes issue #1462) (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Aug 23 2012, 04:55