kmemleak report in tcp_metrics_init()->genl_register_family()

From: John Garry <hidden>
Date: 2020-03-04 17:53:59

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help