From mboxrd@z Thu Jan 1 00:00:00 1970 From: mulyadi.santosa@gmail.com (Mulyadi Santosa) Date: Thu, 9 Jun 2011 14:06:49 +0700 Subject: Linux module for causing a system hard lock-up In-Reply-To: <20110609044658.GB2036@michaelblizek.twilightparadox.com> References: <20110609042849.GA2036@michaelblizek.twilightparadox.com> <20110609044658.GB2036@michaelblizek.twilightparadox.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Thu, Jun 9, 2011 at 11:46, Michael Blizek wrote: > Hi! > > I am not sure whether my version works on smp. If it does not, maybe try > something like this: > > #include > > 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