Skip to contentSkip to conversation

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

DISCUSSION walt 1 participant 1 message Mar 9, 2003 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

walt

author
#2 lore raw
Quoted 9 lines · walt
Quoted 5 lines · Alan Cox
Quoted 3 lines · walt

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.

Quoted 6 lines
Quoted 1 line

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) = ?