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
F163395439: D40908.id124280.diff
Wed, Jul 22, 8:09 PM
Unknown Object (File)
Tue, Jul 21, 12:43 PM
Unknown Object (File)
Tue, Jul 21, 10:40 AM
Unknown Object (File)
Mon, Jul 20, 3:29 AM
Unknown Object (File)
Tue, Jul 14, 1:59 AM
Unknown Object (File)
Sun, Jul 5, 6:27 AM
Unknown Object (File)
Sat, Jul 4, 8:31 PM
Unknown Object (File)
Jun 23 2026, 2:43 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