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 korli)

Change History (11)

comment:1 by CodeforEvolution, 7 years ago

As shown by:
https://github.com/haikuports/haikuports/issues/1897
VirtualBox Guest Additions requires at least, "mlock()" and "munlock()"

comment:2 by diver, 7 years ago

Blocking: 13880 added

comment:3 by pulkomandy, 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 pulkomandy, 4 years ago

mlock and munlock added in hrev54754. Does anything relevant use mlockall/munlockall?

comment:6 by pulkomandy, 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)

in reply to:  6 comment:7 by korli, 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 korli, 4 years ago

Description: modified (diff)

comment:9 by korli, 4 years ago

Blocking: 16666 added

comment:10 by przemub, 4 years ago

Hi, I ran into this ticket because uWSGI requires munlockall, MCL_CURRENT, MCL_FUTURE.

Note: See TracTickets for help on using tickets.