Searched hist:"6254 bd3d" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/security/selinux/ss/ |
H A D | hashtab.c | 6254bd3d Tue May 17 07:08:16 CDT 2022 Ondrej Mosnacek <omosnace@redhat.com> selinux: fix bad cleanup on error in hashtab_duplicate()
The code attempts to free the 'new' pointer using kmem_cache_free(), which is wrong because this function isn't responsible of freeing it. Instead, the function should free new->htable and clear the contents of *new (to prevent double-free).
Cc: stable@vger.kernel.org Fixes: c7c556f1e81b ("selinux: refactor changing booleans") Reported-by: Wander Lairson Costa <wander@redhat.com> Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
|