Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp820045ybl; Fri, 16 Aug 2019 04:38:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqw9/OE4pJvzhDOb1X9iKn5DOmBkO9N97Vfmx57zLiXsUzpo2riYXlqiuzsXfZpIBV15v/ X-Received: by 2002:a63:c0d:: with SMTP id b13mr7342023pgl.420.1565955526603; Fri, 16 Aug 2019 04:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565955526; cv=none; d=google.com; s=arc-20160816; b=Hb76nbpxAbfohVbfJNQmVeIT3zFicX1Udbf7fy3hH64FE1jrcWS31vCS5IdWyxusPE G3bDWzw2OO1i+NyxVLwMzmnPr2+1ngsKoWb+QGm31AbKtVRu+A4QraZ45hNczzA68axS EM66wA/0kEo9+psE6el7ynKaIPqr+atyVyVIafnfh/ZbIX1gGf9zDDjot5fLxJbA+sKR l/SV0xNinBpfypvfgXtC8lvhIxXAKlOrt1djALA3E+Muuc5e+DJLY+mqEIV0EEUOWGI7 1kbCEdh3zDcW5M1F6lZabKpwuuCLlPQwjW8OM0CQ0yIkyjDk6By3dZtC86yvSZP1lFac DsGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=ZGRmRX21HFZjQOo6RUWLj0+rE8mt19pv78l71bEdnLE=; b=udtvcLgUIYOdyc4HVmEWHOhDMFEFq1iMKdaMI1yC7FzhglQaV/VfnyGl6U4K36oUhh artf+qTuCus1Yd4JSmQOzqfQ4TwSo/sVkH0fEXXl9uNvnE4SPeiVGbWQrEa8HT9LV076 RsJP0ahEPFkcqXYmnDdcoqCmdU9qcw4jMST4kQCk4kTpcoBLuRnxLKKw+0Vf/h0rfQO8 R3upGXEGIQJtZKPTVRvHvPQmCXxbL7EcbIC0HqfjONFK0c27VHsFrtgANoi/E7OOmHvo x1SZEKjRbCxaNMOSCjY9Yak7mGinpkOTbEFqvG9xurMUUBxE5JHxGEboU9zuHYKKIthH U5Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=VA46zsni; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si4207842pfa.141.2019.08.16.04.38.28; Fri, 16 Aug 2019 04:38:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=VA46zsni; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727195AbfHPLgL (ORCPT + 99 others); Fri, 16 Aug 2019 07:36:11 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:17417 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727021AbfHPLgL (ORCPT ); Fri, 16 Aug 2019 07:36:11 -0400 Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x7GBZrpM022199; Fri, 16 Aug 2019 20:35:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x7GBZrpM022199 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1565955354; bh=ZGRmRX21HFZjQOo6RUWLj0+rE8mt19pv78l71bEdnLE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VA46zsniLssyX0pAMX25lscd0r1N4AERHsHGfn/BoCbWRt5Od0fH84SzCDb+4bgj9 4PtYMEX8lwJaVhk5GAfHXSYtAvJirrFQ6PwcIsmj14zJS6jA8BAuc5fPIUy0JQkI5M m3muZLwX4Brc++HuqYi6HQ3e3S4SUhVtV7mkzQOUtLA5tfcrDo4OQGVHchImcr5eZL SMASoPj+iBbsXXnnmkDwuQXhH0VGJJWexuX1+qsLK82GZY9NzYo++5K0aJFPx5ENZg PUJlNqXjDP60SrILfi0Sy2YMGN7F2S+LpQl2yjZP2ZqJnPKktQO3mT5w96U1LlCXKc hY+kgNIRUJ6sg== X-Nifty-SrcIP: [209.85.217.46] Received: by mail-vs1-f46.google.com with SMTP id y16so3512031vsc.3; Fri, 16 Aug 2019 04:35:53 -0700 (PDT) X-Gm-Message-State: APjAAAUNttRxHmDAoK2BA8b6y/xsOtcVl6kGq33FntpE9n9DRNn6wOTK hyLbDFw+xX5OrO5xqgz+JgIRLxfRLdiwYHfe4t8= X-Received: by 2002:a67:fe12:: with SMTP id l18mr5914342vsr.54.1565955352684; Fri, 16 Aug 2019 04:35:52 -0700 (PDT) MIME-Version: 1.0 References: <20190509143859.9050-1-joe.lawrence@redhat.com> <20190509143859.9050-8-joe.lawrence@redhat.com> In-Reply-To: <20190509143859.9050-8-joe.lawrence@redhat.com> From: Masahiro Yamada Date: Fri, 16 Aug 2019 20:35:16 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 07/10] livepatch: Add sample livepatch module To: Joe Lawrence Cc: Linux Kernel Mailing List , live-patching@vger.kernel.org, Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joe, On Thu, May 9, 2019 at 11:39 PM Joe Lawrence wrote: > > From: Josh Poimboeuf > > Add a new livepatch sample in samples/livepatch/ to make use of > symbols that must be post-processed to enable load-time relocation > resolution. As the new sample is to be used as an example, it is > annotated with KLP_MODULE_RELOC and with KLP_SYMPOS macros. > > The livepatch sample updates the function cmdline_proc_show to > print the string referenced by the symbol saved_command_line > appended by the string "livepatch=1". > > Update livepatch-sample.c to remove livepatch MODULE_INFO > statement. > > Signed-off-by: Josh Poimboeuf > Signed-off-by: Joao Moreira > Signed-off-by: Joe Lawrence > --- > --- /dev/null > +++ b/samples/livepatch/livepatch-annotated-sample.c > @@ -0,0 +1,102 @@ > +/* > + * livepatch-annotated-sample.c - Kernel Live Patching Sample Module > + * > + * Copyright (C) 2014 Seth Jennings > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation; either version 2 > + * of the License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, see . Please use SPDX instead of the license boilerplate. Thanks. -- Best Regards Masahiro Yamada