Re: Whats a sure fire way to crash the kernel?

Richard Gooch (rgooch@atnf.CSIRO.AU)
Mon, 23 Jun 1997 23:48:24 +1000 writes:
> On Mon, 23 Jun 1997, Dave Cinege wrote:
> >Need to test a watchdog card.....
> >What's a sure fire way to lock the kernel?
> Let a pointer dance on it's own through the kernel memory,
> or make an infinite idle loop (better this one) as a module.

Well, if you're going to write a module, why not implement a finite
loop, so that if the watchdog doesn't work, then after a while you get
your system back without having to hit reset and wait for filesystem
checks. And with such a module it might be nice to somehow update the
system clock from the hardware (CMOS) clock if the long loop
terminates, so you get the right time back.