Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1454430

Re: [PATCH v2 2/2] livepatch/x86: apply alternatives and paravirt patches after relocations

From Petr Mladek <pmladek@suse.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 2/2] livepatch/x86: apply alternatives and paravirt patches after relocations
Date 2016-08-02 15:50 +0200
Message-ID <s1If0-589-41@gated-at.bofh.it> (permalink)
References <rXeIx-38y-9@gated-at.bofh.it> <rXeIy-38y-15@gated-at.bofh.it> <s1DS1-2pu-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue 2016-08-02 10:59:07, Miroslav Benes wrote:
> On Thu, 21 Jul 2016, Jessica Yu wrote:
> 
> > Implement arch_klp_init_object_loaded() for x86, which applies
> > alternatives/paravirt patches. This fixes the order in which relocations
> > and alternatives/paravirt patches are applied.
> > 
> > diff --git a/arch/x86/kernel/livepatch.c b/arch/x86/kernel/livepatch.c
> > new file mode 100644
> > index 0000000..78209f1
> > --- /dev/null
> > +++ b/arch/x86/kernel/livepatch.c
> > +#include <linux/module.h>
> > +#include <linux/kallsyms.h>
> > +#include <linux/livepatch.h>
> > +#include <asm/text-patching.h>
> 
> It seems I don't have such header file here and it causes a build error. 
> Shouldn't it be <asm/alternative.h>?

It is in linux-next, see 35de5b0692aaa ("x86/asm: Stop depending on
ptrace.h in alternative.h").

I agree with the other Mirek's comments. Otherwise, it looks good.

Thanks for working on it,
Petr

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 2/2] livepatch/x86: apply alternatives and paravirt  patches after relocations Miroslav Benes <mbenes@suse.cz> - 2016-08-02 11:10 +0200
  Re: [PATCH v2 2/2] livepatch/x86: apply alternatives and paravirt  patches after relocations Petr Mladek <pmladek@suse.com> - 2016-08-02 15:50 +0200
  Re: [PATCH v2 2/2] livepatch/x86: apply alternatives and paravirt  patches after relocations Jiri Kosina <jikos@kernel.org> - 2016-08-02 21:40 +0200

csiph-web