svn commit: r362613 - in head/sys: dev/md fs/tmpfs kern vm

Mark Johnston markj at freebsd.org
Thu Jun 25 15:32:41 UTC 2020


On Thu, Jun 25, 2020 at 03:21:22PM +0000, Mark Johnston wrote:
> Author: markj
> Date: Thu Jun 25 15:21:21 2020
> New Revision: 362613
> URL: https://svnweb.freebsd.org/changeset/base/362613
> 
> Log:
>   Call swap_pager_freespace() from vm_object_page_remove().
>   
>   All vm_object_page_remove() callers, except
>   linux_invalidate_mapping_pages() in the LinuxKPI, free swap space when
>   removing a range of pages from an object.  The LinuxKPI case appears to
>   be an unintentional omission that could result in leaked swap blocks, so
>   unconditionally free swap space in vm_object_page_remove() to protect
>   against similar bugs in the future.
>   
>   Reviewed by:	alc, kib
>   Tested by:	pho
>   Sponsored by:	The FreeBSD Foundation
>   Differential Revision:	https://reviews.freebsd.org/D25329

I forgot to add an MFC tag.  I intend to MFC this commit.


More information about the svn-src-all mailing list