[Devel] [PATCH rh7 1/4] debugobjects: Make kmemleak ignore debug objects

2017-11-14 Thread Andrey Ryabinin
From: Waiman Long The allocated debug objects are either on the free list or in the hashed bucket lists. So they won't get lost. However if both debug objects and kmemleak are enabled and kmemleak scanning is done while some of the debug objects are transitioning from one

[Devel] [PATCH rh7 2/4] net: sysctl: fix a kmemleak warning

2017-11-14 Thread Andrey Ryabinin
From: Li RongQing the returned buffer of register_sysctl() is stored into net_header variable, but net_header is not used after, and compiler maybe optimise the variable out, and lead kmemleak reported the below warning comm "swapper/0", pid 1, jiffies 4294937448

[Devel] [PATCH rh7 4/4] tty/vt: Fix the memory leak in visual_init

2017-11-14 Thread Andrey Ryabinin
From: Dongxing Zhang If vc->vc_uni_pagedir_loc is not NULL, its refcount needs to be decreased before vc_uni_pagedir_loc is re-assigned. unreferenced object 0x88002cdd13b0 (size 512): comm "setfont", pid 503, jiffies 4294896503 (age 722.828s) hex dump (first 32

[Devel] [PATCH rh7 3/4] kernel/ucount.c: mark user_header with kmemleak_ignore()

2017-11-14 Thread Andrey Ryabinin
From: "Luis R. Rodriguez" The user_header gets caught by kmemleak with the following splat as missing a free: unreferenced object 0x99667a733d80 (size 96): comm "swapper/0", pid 1, jiffies 4294892317 (age 62191.468s) hex dump (first 32 bytes): a0 b6 92 b4 ff ff