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
F163259485: D40908.id.diff
Tue, Jul 21, 12:43 PM
F163251369: D40908.id124278.diff
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)
Tue, Jun 23, 2:43 AM
Unknown Object (File)
Jun 13 2026, 3:23 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