aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fs_stack.h
diff options
context:
space:
mode:
authorOndrej Kozina <okozina@redhat.com>2016-11-02 15:02:08 +0100
committerMister Oyster <oysterized@gmail.com>2017-07-04 11:50:58 +0200
commit240780611f9744c2a0aa6dfdd053a4a6a1b946db (patch)
treebd3f5b991bd616470eb778670aa968a98ae42e20 /include/linux/fs_stack.h
parentd123c9727f289e06a95be6e64fc9c5c51950f702 (diff)
dm crypt: mark key as invalid until properly loaded
commit 265e9098bac02bc5e36cda21fdbad34cb5b2f48d upstream. In crypt_set_key(), if a failure occurs while replacing the old key (e.g. tfm->setkey() fails) the key must not have DM_CRYPT_KEY_VALID flag set. Otherwise, the crypto layer would have an invalid key that still has DM_CRYPT_KEY_VALID flag set. Signed-off-by: Ondrej Kozina <okozina@redhat.com> Reviewed-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/fs_stack.h')
0 files changed, 0 insertions, 0 deletions