mbox series

[v2,0/1] kasan: fix memory leak of kasan quarantine

Message ID 1608207487-30537-1-git-send-email-Kuan-Ying.Lee@mediatek.com (mailing list archive)
Headers show
Series kasan: fix memory leak of kasan quarantine | expand

Message

Kuan-Ying Lee (李冠穎) Dec. 17, 2020, 12:18 p.m. UTC
When cpu is going offline, set q->offline as true
and interrupt happened. The interrupt may call the
quarantine_put. But quarantine_put do not free the
the object. The object will cause memory leak.

Add qlink_free() to free the object.

Changes since v2:
 - Add Fixes in the commit message

Kuan-Ying Lee (1):
  kasan: fix memory leak of kasan quarantine

 mm/kasan/quarantine.c | 1 +
 1 file changed, 1 insertion(+)