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
F139324130: D40908.diff
Wed, Dec 10, 8:48 PM
Unknown Object (File)
Sat, Dec 6, 4:13 AM
Unknown Object (File)
Wed, Nov 26, 8:09 PM
Unknown Object (File)
Nov 8 2025, 7:33 PM
Unknown Object (File)
Oct 31 2025, 2:05 PM
Unknown Object (File)
Oct 31 2025, 2:04 PM
Unknown Object (File)
Oct 18 2025, 11:11 PM
Unknown Object (File)
Oct 15 2025, 5:47 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