lkml.org 
[lkml]   [2014]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCHv3 0/3] Kernel Live Patching
    Hi Seth,

    (2014/11/21 7:29), Seth Jennings wrote:
    > Summary:
    >
    > This patchset implements an ftrace-based mechanism and kernel interface for
    > doing live patching of kernel and kernel module functions. It represents the
    > greatest common functionality set between kpatch [1] and kGraft [2] and can
    > accept patches built using either method. This solution was discussed in the
    > Live Patching Mini-conference at LPC 2014 [3].
    >
    > The model consists of a live patching "core" that provides an interface for
    > other "patch" kernel modules to register patches with the core.
    >
    > Patch modules contain the new function code and create an klp_patch structure
    > containing the required data about what functions to patch, where the new code
    > for each patched function resides, and in which kernel object (vmlinux or
    > module) the function to be patch resides. The patch module then invokes the
    > klp_register_patch() function to register with the core, then klp_enable_patch()
    > to have the core redirect the execution paths using ftrace.
    >
    > An example patch module can be found here:
    > https://github.com/spartacus06/livepatch/blob/master/patch/patch.c

    Hmm, I think we should import this example under samples/livepatch/ or
    tools/testing/selftests/livepatch/ for self testing, so that others
    can easily see what will happen. :)

    Thank you,


    --
    Masami HIRAMATSU
    Software Platform Research Dept. Linux Technology Research Center
    Hitachi, Ltd., Yokohama Research Laboratory
    E-mail: masami.hiramatsu.pt@hitachi.com




    \
     
     \ /
      Last update: 2014-11-21 04:21    [W:4.186 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site