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, May 19, 1:59 AM
Unknown Object (File)
May 13 2026, 9:57 PM
Unknown Object (File)
May 13 2026, 9:56 PM
Unknown Object (File)
May 13 2026, 9:48 PM
Unknown Object (File)
May 13 2026, 9:48 PM
Unknown Object (File)
Apr 29 2026, 12:03 PM
Unknown Object (File)
Apr 29 2026, 12:01 PM
Unknown Object (File)
Apr 28 2026, 5:18 AM
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