You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IEE: cred: Enhance credential cache initialization with SLAB_NO_MERGE
Improve the credential subsystem initialization in cred_init() by
adding dedicated cache allocation flags and enhancing code structure.
Key changes:
*Add SLAB_NO_MERGE flag to all credential cache allocations to
prevent cache merging and ensure dedicated memory pools.
*Restructure conditional logic for better code readability and
maintainability.
*Enhance RCU jar cache creation with improved formatting and
documentation.
*Update informational log message to reflect the use of dedicated
caches.
*Add comprehensive comments explaining the purpose of independent
cache creation.
This change ensures that credential-related memory allocations use
dedicated SLAB caches, which can improve security isolation and
debugging capabilities while maintaining backward compatibility with
existing configurations.
The SLAB_NO_MERGE flag prevents the kernel from merging these caches
with others, providing better memory layout control and potentially
improved security characteristics for credential handling.
Tested-by: Jun Zhan <[email protected]>
Co-developed-by: Jun Zhan <[email protected]>
Signed-off-by: Jun Zhan <[email protected]>
Signed-off-by: WangYuli <[email protected]>
0 commit comments