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)
Sun, Jun 29, 5:13 PM
Unknown Object (File)
Sat, Jun 28, 6:55 PM
Unknown Object (File)
Thu, Jun 26, 9:04 PM
Unknown Object (File)
Thu, Jun 19, 3:37 AM
Unknown Object (File)
May 27 2025, 2:32 PM
Unknown Object (File)
Apr 29 2025, 11:57 AM
Unknown Object (File)
Apr 21 2025, 9:21 AM
Unknown Object (File)
Apr 19 2025, 7:40 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