Skip to content

s390/cert_store: Various fixes

Heiko Carstens keyrings linux-s390 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15s390/cert_store: Hold keyring->sem while reading the keyringarch/s390/kernel/cert_store.c+11 -60 replies
2/15s390/cert_store: Fix return code handling in invalidate_keyring_keys()arch/s390/kernel/cert_store.c+6 -41 reply
3/15s390/cert_store: Fix potential use-after-free in invalidate_keyring_keys()arch/s390/kernel/cert_store.c+3 -31 reply
4/15s390/cert_store: Check key_lookup() return code in invalidate_keyring_keys()arch/s390/kernel/cert_store.c+3 -01 reply
5/15s390/cert_store: Unlink before invalidate in invalidate_keyring_keys()arch/s390/kernel/cert_store.c+1 -11 reply
6/15s390/cert_store: Fix cs_keyring reference leak in fill_cs_keyring()arch/s390/kernel/cert_store.c+1 -01 reply
7/15s390/cert_store: Fix potential use-after-free caused by find_cs_keyring()arch/s390/kernel/cert_store.c+6 -121 reply
8/15s390/cert_store: Remove unnecessary static specifier in create_cs_keyring()arch/s390/kernel/cert_store.c+1 -11 reply
9/15s390/cert_store: Fix error handling of get_user_session_keyring()arch/s390/kernel/cert_store.c+19 -111 reply
10/15s390/cert_store: Fix keyring refcount handling in get_user_session_keyring()arch/s390/kernel/cert_store.c+5 -21 reply
11/15s390/cert_store: Do not search the process keyrings for the cert_store keyringarch/s390/kernel/cert_store.c+2 -61 reply
12/15s390/cert_store: Validate hash length in check_certificate_valid()arch/s390/kernel/cert_store.c+5 -33 replies
13/15s390/cert_store: Fix max_vcxe_length output in pr_dbf_vcssb()arch/s390/kernel/cert_store.c+1 -10 replies
14/15s390/cert_store: Fix out-of-bounds read in pr_dbf_vce()arch/s390/kernel/cert_store.c+6 -30 replies
15/15s390/cert_store: Initialize ism array in query_diag320_subcodes()arch/s390/kernel/cert_store.c+1 -10 replies

Reviews trailers per patch

10 of 15 patches have a Reviewed-by or Acked-by.

PatchJarkko Sakkinen
1/15
2/15R-b
3/15R-b
4/15R-b
5/15R-b
6/15R-b
7/15R-b
8/15R-b
9/15R-b
10/15R-b
11/15R-b
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] s390/cert_store: Various fixes

Hi Jarrko,

as already previously written here a patch series, including your patch, which addresses various cert_store bugs. Patches are very fine grained. Also it looks to me as if you addressed most / many of this with your patches already.

I guess the best way forward would be if you take those patches of this series which address things not already fixed by you(?). Otherwise let me know how we should proceed without causing too much churn.

Thanks,
Heiko

Heiko Carstens (14):
s390/cert_store: Fix return code handling in invalidate_keyring_keys() s390/cert_store: Fix potential use-after-free in invalidate_keyring_keys() s390/cert_store: Check key_lookup() return code in invalidate_keyring_keys() s390/cert_store: Unlink before invalidate in invalidate_keyring_keys() s390/cert_store: Fix cs_keyring reference leak in fill_cs_keyring() s390/cert_store: Fix potential use-after-free caused by find_cs_keyring() s390/cert_store: Remove unnecessary static specifier in create_cs_keyring() s390/cert_store: Fix error handling of get_user_session_keyring() s390/cert_store: Fix keyring refcount handling in get_user_session_keyring() s390/cert_store: Do not search the process keyrings for the cert_store keyring s390/cert_store: Validate hash length in check_certificate_valid() s390/cert_store: Fix max_vcxe_length output in pr_dbf_vcssb() s390/cert_store: Fix out-of-bounds read in pr_dbf_vce() s390/cert_store: Initialize ism array in query_diag320_subcodes()

Jarkko Sakkinen (1):
s390/cert_store: Hold keyring->sem while reading the keyring

 arch/s390/kernel/cert_store.c | 103 ++++++++++++++++++++--------------
 1 file changed, 60 insertions(+), 43 deletions(-)
Signature · 1 line
2.56.1