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)
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
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
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