2002-06-23 19:38:28

by Qin Tao

[permalink] [raw]
Subject: kernel taint

Hi,

I am using redhat7.3 (kernel 2.4.18-3). When I tried to insert a
kernel module, I got the following warning message:

"Warning: loading mymodule.o will taint the kernel: forced load"

I didn't see this problem when I inserted the module to some earlier
version kernels, such as 2.4.15. Does anybody know what does the warning
message mean and how can I modify my module code to avoid that?

Thanks in advance.

Qin


2002-06-23 21:53:46

by Samuel Flory

[permalink] [raw]
Subject: Re: kernel taint

If this is a module in the RH kernel this may just be due to
mislabeling of the license string. What's the module?

On Sun, 2002-06-23 at 12:37, Qin Tao wrote:
> Hi,
>
> I am using redhat7.3 (kernel 2.4.18-3). When I tried to insert a
> kernel module, I got the following warning message:
>
> "Warning: loading mymodule.o will taint the kernel: forced load"
>
> I didn't see this problem when I inserted the module to some earlier
> version kernels, such as 2.4.15. Does anybody know what does the warning
> message mean and how can I modify my module code to avoid that?
>
> Thanks in advance.
>
> Qin
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>


2002-06-24 11:06:35

by Vincent Hanquez

[permalink] [raw]
Subject: Re: kernel taint

On Sun, Jun 23, 2002 at 03:37:47PM -0400, Qin Tao wrote:
> Hi,
>
> I am using redhat7.3 (kernel 2.4.18-3). When I tried to insert a
> kernel module, I got the following warning message:
>
> "Warning: loading mymodule.o will taint the kernel: forced load"
>
> I didn't see this problem when I inserted the module to some earlier
> version kernels, such as 2.4.15. Does anybody know what does the warning
> message mean and how can I modify my module code to avoid that?
>
> Thanks in advance.

I think you can add : MODULE_LICENSE("GPL"); to avoid to taint the
kernel.

you can find others license in the linux source code.
Restrictive licence or unknown license may taint the kernel too.

--
Tab