From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Linux module for causing a system hard lock-up
Date: Thu, 9 Jun 2011 14:06:49 +0700 [thread overview]
Message-ID: <BANLkTinfx0J5TQaaDFxwcwwW0101R4yjxg@mail.gmail.com> (raw)
In-Reply-To: <20110609044658.GB2036@michaelblizek.twilightparadox.com>
On Thu, Jun 9, 2011 at 11:46, Michael Blizek
<michi1@michaelblizek.twilightparadox.com> wrote:
> Hi!
>
> I am not sure whether my version works on smp. If it does not, maybe try
> something like this:
>
> #include <linux/stop_machine.h>
>
> int func(void *)
> {
> ? ? ? ?while (1) {
> ? ? ? ?}
> ? ? ? ?return 0;
> }
>
> int init_module(void)
> {
> ? ? ? ?stop_machine(func, 0, 0);
> ? ? ? ?return 0;
> }
>
> ? ? ? ?-Michi
I vote this....I was into the same situation years ago, when I
inaccidentally do busy looping during kernel module load.
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
next prev parent reply other threads:[~2011-06-09 7:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-08 19:27 Linux module for causing a system hard lock-up limp
2011-06-08 20:12 ` Daniel Baluta
2011-06-08 22:24 ` limp
2011-06-08 22:53 ` Jeff Haran
2011-06-08 22:53 ` Greg KH
2011-06-09 4:28 ` Michael Blizek
2011-06-09 4:46 ` Michael Blizek
2011-06-09 7:06 ` Mulyadi Santosa [this message]
2011-06-14 20:23 ` limp
2011-06-14 21:36 ` João Eduardo Luís
2011-06-28 14:35 ` hlist_add_head luca ellero
[not found] ` <BANLkTikb1ungKEJ_WoHOpMG+=-sHcFb5ag@mail.gmail.com>
2011-06-30 9:18 ` hlist_add_head piyush moghe
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=BANLkTinfx0J5TQaaDFxwcwwW0101R4yjxg@mail.gmail.com \
--to=mulyadi.santosa@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).