Re: [PATCH v3 0/2] livepatch: Allocate and free shadow variables more safely

From: Jiri Kosina
Date: Tue Apr 17 2018 - 07:44:36 EST


On Mon, 16 Apr 2018, Petr Mladek wrote:

> Nikolai started to use shadow variables and found that list_head
> is not initialized correctly using the existing API.
>
> The problem is that LIST_HEAD_INIT() set pointers to itself.
> klp_shadow_alloc() then copies these pointers to another location.

Queued in for-4.17/upstream-fixes. Thanks,

--
Jiri Kosina
SUSE Labs