Project

General

Profile

Actions

Bug #6122

open

dtrace_dof_actdesc() leaks 8 bytes on every dtrace run

Added by Marcel Telka over 8 years ago.

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

0%

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

Description

Run this:

# dtrace -n 'nlm_vhold_release:entry{nvp=(struct nlm_vhold *)arg1;print(stringof(nvp->nv_vp->v_path))}'
dtrace: description 'nlm_vhold_release:entry' matched 1 probe
^C

#

And you will see one 8 bytes long buffer leaked.

When I ran the above command three times I've got this:

kmem_alloc_8 leak: 3 buffers, 8 bytes each, 24 bytes total
            ADDR          BUFADDR        TIMESTAMP           THREAD
                            CACHE          LASTLOG         CONTENTS
ffffff00ef03d670 ffffff00ef86b040     babdc52b6a9d ffffff00ce1bd420
                 ffffff00c4825508 ffffff00c5398b40 ffffff00c652fd60
                 kmem_cache_alloc_debug+0x2e0
                 kmem_cache_alloc+0xdd
                 kmem_alloc+0x4b
                 dtrace_dof_actdesc+0x20f
                 dtrace_dof_ecbdesc+0x13c
                 dtrace_dof_slurp+0x396
                 dtrace_ioctl+0xd3d
                 cdev_ioctl+0x39
                 spec_ioctl+0x60
                 fop_ioctl+0x55
                 ioctl+0x9b

No data to display

Actions

Also available in: Atom PDF