linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] livepatch/module: print notice of TAINT_LIVEPATCH
@ 2017-01-12 16:57 Joe Lawrence
  2017-01-12 18:27 ` Josh Poimboeuf
  2017-01-13 21:27 ` Jessica Yu
  0 siblings, 2 replies; 3+ messages in thread
From: Joe Lawrence @ 2017-01-12 16:57 UTC (permalink / raw)
  To: linux-kernel, live-patching; +Cc: Josh Poimboeuf, Jessica Yu, Rusty Russell

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 <joe.lawrence@redhat.com>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] livepatch/module: print notice of TAINT_LIVEPATCH
  2017-01-12 16:57 [PATCH] livepatch/module: print notice of TAINT_LIVEPATCH Joe Lawrence
@ 2017-01-12 18:27 ` Josh Poimboeuf
  2017-01-13 21:27 ` Jessica Yu
  1 sibling, 0 replies; 3+ messages in thread
From: Josh Poimboeuf @ 2017-01-12 18:27 UTC (permalink / raw)
  To: Joe Lawrence; +Cc: linux-kernel, live-patching, Jessica Yu, Rusty Russell

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 <joe.lawrence@redhat.com>

Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>

> ---
>  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: livepatch/module: print notice of TAINT_LIVEPATCH
  2017-01-12 16:57 [PATCH] livepatch/module: print notice of TAINT_LIVEPATCH Joe Lawrence
  2017-01-12 18:27 ` Josh Poimboeuf
@ 2017-01-13 21:27 ` Jessica Yu
  1 sibling, 0 replies; 3+ messages in thread
From: Jessica Yu @ 2017-01-13 21:27 UTC (permalink / raw)
  To: Joe Lawrence; +Cc: linux-kernel, live-patching, Josh Poimboeuf, Rusty Russell

+++ Joe Lawrence [12/01/17 11:57 -0500]:
>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 <joe.lawrence@redhat.com>

Applied, thanks.

Jessica

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-13 21:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-12 16:57 [PATCH] livepatch/module: print notice of TAINT_LIVEPATCH Joe Lawrence
2017-01-12 18:27 ` Josh Poimboeuf
2017-01-13 21:27 ` Jessica Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).