netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Garry <john.garry@huawei.com>
To: <edumazet@google.com>, "David S . Miller" <davem@davemloft.net>,
	<kuznet@ms2.inr.ac.ru>, <yoshfuji@linux-ipv6.org>,
	<kuba@kernel.org>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: kmemleak report in tcp_metrics_init()->genl_register_family()
Date: Wed, 4 Mar 2020 17:53:53 +0000	[thread overview]
Message-ID: <786c9926-e92c-32d5-6a1f-b6352a077d5f@huawei.com> (raw)

Hi guys,

On 5.6-rc4, I get this report of a memory leak after booting:

root@(none)$ more /sys/kernel/debug/kmemleak
unreferenced object 0xffff2027d1838300 (size 128):
   comm "swapper/0", pid 1, jiffies 4294894708 (age 155.112s)
   hex dump (first 32 bytes):
     80 82 83 d1 27 20 ff ff 00 00 00 00 00 00 00 00  ....' ..........
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
   backtrace:
     [<(____ptrval____)>] __kmalloc+0x1c8/0x2d0
     [<(____ptrval____)>] genl_register_family+0x300/0x6a8
     [<(____ptrval____)>] tcp_metrics_init+0x30/0x48
     [<(____ptrval____)>] tcp_init+0x270/0x29c
     [<(____ptrval____)>] inet_init+0x178/0x264
     [<(____ptrval____)>] do_one_initcall+0x5c/0x1b0
     [<(____ptrval____)>] kernel_init_freeable+0x1f8/0x260
     [<(____ptrval____)>] kernel_init+0x10/0x108
     [<(____ptrval____)>] ret_from_fork+0x10/0x18


.config is here https://pastebin.com/RbvNz825, dmesg 
https://pastebin.com/ABW4S1Qw

Cheers,
John

                 reply	other threads:[~2020-03-04 17:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=786c9926-e92c-32d5-6a1f-b6352a077d5f@huawei.com \
    --to=john.garry@huawei.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=netdev@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).