Remove the need to alloc memory in uv.c
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest1 patch 1 replyIn review
- v21 patch 2 repliesSuperseded
- v11 patch 3 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | s390/uv: Rename find_secret() to uv_find_secret() and publisharch/ arch/ | +14 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/1] Remove the need to alloc memory in uv.c
The pkey uv handler may be called in a do-not-allocate memory situation where sleeping is allowed but allocating memory which may cause IO operations is not. For example when an encrypted swap file is used and the encryption is done via UV retrievable secrets with protected keys.
The UV API function uv_get_secret_metadata() allocates memory and then calls the find_secret() function. By exposing the find_secret() function as a new UV API function uv_find_secret() it is possible to retrieve UV secret meta data without any memory allocations from the UV when the caller offers space for one struct uv_secret_list.
Harald Freudenberger (1):
s390/uv: Rename find_secret() to uv_find_secret() and publish
arch/s390/include/asm/uv.h | 3 +++ arch/s390/kernel/uv.c | 15 +++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0