From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751174AbdALS3l (ORCPT ); Thu, 12 Jan 2017 13:29:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39706 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbdALS22 (ORCPT ); Thu, 12 Jan 2017 13:28:28 -0500 Date: Thu, 12 Jan 2017 12:27:35 -0600 From: Josh Poimboeuf To: Joe Lawrence Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Jessica Yu , Rusty Russell Subject: Re: [PATCH] livepatch/module: print notice of TAINT_LIVEPATCH Message-ID: <20170112182735.mygo7figi23fzt2g@treble> References: <1484240264-32756-1-git-send-email-joe.lawrence@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1484240264-32756-1-git-send-email-joe.lawrence@redhat.com> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 12 Jan 2017 18:27:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 12, 2017 at 11:57:44AM -0500, Joe Lawrence wrote: > Add back the "tainting kernel with TAINT_LIVEPATCH" kernel log message > that commit 2992ef29ae01 ("livepatch/module: make TAINT_LIVEPATCH > module-specific") dropped. Now that it's a module-specific taint flag, > include the module name. > > Signed-off-by: Joe Lawrence Acked-by: Josh Poimboeuf > --- > kernel/module.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/kernel/module.c b/kernel/module.c > index 5088784c0cf9..330f64e7e193 100644 > --- a/kernel/module.c > +++ b/kernel/module.c > @@ -2812,6 +2812,8 @@ static int check_modinfo_livepatch(struct module *mod, struct load_info *info) > if (get_modinfo(info, "livepatch")) { > mod->klp = true; > add_taint_module(mod, TAINT_LIVEPATCH, LOCKDEP_STILL_OK); > + pr_notice_once("%s: tainting kernel with TAINT_LIVEPATCH\n", > + mod->name); > } > > return 0; > -- > 1.8.3.1 > > -- > To unsubscribe from this list: send the line "unsubscribe live-patching" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Josh