From: Carlos <carloscarral13@gmail.com>
To: rust-for-linux@vger.kernel.org
Subject: Loading an out-of-tree module
Date: Thu, 29 Apr 2021 09:32:34 -0500 [thread overview]
Message-ID: <YIrDgupEqcmsUfGX@localhost.localdomain> (raw)
Good morning (or good afternoon) to all,
I managed to build an out-of-tree HelloWorld module. However, when I
tried loading it in the kernel (booted with eudyptula-boot)
and dmesg inside the shell, I get a 'loading out-of-tree module taints kernel':
struct HelloWorld;
impl KernelModule for HelloWorld {
fn init() -> KernelResult<Self> {
pr_alert!("This is a rust kernel module");
Ok(HelloWorld {})
}
}
impl Drop for HelloWorld {
fn drop(&mut self) {
pr_alert!("Dropping rust kmod!");
}
}
[...]
$ insmod hello_world.kmod
$ dmesg | tail -1
[ 38.462244] hello_world: loading out-of-tree module taints kernel.
$ rmmod hello_world
[ 38.462402] hello_world: This is a rust kernel module
$ insmod hello_world.ko
[ 315.360871] hello_world: Dropping rust kmod!
$ dmesg | tail -2
[ 38.462402] hello_world: This is a rust kernel module
[ 315.360871] hello_world: Dropping rust kmod!
And from then on all module messages are one off.
Is the 'loading out-of-tree module taints kernel' messsage something you
can disable at .config? Or is it something particular to eudyptula-boot?
Thank you for your patience,
Carlos
next reply other threads:[~2021-04-29 14:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-29 14:32 Carlos [this message]
2021-04-29 14:38 ` Loading an out-of-tree module Sven Van Asbroeck
2021-04-29 14:52 ` Sven Van Asbroeck
2021-04-29 15:16 ` Greg KH
2021-04-29 15:56 ` Carlos
2021-04-29 16:05 ` Wedson Almeida Filho
2021-04-29 16:06 ` Miguel Ojeda
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=YIrDgupEqcmsUfGX@localhost.localdomain \
--to=carloscarral13@gmail.com \
--cc=rust-for-linux@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