Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757806AbaKUCoy (ORCPT ); Thu, 20 Nov 2014 21:44:54 -0500 Received: from mail4.hitachi.co.jp ([133.145.228.5]:47582 "EHLO mail4.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757101AbaKUCox (ORCPT ); Thu, 20 Nov 2014 21:44:53 -0500 X-Greylist: delayed 321 seconds by postgrey-1.27 at vger.kernel.org; Thu, 20 Nov 2014 21:44:52 EST Message-ID: <546EA71E.6000004@hitachi.com> Date: Fri, 21 Nov 2014 11:44:46 +0900 From: Masami Hiramatsu Organization: Hitachi, Ltd., Japan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Seth Jennings Cc: Josh Poimboeuf , Jiri Kosina , Vojtech Pavlik , Steven Rostedt , Petr Mladek , Miroslav Benes , Christoph Hellwig , Greg KH , Andy Lutomirski , live-patching@vger.kernel.org, x86@kernel.org, kpatch@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 0/3] Kernel Live Patching References: <1416522580-5593-1-git-send-email-sjenning@redhat.com> In-Reply-To: <1416522580-5593-1-git-send-email-sjenning@redhat.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/