Page MenuHomeFreeBSD

KERN_PROC_VM_LAYOUT sysctl: fix bug in 32-bit-compatible path
ClosedPublic

Authored by karels on Jul 7 2023, 12:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 30, 6:14 AM
Unknown Object (File)
Sat, Mar 28, 12:06 AM
Unknown Object (File)
Wed, Mar 18, 1:35 PM
Unknown Object (File)
Tue, Mar 17, 4:24 PM
Unknown Object (File)
Sat, Mar 14, 6:38 PM
Unknown Object (File)
Fri, Mar 13, 1:48 PM
Unknown Object (File)
Fri, Mar 13, 1:38 PM
Unknown Object (File)
Feb 8 2026, 5:23 PM
Subscribers

Details

Summary

vmspace_free() is called redundantly in the 32-bit-compatible
path in sysctl_kern_proc_vm_layout(), causing a premature free
(possibly for the current address space). Remove the extra call.

PR: 272401
Reported by: marklmi at yahoo.com

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable