Re: 2.4.21-pre5-ac2: kernel oops with "swapoff -a"

walt (wa1ter@myrealbox.com)
Sat, 08 Mar 2003 18:51:27 +0000


walt wrote:
> Alan Cox wrote:
>
>> On Sat, 2003-03-08 at 11:07, walt wrote:
>>
>>> When I do "swapoff -a" I still see the kernel oops that began with
>>> -pre4-ac7
>>> and has propagated to every 'ac' kernel since then.
>
>
>> Can you send me an strace swapoff -a ?

> swapoff("/dev/hda10") = -1 EINVAL (Invalid argument)
> read(3, "", 4096) = 0
> _exit(0) = ?

On further investigation I find that "swapoff <anyPartition>" will produce
the same oops and segfault in /sbin/swapoff, whereas if I supply a totally
bogus argument like 'swapoff xyz' I get an appropriate error message
instead of the oops:

swapoff("xyz") = -1 ENOENT (No such file or directory)
write(2, "swapoff: xyz: No such file or di"..., 40swapoff: xyz: No such file or
directory
) = 40
_exit(-1) = ?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/