cryptsetup: reduce the chance that we will be OOM killed
authorMichal Sekletár <msekleta@redhat.com>
Wed, 27 Nov 2019 13:27:58 +0000 (14:27 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 15 Dec 2019 11:16:26 +0000 (12:16 +0100)
commita16b1ee7e565d33b50feac9a0ee8b306c4e22bb2
tree76d2ff4e8e97443870c0843ef3dca1a66e7cf61e
parent4836fb010ae86934ed210cf645ad4ddc62aff25d
cryptsetup: reduce the chance that we will be OOM killed

cryptsetup introduced optional locking scheme that should serialize
unlocking keyslots which use memory hard key derivation
function (argon2). Using the serialization should prevent OOM situation
in early boot while unlocking encrypted volumes.

(cherry picked from commit 408c81f62454684dfbff1c95ce3210d06f256e58)
src/cryptsetup/cryptsetup.c