You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
munlock() will unlock full pages of memory. Right now, we call munlock() upon every secret deallocation. This means that we may be preemptively unlocking secrets from RAM, if two secrets occupy the same page of memory, and one is dropped before the other.
Implement a counter that keeps track of the number of secrets allocated in each page of memory. Wait until a page's count is zero before calling munlock() on the page.
The counter should be incremented via ContainsSecret::mlock_secret(&self) and ContainsSecret::munlock_secret(&self). The counter must be thread safe.
The text was updated successfully, but these errors were encountered:
munlock()
will unlock full pages of memory. Right now, we callmunlock()
upon every secret deallocation. This means that we may be preemptively unlocking secrets from RAM, if two secrets occupy the same page of memory, and one is dropped before the other.Implement a counter that keeps track of the number of secrets allocated in each page of memory. Wait until a page's count is zero before calling
munlock()
on the page.The counter should be incremented via
ContainsSecret::mlock_secret(&self)
andContainsSecret::munlock_secret(&self)
. The counter must be thread safe.The text was updated successfully, but these errors were encountered: