Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1557716
| From | Josh Poimboeuf <jpoimboe@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] livepatch/module: print notice of TAINT_LIVEPATCH |
| Date | 2017-01-12 19:40 +0100 |
| Message-ID | <sYSs2-7lL-27@gated-at.bofh.it> (permalink) |
| References | <sYQTg-6jV-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] livepatch/module: print notice of TAINT_LIVEPATCH Joe Lawrence <joe.lawrence@redhat.com> - 2017-01-12 18:00 +0100 Re: [PATCH] livepatch/module: print notice of TAINT_LIVEPATCH Josh Poimboeuf <jpoimboe@redhat.com> - 2017-01-12 19:40 +0100 Re: livepatch/module: print notice of TAINT_LIVEPATCH Jessica Yu <jeyu@redhat.com> - 2017-01-13 22:30 +0100
csiph-web