KEYS: Use preparsing in most key types
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | KEYS: Provide a generic instantiation functioncrypto/ include/ security/ | +33 | 0 replies | |
| 2/12 | KEYS: struct key_preparsed_payload should have two payload pointerscrypto/ crypto/ include/ +2 more | +8 | 0 replies | |
| 3/12 | KEYS: Allow expiry time to be set when preparsing a keyDocumentation/ include/ security/ | +16 | 0 replies | |
| 4/12 | KEYS: Call ->free_preparse() even after ->preparse() returns an errorDocumentation/ security/ | +7 | 0 replies | |
| 5/12 | KEYS: user: Use key preparsingfs/ include/ security/ | +30 | 0 replies | |
| 6/12 | KEYS: Ceph: Use key preparsingnet/ | +15 | 0 replies | |
| 7/12 | KEYS: Ceph: Use user_match()net/ | +2 | 0 replies | |
| 8/12 | KEYS: DNS: Use key preparsingnet/ | +25 | 0 replies | |
| 9/12 | KEYS: RxRPC: Use key preparsingnet/ | +97 | 0 replies | |
| 10/12 | KEYS: big_key: Use key preparsinginclude/ security/ | +27 | 0 replies | |
| 11/12 | KEYS: keyring: Provide key preparsingsecurity/ | +23 | 0 replies | |
| 12/12 | KEYS: request_key_auth: Provide key preparsingsecurity/ | +13 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/12] KEYS: Use preparsing in most key types
Here are a set of patches that make all but encrypted and trusted keys use preparsing. Unfortunately, encrypted and trusted keys incorrectly use the update op to alter a key, so other changes will need to be made for them.
These changes permit payload parsing when instantiating or updating a key to be done before locks are taken and to determine the amount of quota that will be required in advance. The latter will make it possible to do LRU discard before any locks are taken.
They can be found here also:
http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=keys-preparse-1
David
---
David Howells (12):
KEYS: Provide a generic instantiation function
KEYS: struct key_preparsed_payload should have two payload pointers
KEYS: Allow expiry time to be set when preparsing a key
KEYS: Call ->free_preparse() even after ->preparse() returns an error
KEYS: user: Use key preparsing
KEYS: Ceph: Use key preparsing
KEYS: Ceph: Use user_match()
KEYS: DNS: Use key preparsing
KEYS: RxRPC: Use key preparsing
KEYS: big_key: Use key preparsing
KEYS: keyring: Provide key preparsing
KEYS: request_key_auth: Provide key preparsing
Documentation/security/keys.txt | 14 ++- crypto/asymmetric_keys/asymmetric_type.c | 27 ----- crypto/asymmetric_keys/x509_public_key.c | 2 fs/nfs/idmap.c | 8 + include/keys/big_key-type.h | 3 - include/keys/user-type.h | 3 - include/linux/key-type.h | 5 + net/ceph/crypto.c | 26 +++-- net/dns_resolver/dns_key.c | 43 +++++--- net/rxrpc/ar-key.c | 165 ++++++++++++++++++------------ security/keys/big_key.c | 41 +++++-- security/keys/encrypted-keys/encrypted.c | 2 security/keys/key.c | 49 ++++++++- security/keys/keyring.c | 34 ++++-- security/keys/request_key_auth.c | 13 ++ security/keys/user_defined.c | 41 ++++--- 16 files changed, 291 insertions(+), 185 deletions(-)