CVS: cvs.openbsd.org: src

Kirill A. Korinsky <[email protected]> Sat, 8 Aug 2026 11:38:45 -0600 (MDT)
Newsgroups gmane.os.openbsd.cvs
Message-ID <[email protected]>
CVSROOT:	/cvs
Module name:	src
Changes by:	[email protected]	2026/08/08 11:38:45

Modified files:
	sys/uvm        : uvm_amap.c 

Log message:
sys/uvm: unwind failed amap copies

A PR_NOWAIT chunk allocation in amap_copy() may fail after earlier
chunks already contain copied anons; amap_free() requires an empty amap,
so direct cleanup trips its diagnostic assertion or leaves copied anon
references orphaned which may end who knows how.

Uuse amap_wipeout() instead to reverse the partial copy, release the
shared lock, and free the temporary amap.

OK: kettenis@