From: Dave Jones <davej@codemonkey.org.uk>
To: Zwane Mwaikambo <zwane@holomorphy.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@digeo.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: [PATCH][2.5] Add TAINT_UNKNOWN_STATE
Date: Thu, 21 Nov 2002 13:00:52 +0000 [thread overview]
Message-ID: <20021121130052.GB9883@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0211210250330.1628-100000@montezuma.mastecende.com>
On Thu, Nov 21, 2002 at 02:55:44AM -0500, Zwane Mwaikambo wrote:
> --- linux-2.5.48/include/linux/kernel.h 18 Nov 2002 05:11:13 -0000 1.1.1.1
> +++ linux-2.5.48/include/linux/kernel.h 20 Nov 2002 06:29:39 -0000
> @@ -103,6 +103,7 @@
> #define TAINT_FORCED_MODULE (1<<1)
> #define TAINT_UNSAFE_SMP (1<<2)
> #define TAINT_FORCED_RMMOD (1<<3)
> +#define TAINT_UNKNOWN_STATE (1<<4)
>
> extern void dump_stack(void);
>
> Index: linux-2.5.48/kernel/panic.c
> ===================================================================
> RCS file: /build/cvsroot/linux-2.5.48/kernel/panic.c,v
> retrieving revision 1.1.1.1
> diff -u -r1.1.1.1 panic.c
> --- linux-2.5.48/kernel/panic.c 18 Nov 2002 05:13:12 -0000 1.1.1.1
> +++ linux-2.5.48/kernel/panic.c 21 Nov 2002 07:30:10 -0000
> @@ -114,10 +114,11 @@
> {
> static char buf[20];
> if (tainted) {
> - snprintf(buf, sizeof(buf), "Tainted: %c%c%c",
> + snprintf(buf, sizeof(buf), "Tainted: %c%c%c%c",
> tainted & TAINT_PROPRIETORY_MODULE ? 'P' : 'G',
> tainted & TAINT_FORCED_MODULE ? 'F' : ' ',
> - tainted & TAINT_UNSAFE_SMP ? 'S' : ' ');
> + tainted & TAINT_UNSAFE_SMP ? 'S' : ' ',
> + tainted & TAINT_UNKNOWN_STATE ? 'U' : ' ');
> }
While you're in panic.c, want to add the missing flag for
TAINT_FORCED_RMMOD that Rusty missed ? Maybe 'R' ?
Dave
--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs
next prev parent reply other threads:[~2002-11-21 12:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-21 7:55 Zwane Mwaikambo
2002-11-21 7:59 ` Zwane Mwaikambo
2002-11-21 13:00 ` Dave Jones [this message]
2002-11-21 13:15 ` Zwane Mwaikambo
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=20021121130052.GB9883@suse.de \
--to=davej@codemonkey.org.uk \
--cc=akpm@digeo.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@holomorphy.com \
/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®