Project

General

Profile

Actions

Bug #5085

open

errno clobbering in libdtrace

Added by Mark Johnston almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2014-08-13
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

I've been seeing occasional errors from dtrace(1) on FreeBSD which were caused by the BUFSNAP ioctl returning an error, but returning an errno of something other than ENOENT. It turns out that libdtrace calls free(3) on a buffer before interrogating errno in the error case; this occasionally clobbers errno, causing the problem.

There are a few other ioctl calls in libdtrace with a similar bug. I've fixed them here: http://svnweb.freebsd.org/base?view=revision&revision=269524


Related issues

Related to illumos gate - Bug #4202: dtrace: invalid errno value in pid providerNew2013-10-12

Actions

No data to display

Actions

Also available in: Atom PDF