[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1501092228010.15299@pobox.suse.cz>
Date: Fri, 9 Jan 2015 22:29:05 +0100 (CET)
From: Jiri Kosina <jkosina@...e.cz>
To: Josh Poimboeuf <jpoimboe@...hat.com>
cc: Seth Jennings <sjenning@...hat.com>,
Vojtech Pavlik <vojtech@...e.cz>,
live-patching@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] livepatch: fix deferred module patching order
On Fri, 9 Jan 2015, Josh Poimboeuf wrote:
> When applying multiple patches to a module, if the module is loaded
> after the patches are loaded, the patches are applied in reverse order:
>
> $ insmod patch1.ko
> [ 43.172992] livepatch: enabling patch 'patch1'
>
> $ insmod patch2.ko
> [ 46.571563] livepatch: enabling patch 'patch2'
>
> $ modprobe nfsd
> [ 52.888922] livepatch: applying patch 'patch2' to loading module 'nfsd'
> [ 52.899847] livepatch: applying patch 'patch1' to loading module 'nfsd'
>
> Fix the loading order by storing the klp_patches list in queue order.
>
> Signed-off-by: Josh Poimboeuf <jpoimboe@...hat.com>
Applied and pushed out, thanks.
--
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists