lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 11 Jan 2007 16:09:38 +0000 (GMT)
From:	Hugh Dickins <hugh@...itas.com>
To:	Jacky Malcles <Jacky.Malcles@...l.net>
cc:	linux-kernel@...r.kernel.org
Subject: Re: can't cleanup /proc/swaps without rebooting ?

On Thu, 11 Jan 2007, Jacky Malcles wrote:
> 
> is there a way, other than rebooting, to clean up /proc/swaps ?
> 
> I'm in this situation (due to testing errors),
> # cat /proc/swaps
> Filename                                Type            Size    Used
> Priority
> /dev/sdc1                               partition       2040064 0       -1
> /tmp/swaH4mvTI/swapfilenext\040(deleted) file           48960   0       -31
> /tmp/swa5TlBva/swapfilenext\040(deleted) file           49088   0       -118
> #
> #swapon -s
> Filename                                Type            Size    Used
> Priority
> /dev/sdc1                               partition       2040064 0       -1
> /tmp/swaH4mvTI/swapfilenext\040(deleted) file           48960   0       -31
> /tmp/swa5TlBva/swapfilenext\040(deleted) file           49088   0       -118
> #

Good question.  Sorry, I don't see another way than rebooting.
Next time you're testing, best keep a link to those swapfiles.
Not an answer to be proud of, but it looks like a better answer
would need a whole new syscall (or perhaps some /proc trickery).

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

Powered by blists - more mailing lists