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)
Tue, Apr 21, 7:03 AM
Unknown Object (File)
Tue, Apr 21, 12:01 AM
Unknown Object (File)
Sun, Apr 19, 11:30 PM
Unknown Object (File)
Fri, Apr 17, 5:16 PM
Unknown Object (File)
Mon, Mar 30, 6:14 AM
Unknown Object (File)
Sat, Mar 28, 12:06 AM
Unknown Object (File)
Mar 18 2026, 1:35 PM
Unknown Object (File)
Mar 17 2026, 4:24 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