Linux module for causing a system hard lock-up
Mulyadi Santosa
mulyadi.santosa at gmail.com
Thu Jun 9 03:06:49 EDT 2011
On Thu, Jun 9, 2011 at 11:46, Michael Blizek
<michi1 at 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
More information about the Kernelnewbies
mailing list