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
F108577901: D40908.diff
Sun, Jan 26, 1:37 PM
Unknown Object (File)
Nov 10 2024, 10:27 AM
Unknown Object (File)
Oct 8 2024, 8:15 AM
Unknown Object (File)
Oct 3 2024, 5:56 AM
Unknown Object (File)
Oct 1 2024, 1:53 PM
Unknown Object (File)
Oct 1 2024, 3:20 AM
Unknown Object (File)
Sep 23 2024, 9:36 PM
Unknown Object (File)
Sep 20 2024, 8:55 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