Page MenuHomeFreeBSD

Handle kd == NULL gracefully with kvm_close(3)
ClosedPublic

Authored by ngie on Mar 20 2017, 6:08 PM.
Tags
None
Referenced Files
F176600432: D10065.id26462.diff
Tue, Oct 20, 3:28 AM
F176600404: D10065.id26459.diff
Tue, Oct 20, 3:28 AM
F176600179: D10065.id26458.diff
Tue, Oct 20, 3:26 AM
F176600118: D10065.diff
Tue, Oct 20, 3:25 AM
Unknown Object (File)
Sat, Oct 10, 2:56 PM
Unknown Object (File)
Sep 17 2026, 5:32 AM
Unknown Object (File)
Sep 16 2026, 9:00 AM
Unknown Object (File)
Sep 14 2026, 6:37 PM

Details

Summary

Handle kd == NULL gracefully with kvm_close(3)

Don't segfault in kvm_close(3) if provided a NULL pointer. Instead, return
-1 and set errno to EINVAL.

Document this new behavior explicitly.

MFC after: 1 week
Sponsored by: Dell EMC Isilon

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Add kvm_open(3) manpage changes (oddly, arc diff --create didn't complain
about the second arg being invalid -- hah!)

lib/libkvm/kvm_open.3
247 ↗(On Diff #26459)

This needs to be changed

Remove * before description of kd argument passed to kvm_close in the ERRORS section

This revision is now accepted and ready to land.Mar 20 2017, 6:22 PM
This revision was automatically updated to reflect the committed changes.