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

Balbir Singh bsingharora at gmail.com
Fri Mar 4 07:43:55 AEDT 2016


On 4 Mar 2016 03:52, "Petr Mladek" <pmladek at suse.com> wrote:
>
> From: Balbir Singh <bsingharora at 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 at suse.de>
> Signed-off-by: Balbir Singh <bsingharora at gmail.com>
> Signed-off-by: Petr Mladek <pmladek at suse.com>
>
Like the cleanup and the patch

Balbir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20160304/166fc4f8/attachment-0001.html>


More information about the Linuxppc-dev mailing list