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)
Dec 20 2023, 3:27 AM
Unknown Object (File)
Dec 10 2023, 9:11 PM
Unknown Object (File)
Oct 28 2023, 11:29 AM
Unknown Object (File)
Oct 28 2023, 3:10 AM
Unknown Object (File)
Oct 9 2023, 2:05 AM
Unknown Object (File)
Oct 9 2023, 2:05 AM
Unknown Object (File)
Sep 5 2023, 11:04 PM
Unknown Object (File)
Sep 4 2023, 7:39 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