From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [PATCH] use add_taint() for setting tainted bit flags
Date: Sun, 11 Sep 2005 15:59:27 -0700 [thread overview]
Message-ID: <20050911155927.721ed2b9.rdunlap@xenotime.net> (raw)
In-Reply-To: <20050911183353.GA4353@mipter.zuzino.mipt.ru>
On Sun, 11 Sep 2005 22:33:53 +0400 Alexey Dobriyan wrote:
> On Sun, Sep 11, 2005 at 10:44:31AM -0700, Randy.Dunlap wrote:
> > Use the add_taint() interface for setting tainted bit flags
> > instead of doing it manually.
>
> > --- linux-2613-git10/kernel/module.c~use_add_taint
> > +++ linux-2613-git10/kernel/module.c
> > @@ -20,6 +20,7 @@
> > #include <linux/module.h>
> > #include <linux/moduleloader.h>
> > #include <linux/init.h>
> > +#include <linux/kernel.h>
> ^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Will something like this be accepted? Not even boot-tested yet.
Makes sense to me.
> [PATCH] Separate tainted code.
>
> include/linux/kernel.h is overcrowded. kernel/panic.c has nothing to do
> with tainting.
>
> arch/i386/kernel/smpboot.c | 1 +
> arch/x86_64/kernel/mce.c | 1 +
> include/linux/kernel.h | 10 ----------
> include/linux/tainted.h | 15 +++++++++++++++
> kernel/Makefile | 2 +-
> kernel/module.c | 1 +
> kernel/panic.c | 37 -------------------------------------
> kernel/sysctl.c | 1 +
> kernel/tainted.c | 41 +++++++++++++++++++++++++++++++++++++++++
> mm/page_alloc.c | 1 +
> 10 files changed, 62 insertions(+), 48 deletions(-)
>
> +/**
> + * print_tainted - return a string to represent the kernel taint state.
> + *
> + * 'P' - Proprietary module has been loaded.
> + * 'F' - Module has been forcibly loaded.
> + * 'S' - SMP with CPUs not designed for SMP.
> + * 'R' - User forced a module unload.
> + * 'M' - Machine had a machine check experience.
> + * 'B' - System has hit bad_page.
> + *
> + * The string is overwritten by the next call to print_taint().
~~~~~~~~~~~
Please change that to 'print_tainted' too.
> + */
> +
> +const char * print_tainted(void)
> +{
---
~Randy
prev parent reply other threads:[~2005-09-11 22:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-11 17:44 Randy.Dunlap
2005-09-11 18:33 ` Alexey Dobriyan
2005-09-11 22:59 ` Randy.Dunlap [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050911155927.721ed2b9.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=adobriyan@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®