lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 1 Nov 2016 11:32:52 -0700
From:   Cong Wang <xiyou.wangcong@...il.com>
To:     Jakub Kicinski <kubakici@...pl>
Cc:     Johannes Berg <johannes@...solutions.net>,
        Dmitry Torokhov <dmitry.torokhov@...il.com>,
        Maciej Żenczykowski <zenczykowski@...il.com>,
        Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: new kmemleak reports (was: Re: [PATCH 0/5] genetlink improvements)

On Tue, Nov 1, 2016 at 10:28 AM, Jakub Kicinski <kubakici@...pl> wrote:
> unreferenced object 0xffff8807389cba28 (size 128):
>   comm "swapper/0", pid 1, jiffies 4294898463 (age 781.332s)
>   hex dump (first 32 bytes):
>     6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
>     6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk
>   backtrace:
>     [<ffffffff85decad8>] kmemleak_alloc+0x28/0x50
>     [<ffffffff84771246>] __kmalloc+0x206/0x5a0
>     [<ffffffff859e1261>] genl_register_family+0x711/0x11d0
>     [<ffffffff888d9524>] netlbl_mgmt_genl_init+0x10/0x12
>     [<ffffffff888d91e8>] netlbl_netlink_init+0x9/0x26
>     [<ffffffff888d9254>] netlbl_init+0x4f/0x85
>     [<ffffffff840022b7>] do_one_initcall+0xb7/0x2a0
>     [<ffffffff887f9102>] kernel_init_freeable+0x597/0x636
>     [<ffffffff85de7793>] kernel_init+0x13/0x140
>     [<ffffffff85e0246a>] ret_from_fork+0x2a/0x40

Looks like we are missing a kfree(family->attrbuf); on error path,
but it is not related to Johannes' recent patches.

Could the attached patch help?

Thanks.

View attachment "genetlink.diff" of type "text/plain" (632 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ