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
F114900704: D40908.id124280.diff
Fri, Apr 18, 7:43 AM
F114886777: D40908.diff
Fri, Apr 18, 3:36 AM
Unknown Object (File)
Mon, Apr 14, 2:33 PM
Unknown Object (File)
Feb 10 2025, 7:11 AM
Unknown Object (File)
Jan 27 2025, 8:32 AM
Unknown Object (File)
Jan 27 2025, 8:26 AM
Unknown Object (File)
Jan 26 2025, 1:37 PM
Unknown Object (File)
Nov 10 2024, 10:27 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 Passed
Unit
No Test Coverage
Build Status
Buildable 52476
Build 49367: arc lint + arc unit