Internal error: bad swap-device [2.1.88, probably SWP_TYPE problem]

Pavel Machek (pavel@elf.ucw.cz)
Sun, 8 Mar 1998 00:58:20 +0100


Hi!

Under 2.1.88, I can reliably force kernel to print lots of

Mar 8 00:44:08 Elf kernel: Internal error: bad swap-device
Mar 8 00:44:08 Elf kernel: swap_free: Trying to free nonexistent
swap-page
Mar 8 00:44:08 Elf kernel: Internal error: bad swap-device
Mar 8 00:44:08 Elf kernel: swap_free: Trying to free nonexistent
swap-page

by simply starting wine. (Strange think is, that wine now works. It
used to be broken :-). Machine stays pretty healthy (as far as I can
see).

Hmm, both are because:

type = SWP_TYPE(entry);
...
if (type >= nr_swapfiles)
goto bad_nofile;

As SWP_TYPE was changed in 2.1.87, I think it is 'the' problem. I'll
let mm hackers (Linus?) finish this.

Pavel

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu