Project

General

Profile

Actions

Bug #7737

closed

libipadm`ipadm_enable_if() leaks ifnvl

Added by Yuri Pankov almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2017-01-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

antares:root:~# ipadm disable-if -t vmxnet3s1
antares:root:~# mdb /sbin/ipadm
> ::sysbp _exit
> ::run enable-if -t vmxnet3s1
mdb: stop on entry to _exit
mdb: target stopped at:
0xfee556ba:     nop
mdb: You've got symbols!
Loading modules: [ ld.so.1 libumem.so.1 libc.so.1 libnvpair.so.1 ]
> ::findleaks -d
CACHE     LEAKED   BUFCTL CALLER
08078590       1 080a3e40 libnvpair.so.1`nv_alloc_sys+0x1b
08078590       2 080a3f78 libnvpair.so.1`nv_alloc_sys+0x1b
08078590       1 080a3f10 libnvpair.so.1`nv_alloc_sys+0x1b
08079590       2 080c4270 libnvpair.so.1`nv_alloc_sys+0x1b
0807b010       2 080b8068 libnvpair.so.1`nv_alloc_sys+0x1b
0807c010       2 080b0138 libnvpair.so.1`nv_alloc_sys+0x1b
------------------------------------------------------------------------
   Total      10 buffers, 496 bytes

umem_alloc_32 leak: 1 buffer, 32 bytes
            ADDR          BUFADDR        TIMESTAMP           THREAD
                            CACHE          LASTLOG         CONTENTS
         80a3e40          809ff38      1e0f04c4bd0                1
                          8078590                0                0
                 libumem.so.1`umem_cache_alloc_debug+0x1fe
                 libumem.so.1`umem_cache_alloc+0x99
                 libumem.so.1`umem_alloc+0x50
                 libumem.so.1`umem_malloc+0x36
                 libnvpair.so.1`nv_alloc_sys+0x1b
                 libnvpair.so.1`nv_priv_alloc+0x13
                 libnvpair.so.1`nvlist_xalloc+0x1c
                 libnvpair.so.1`nvlist_xunpack+0x34
                 libnvpair.so.1`nvlist_unpack+0x29
                 libipadm.so.1`i_ipadm_init_ifs+0x155
                 libipadm.so.1`ipadm_enable_if+0x98
                 do_enable_if+0x55
                 main+0xdf
                 _start+0x83

umem_alloc_32 leak: 2 buffers, 32 bytes each, 64 bytes total
            ADDR          BUFADDR        TIMESTAMP           THREAD
                            CACHE          LASTLOG         CONTENTS
         80a3f78          809fea8      1e0f04c685a                1
                          8078590                0                0
                 libumem.so.1`umem_cache_alloc_debug+0x1fe
                 libumem.so.1`umem_cache_alloc+0x18f
                 libumem.so.1`umem_alloc+0x50
                 libumem.so.1`umem_malloc+0x36
                 libnvpair.so.1`nv_alloc_sys+0x1b
                 libnvpair.so.1`nv_mem_zalloc+0x25
                 libnvpair.so.1`nv_priv_alloc_embedded+0x13
                 libnvpair.so.1`nvs_embedded+0x6c
                 libnvpair.so.1`nvpair_native_embedded+0x59
                 libnvpair.so.1`nvs_native_nvp_op+0x98
                 libnvpair.so.1`nvs_decode_pairs+0x5d
                 libnvpair.so.1`nvs_operation+0x5e
                 libnvpair.so.1`nvs_native+0x4f
                 libnvpair.so.1`nvlist_common+0xb2
                 libnvpair.so.1`nvlist_xunpack+0x53

umem_alloc_32 leak: 1 buffer, 32 bytes
            ADDR          BUFADDR        TIMESTAMP           THREAD
                            CACHE          LASTLOG         CONTENTS
         80a3f10          809fed8      1e0f04c54d2                1
                          8078590                0                0
                 libumem.so.1`umem_cache_alloc_debug+0x1fe
                 libumem.so.1`umem_cache_alloc+0x18f
                 libumem.so.1`umem_alloc+0x50
                 libumem.so.1`umem_malloc+0x36
                 libnvpair.so.1`nv_alloc_sys+0x1b
                 libnvpair.so.1`nv_mem_zalloc+0x25
                 libnvpair.so.1`nvlist_xalloc+0x37
                 libnvpair.so.1`nvlist_xunpack+0x34
                 libnvpair.so.1`nvlist_unpack+0x29
                 libipadm.so.1`i_ipadm_init_ifs+0x155
                 libipadm.so.1`ipadm_enable_if+0x98
                 do_enable_if+0x55
                 main+0xdf
                 _start+0x83

umem_alloc_48 leak: 2 buffers, 48 bytes each, 96 bytes total
            ADDR          BUFADDR        TIMESTAMP           THREAD
                            CACHE          LASTLOG         CONTENTS
         80c4270          80c3fc0      1e0f04d8252                1
                          8079590                0                0
                 libumem.so.1`umem_cache_alloc_debug+0x1fe
                 libumem.so.1`umem_cache_alloc+0x18f
                 libumem.so.1`umem_alloc+0x50
                 libumem.so.1`umem_malloc+0x36
                 libnvpair.so.1`nv_alloc_sys+0x1b
                 libnvpair.so.1`nv_mem_zalloc+0x25
                 libnvpair.so.1`nvp_buf_alloc+0x19
                 libnvpair.so.1`nvs_decode_pairs+0x3c
                 libnvpair.so.1`nvs_operation+0x5e
                 libnvpair.so.1`nvs_embedded+0xa4
                 libnvpair.so.1`nvpair_native_embedded+0x59
                 libnvpair.so.1`nvs_native_nvp_op+0x98
                 libnvpair.so.1`nvs_decode_pairs+0x5d
                 libnvpair.so.1`nvs_operation+0x5e
                 libnvpair.so.1`nvs_native+0x4f

umem_alloc_56 leak: 2 buffers, 56 bytes each, 112 bytes total
            ADDR          BUFADDR        TIMESTAMP           THREAD
                            CACHE          LASTLOG         CONTENTS
         80b8068          80b6f38      1e0f04c7147                1
                          807b010                0                0
                 libumem.so.1`umem_cache_alloc_debug+0x1fe
                 libumem.so.1`umem_cache_alloc+0x18f
                 libumem.so.1`umem_alloc+0x50
                 libumem.so.1`umem_malloc+0x36
                 libnvpair.so.1`nv_alloc_sys+0x1b
                 libnvpair.so.1`nv_mem_zalloc+0x25
                 libnvpair.so.1`nvp_buf_alloc+0x19
                 libnvpair.so.1`nvs_decode_pairs+0x3c
                 libnvpair.so.1`nvs_operation+0x5e
                 libnvpair.so.1`nvs_embedded+0xa4
                 libnvpair.so.1`nvpair_native_embedded+0x59
                 libnvpair.so.1`nvs_native_nvp_op+0x98
                 libnvpair.so.1`nvs_decode_pairs+0x5d
                 libnvpair.so.1`nvs_operation+0x5e
                 libnvpair.so.1`nvs_native+0x4f

umem_alloc_80 leak: 2 buffers, 80 bytes each, 160 bytes total
            ADDR          BUFADDR        TIMESTAMP           THREAD
                            CACHE          LASTLOG         CONTENTS
         80b0138          80afea8      1e0f04c5f6b                1
                          807c010                0                0
                 libumem.so.1`umem_cache_alloc_debug+0x1fe
                 libumem.so.1`umem_cache_alloc+0x18f
                 libumem.so.1`umem_alloc+0x50
                 libumem.so.1`umem_malloc+0x36
                 libnvpair.so.1`nv_alloc_sys+0x1b
                 libnvpair.so.1`nv_mem_zalloc+0x25
                 libnvpair.so.1`nvp_buf_alloc+0x19
                 libnvpair.so.1`nvs_decode_pairs+0x3c
                 libnvpair.so.1`nvs_operation+0x5e
                 libnvpair.so.1`nvs_native+0x4f
                 libnvpair.so.1`nvlist_common+0xb2
                 libnvpair.so.1`nvlist_xunpack+0x53
                 libnvpair.so.1`nvlist_unpack+0x29
                 libipadm.so.1`i_ipadm_init_ifs+0x155
                 libipadm.so.1`ipadm_enable_if+0x98

>
Actions #1

Updated by Electric Monk almost 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

git commit cc6b30399e68fb9666466c57ed822f297b2c6ae4

commit  cc6b30399e68fb9666466c57ed822f297b2c6ae4
Author: Yuri Pankov <yuri.pankov@nexenta.com>
Date:   2017-01-06T21:45:01.000Z

    7737 libipadm`ipadm_enable_if() leaks ifnvl
    Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
    Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF