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, Sep 6, 6:18 PM
Unknown Object (File)
Sun, Sep 6, 1:08 AM
Unknown Object (File)
Sun, Sep 6, 1:02 AM
Unknown Object (File)
Sep 1 2026, 3:45 PM
Unknown Object (File)
Aug 31 2026, 11:27 PM
Unknown Object (File)
Aug 31 2026, 2:44 PM
Unknown Object (File)
Aug 31 2026, 10:17 AM
Unknown Object (File)
Aug 29 2026, 11:34 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