Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 434a3aa7 authored by Kyeongdon Kim's avatar Kyeongdon Kim Committed by Jeffrey Vander Stoep
Browse files

UPSTREAM: selinux: Use kmem_cache for hashtab_node



During random test as own device to check slub account,
we found some slack memory from hashtab_node(kmalloc-64).
By using kzalloc(), middle of test result like below:
allocated size 240768
request size 45144
slack size 195624
allocation count 3762

So, we want to use kmem_cache_zalloc() and that
can reduce memory size 52byte(slack size/alloc count) per each struct.

Signed-off-by: default avatarKyeongdon Kim <kyeongdon.kim@lge.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>

(cherry picked from commit 7c620ece125cbab7b5dfcb574ee1e64ab8b562cd)
Change-Id: I552ed33d1d51f6c0fc37d078ed8f5cf07e9d76aa
Bug: 140252993
Signed-off-by: default avatarJeff Vander Stoep <jeffv@google.com>
parent f81151cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment