Commit 27db887a98fe for kernel

commit 27db887a98fe217ef96d2d9f0c61804f63a145f6
Merge: 1f1b6ca3145a 23a04cb4f2bd
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Fri Nov 27 09:42:51 2026 -0800

    Merge tag 's390-7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux

    Pull s390 fixes from Alexander Gordeev:

     - Fix the cert_store code keyring locking, lifetime handling, missing
       error and return code checks, several reference leaks and potential
       use-after-free issues caused by unbalanced keyring reference counting

     - Look up the cert_store keyring only in the user session keyring. As
       result a foreign keyring named "cert_store", which a task may have
       inherited, is no longer destroyed during refresh

     - Fix out-of-bounds reads in hash validation and in Verification
       Certificate Entry (VCE) debug output, avoid copying uninitialized
       DIAG 320 data to the debug area, and print the correct value of
       max_vcxe_length

     - Allocate the cert_store keyring with a link restriction, so that
       arbitrary keys cannot be linked into it

     - Allow only the kernel to create keys of type cert_store_key. This
       prevents users from creating such keys with short descriptions, which
       could disclose kernel heap memory via /proc/keys

    * tag 's390-7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
      s390/cert_store: Only allow the kernel to create cert_store_key keys
      s390/cert_store: Allocate keyring with link restriction
      s390/cert_store: Initialize ism array in query_diag320_subcodes()
      s390/cert_store: Fix out-of-bounds read in pr_dbf_vce()
      s390/cert_store: Fix max_vcxe_length output in pr_dbf_vcssb()
      s390/cert_store: Validate hash length in check_certificate_valid()
      s390/cert_store: Do not search the process keyrings for the cert_store keyring
      s390/cert_store: Fix keyring refcount handling in get_user_session_keyring()
      s390/cert_store: Fix error handling of get_user_session_keyring()
      s390/cert_store: Remove unnecessary static specifier in create_cs_keyring()
      s390/cert_store: Fix potential use-after-free caused by find_cs_keyring()
      s390/cert_store: Fix cs_keyring reference leak in fill_cs_keyring()
      s390/cert_store: Unlink before invalidate in invalidate_keyring_keys()
      s390/cert_store: Check key_lookup() return code in invalidate_keyring_keys()
      s390/cert_store: Fix potential use-after-free in invalidate_keyring_keys()
      s390/cert_store: Fix return code handling in invalidate_keyring_keys()
      s390/cert_store: Hold keyring->sem while reading the keyring