Thread (9 messages) 9 messages, 5 authors, 2020-10-13

Re: [PATCH] ima: Fix sizeof mismatches

From: Jarkko Sakkinen <hidden>
Date: 2020-10-07 16:50:08
Also in: kernel-janitors, linux-integrity, lkml

On Wed, Oct 07, 2020 at 12:02:43PM +0100, Colin King wrote:
From: Colin Ian King <redacted>

An incorrect sizeof is being used, sizeof(*fields) is not correct,
it should be sizeof(**fields). This is not causing a problem since
the size of these is the same. Fix this in the kmalloc_array and
memcpy calls.

Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)")
Fixes: 1bd7face7439 ("ima: allocate field pointers array on demand in template_desc_init_fields()")
Signed-off-by: Colin Ian King <redacted>
Acked-by: Jarkko Sakkinen <redacted>

/Jarkko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help