mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge fbe changes from upstream 5.4
b7b3af9BACKPORT: FROMLIST: Update Inline Encryption from v5 to v6 of patch series4f6a1f4ANDROID: ufshcd-crypto: export cap find APIe25d82cANDROID: block: provide key size as input to inline crypto APIs3e8ccebANDROID: block: add KSM op to derive software secret from wrapped key8173487ANDROID: fscrypt: add support for hardware-wrapped keys8aaaa67ANDROID: block: fix some inline crypto bugs9f8ee7bANDROID: block: export symbols needed for modules to use inline crypto0faba9aFROMLIST: scsi: ufs: add program_key() variant op403731bANDROID: ext4, f2fs: enable direct I/O with inline encryption1fc06baANDROID: block: Introduce passthrough keyslot manager695cfebANDROID: dm: add support for passing through inline crypto support85942bcANDROID: dm: enable may_passthrough_inline_crypto on some targets5515324ANDROID: dm: add dm-default-key target for metadata encryption792b182ANDROID: gki_defconfig: enable dm-default-key3ab1972ANDROID: block: Prevent crypto fallback for wrapped keysa142356ANDROID: dm: add support for passing through derive_raw_secret0dccdc0ANDROID: dm: Add wrapped key support in dm-default-key Git-repo: https://android.googlesource.com/kernel/common/+/refs/heads/android-5.4 Change-Id: Ida31c27ac24457efc1aa0343806e2f32a056167b Signed-off-by: Gaurav Kashyap <[email protected]>
This commit is contained in:
parent
e2298d13da
commit
c83b552741
50 changed files with 48070 additions and 46599 deletions
|
|
@ -97,7 +97,7 @@ Blk-crypto ensures that:
|
|||
|
||||
- The bio's encryption context is programmed into a keyslot in the KSM of the
|
||||
request queue that the bio is being submitted to (or the crypto API fallback
|
||||
KSM if the request queue doesn't have a KSM), and that the ``processing_ksm``
|
||||
KSM if the request queue doesn't have a KSM), and that the ``bc_ksm``
|
||||
in the ``bi_crypt_context`` is set to this KSM
|
||||
|
||||
- That the bio has its own individual reference to the keyslot in this KSM.
|
||||
|
|
@ -107,7 +107,7 @@ Blk-crypto ensures that:
|
|||
ensuring that the bio has a valid reference to the keyslot when, for e.g., the
|
||||
crypto API fallback KSM in blk-crypto performs crypto on the device's behalf.
|
||||
The individual references are ensured by increasing the refcount for the
|
||||
keyslot in the ``processing_ksm`` when a bio with a programmed encryption
|
||||
keyslot in the ``bc_ksm`` when a bio with a programmed encryption
|
||||
context is cloned.
|
||||
|
||||
|
||||
|
|
@ -120,7 +120,7 @@ been programmed into any keyslot in any KSM (for e.g. a bio from the FS).
|
|||
request queue the bio is being submitted to (and if this KSM does not exist,
|
||||
then it will program it into blk-crypto's internal KSM for crypto API
|
||||
fallback). The KSM that this encryption context was programmed into is stored
|
||||
as the ``processing_ksm`` in the bio's ``bi_crypt_context``.
|
||||
as the ``bc_ksm`` in the bio's ``bi_crypt_context``.
|
||||
|
||||
**Case 2:** blk-crypto is given a bio whose encryption context has already been
|
||||
programmed into a keyslot in the *crypto API fallback* KSM.
|
||||
|
|
@ -138,7 +138,7 @@ KSM).
|
|||
This way, when a device driver is processing a bio, it can be sure that
|
||||
the bio's encryption context has been programmed into some KSM (either the
|
||||
device driver's request queue's KSM, or blk-crypto's crypto API fallback KSM).
|
||||
It then simply needs to check if the bio's processing_ksm is the device's
|
||||
It then simply needs to check if the bio's ``bc_ksm`` is the device's
|
||||
request queue's KSM. If so, then it should proceed with IE. If not, it should
|
||||
simply do nothing with respect to crypto, because some other KSM (perhaps the
|
||||
blk-crypto crypto API fallback KSM) is handling the en/decryption.
|
||||
|
|
|
|||
Loading…
Reference in a new issue