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
F166797171: D40908.diff
Sun, Aug 16, 6:40 PM
F166797165: D40908.diff
Sun, Aug 16, 6:40 PM
Unknown Object (File)
Mon, Aug 10, 5:35 PM
Unknown Object (File)
Mon, Aug 10, 10:19 AM
Unknown Object (File)
Sat, Aug 8, 6:51 PM
Unknown Object (File)
Thu, Aug 6, 1:18 AM
Unknown Object (File)
Wed, Aug 5, 5:39 PM
Unknown Object (File)
Wed, Jul 22, 8:09 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 Passed
Unit
No Test Coverage
Build Status
Buildable 52476
Build 49367: arc lint + arc unit