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
F168076186: D10065.diff
Wed, Aug 26, 6:40 AM
F168065350: D10065.id26462.diff
Wed, Aug 26, 5:21 AM
F168051948: D10065.id26460.diff
Wed, Aug 26, 3:49 AM
F168041340: D10065.id26459.diff
Wed, Aug 26, 2:19 AM
F168019320: D10065.id.diff
Tue, Aug 25, 11:04 PM
Unknown Object (File)
Mon, Aug 24, 7:21 PM
Unknown Object (File)
Mon, Aug 24, 4:12 PM
Unknown Object (File)
Mon, Aug 24, 2:17 AM

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

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

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.