diff options
| author | Milan Broz <[email protected]> | 2023-10-03 10:02:09 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-10-13 14:16:08 +0000 |
| commit | 4eaf0932c69bdc56d2c2af30404f9c918b1f6295 (patch) | |
| tree | b7ba155f110f0ad46ac4802e116589c338d5202b /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c | |
| parent | block: Don't invalidate pagecache for invalid falloc modes (diff) | |
| download | kernel-4eaf0932c69bdc56d2c2af30404f9c918b1f6295.tar.gz kernel-4eaf0932c69bdc56d2c2af30404f9c918b1f6295.zip | |
block: Fix regression in sed-opal for a saved key.
The commit 3bfeb61256643281ac4be5b8a57e9d9da3db4335
introduced the use of keyring for sed-opal.
Unfortunately, there is also a possibility to save
the Opal key used in opal_lock_unlock().
This patch switches the order of operation, so the cached
key is used instead of failure for opal_get_key.
The problem was found by the cryptsetup Opal test recently
added to the cryptsetup tree.
Fixes: 3bfeb6125664 ("block: sed-opal: keyring support for SED keys")
Tested-by: Ondrej Kozina <[email protected]>
Signed-off-by: Milan Broz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions
