[lkml]   [2003]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.4.21-pre5-ac2: kernel oops with "swapoff -a"
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
) = 40
_exit(-1) = ?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:33    [W:0.022 / U:1.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site