mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: li nux <lnxluv@yahoo.com>
To: randy_dunlap <rdunlap@xenotime.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6: problem with module tainting the kernel
Date: Sun, 12 Jun 2005 02:25:44 -0700 (PDT)	[thread overview]
Message-ID: <20050612092544.25913.qmail@web33308.mail.mud.yahoo.com> (raw)
In-Reply-To: <20050610201812.037b6a01.rdunlap@xenotime.net>

Thanks to Randy and everyone who replied.
Yes, I am using SuSE kernel.
On building the module it successfully generates
hello.ko.
Here is the message I get on doing a insmod of
hello.ko:

"Jun 12 14:47:56 myhost kernel: hello: unsupported
module, tainting kernel."

Here is the code

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/version.h>
#include <linux/vermagic.h>

static int __init hello_init (void)
{
        printk("module hello loading");
        return 0;
}

static void __exit hello_exit (void)
{
        printk("module hello exiting");
}

module_init(hello_init);
module_exit(hello_exit);
MODULE_LICENSE ("GPL");

--- randy_dunlap <rdunlap@xenotime.net> wrote:

> On Fri, 10 Jun 2005 08:24:50 -0700 (PDT) li nux
> wrote:
> 
> | In 2.6 kernels how to assure that on inserting our
> own
> | module, it doesn't throw the warning:
> | 
> | "unsupported module, tainting kernel"
> 
> That string is not in the kernel source code that I
> can see.
> Be more precise, please.
> 
> 
> | what tainting depends on apart from the license
> string ?
> 
> load:
> 
> - CONFIG_MODVERSIONS is set but some symbol does not
> have
>   version info
> 
> - a license that is not GPL-compatible
> 
> - no version magic info for the module
> 
> unload:
> 
> - forcefully unloading a module
> 
> ---
> ~Randy
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

  reply	other threads:[~2005-06-12  9:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-10 15:24 li nux
2005-06-10 15:35 ` Christoph Hellwig
2005-06-11  3:11   ` randy_dunlap
2005-06-11  3:18 ` randy_dunlap
2005-06-12  9:25   ` li nux [this message]
2005-06-12 15:31     ` Carlos Martin
2005-06-11 21:42 ` Carsten Otte

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=20050612092544.25913.qmail@web33308.mail.mud.yahoo.com \
    --to=lnxluv@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@xenotime.net \
    /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®