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


Groups > linux.kernel > #1349869

Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc

From Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc
Date 2016-03-04 07:10 +0100
Message-ID <r8R62-2kp-3@gated-at.bofh.it> (permalink)
References <r8ELy-1ze-61@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Petr Mladek <pmladek@suse.com> [2016-03-03 17:52:01]:

> From: Balbir Singh <bsingharora@gmail.com>
> 
> Changelog v4:
> 	1. Renamed klp_matchaddr() to klp_get_ftrace_location()
> 	   and used it just to convert the function address.
> 	2. Synced klp_write_module_reloc() with s390(); made it
> 	   inline, no error message, return -ENOSYS
> 	3. Added an error message when including
> 	   powerpc/include/asm/livepatch.h without HAVE_LIVEPATCH
> 	4. Update some comments.
> Changelog v3:
> 	1. Moved -ENOSYS to -EINVAL in klp_write_module_reloc
> 	2. Moved klp_matchaddr to use ftrace_location_range
> Changelog v2:
> 	1. Implement review comments by Michael
> 	2. The previous version compared _NIP from the
> 	   wrong location to check for whether we
> 	   are going to a patched location
> 
> This applies on top of the patches posted by Michael
> https://patchwork.ozlabs.org/patch/589791/
> 
> It enables livepatching. This takes patch 6/8 and 7/8 of v8 as the base.
> (See the reference [1] below) and adds logic for checking offset ranges
> in livepatch with ftrace_location_range.
> 
> I tested the sample in the livepatch
> 
> Signed-off-by: Torsten Duwe <duwe@suse.de>
> Signed-off-by: Balbir Singh <bsingharora@gmail.com>
> Signed-off-by: Petr Mladek <pmladek@suse.com>

Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>

I tried it, with the sample livepatch module.

Tested-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>



Thanks,
Kamalesh.

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


Thread

[PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Petr Mladek <pmladek@suse.com> - 2016-03-03 18:00 +0100
  Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> - 2016-03-04 07:10 +0100
  Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Michael Ellerman <mpe@ellerman.id.au> - 2016-03-04 09:00 +0100
    Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Miroslav Benes <mbenes@suse.cz> - 2016-03-04 10:40 +0100
      Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Michael Ellerman <mpe@ellerman.id.au> - 2016-03-07 04:40 +0100
  How to merge? (was Re: [PATCH][v4] livepatch/ppc: Enable  livepatching on powerpc) Michael Ellerman <mpe@ellerman.id.au> - 2016-03-04 09:10 +0100
    Re: How to merge? (was Re: [PATCH][v4] livepatch/ppc: Enable  livepatching on powerpc) Jiri Kosina <jikos@kernel.org> - 2016-03-04 10:00 +0100
      Re: How to merge? (was Re: [PATCH][v4] livepatch/ppc: Enable  livepatching on powerpc) Michael Ellerman <mpe@ellerman.id.au> - 2016-03-07 11:10 +0100
        Re: How to merge? (was Re: [PATCH][v4] livepatch/ppc: Enable  livepatching on powerpc) Michael Ellerman <mpe@ellerman.id.au> - 2016-03-08 00:30 +0100
          Re: How to merge? (was Re: [PATCH][v4] livepatch/ppc: Enable  livepatching on powerpc) Steven Rostedt <rostedt@goodmis.org> - 2016-03-08 03:00 +0100
        Re: How to merge? (was Re: [PATCH][v4] livepatch/ppc: Enable  livepatching on powerpc) Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-08 00:30 +0100
        Re: How to merge? (was Re: [PATCH][v4] livepatch/ppc: Enable  livepatching on powerpc) Jiri Kosina <jikos@kernel.org> - 2016-03-08 01:50 +0100
  Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Torsten Duwe <duwe@lst.de> - 2016-03-04 13:50 +0100
    Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Petr Mladek <pmladek@suse.com> - 2016-03-04 14:10 +0100
      Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Torsten Duwe <duwe@lst.de> - 2016-03-04 19:20 +0100
        Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Torsten Duwe <duwe@lst.de> - 2016-03-04 20:30 +0100
          Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Torsten Duwe <duwe@lst.de> - 2016-03-08 12:20 +0100
    Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Balbir Singh <bsingharora@gmail.com> - 2016-03-07 01:00 +0100
  Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-04 23:00 +0100
  Re: [PATCH][v4] livepatch/ppc: Enable livepatching on powerpc Steven Rostedt <rostedt@goodmis.org> - 2016-03-08 22:50 +0100

csiph-web