Opened 7 years ago
Last modified 3 years ago
#13651 new enhancement
implement mlock(), munlock(), mlockall(), munlockall()
Reported by: | korli | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | System/POSIX | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | #13880, #16666 | |
Platform: | All |
Description (last modified by )
Used by qemu, openssl.
http://pubs.opengroup.org/onlinepubs/9699919799//functions/mlock.html http://pubs.opengroup.org/onlinepubs/9699919799//functions/mlockall.html
Constants for mlockall: MCL_CURRENT, MCL_FUTURE https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/sys_mman.h.html#tag_13_55
Change History (11)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Blocking: | 13880 added |
---|
comment:3 by , 6 years ago
gcrypt also complains that this is missing. It should use it to make sure passwords and other sensitive data aren't accidentally swapped to disk.
comment:4 by , 4 years ago
mlock and munlock added in hrev54754. Does anything relevant use mlockall/munlockall?
comment:5 by , 4 years ago
https://github.com/haikuports/haikuports/search?q=mlock for instance qemu
follow-up: 7 comment:6 by , 4 years ago
I see only mlock() used there, I was asking about mlockall/munlockall (which we still don't implement but I think is used a lot less often)
comment:7 by , 4 years ago
Replying to pulkomandy:
I see only mlock() used there, I was asking about mlockall/munlockall (which we still don't implement but I think is used a lot less often)
Indeed. I found a reference in mariadb: https://github.com/MariaDB/server/blob/295f3e4cfb4a8f132f36d53475efc92f2487aa97/sql/mysqld.cc#L5215
comment:8 by , 4 years ago
Description: | modified (diff) |
---|
comment:9 by , 4 years ago
Blocking: | 16666 added |
---|
comment:10 by , 4 years ago
Hi, I ran into this ticket because uWSGI requires munlockall, MCL_CURRENT, MCL_FUTURE.
comment:11 by , 3 years ago
Improved in hrev55986.
Missing: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mlockall.html
As shown by:
https://github.com/haikuports/haikuports/issues/1897
VirtualBox Guest Additions requires at least, "mlock()" and "munlock()"