Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1183858pxu; Thu, 17 Dec 2020 04:20:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCnkgOJq+8jRwpnoA0HKOf6ac7cMMv8uVOEP/qZo24hsDvAuFfouj7DTf8qcKHRxNIXp8W X-Received: by 2002:a17:906:6414:: with SMTP id d20mr14496763ejm.82.1608207655950; Thu, 17 Dec 2020 04:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608207655; cv=none; d=google.com; s=arc-20160816; b=FnW0Q5CV0p5EGSbzAfGSbUBTvhyWB733tnRasz1EYykUs3DrbNHXuTxEPT0d5V73ZO Epvv+1XzbsZKwJmug4mAts90ZvVrtmCoCZQbzNVx16Mdwm9ttvqeX/CC0yhyZ7Px9c1s 7+zL/EnfsfM4bk8SIX5RER5tRsLDPYozYPz5++2t5fgHyjv3GEt5ghaAsSPG1oAVK1tI cFlipO/V1RBpPbHLxHGFgK8nxsSfxRkMsziZ6bfI8KRZMrFJa2r0JUFSik6evtvrryin ewABJU3v/rp5qRxMumV2P4wTW4leGSFeA3ZDcQyFt1h4umZ07AC8BcEF+TgQaPaKWfuj h+bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=kR9WhyJckjkn9rC+fwOQQzTY7bwD9+0hEh/LA6cVtGE=; b=uCHVtJ/6FUG3Cbpkt7pxWNMjn/FwCnXqKfGGZEuWGL4ij5CdxGCaOrd27qpdi4cq52 rA/x5aA9tFypDKyI7aswKeUYGmm2Qc9Zn4gjevDrp4g4KC5N7ooLflOF/N+MhMAHV2X4 dT/76c5njlDohCe8a0zV2e/Ee0RGShTbqpA8j/tv5yDTcX2w2eXnxryIp9sf7Ex6btyl TOIlvkMcJHkHcFZgVdIG8fKIBEpleX06xbXkt6nRpAt6DDvRtu9Zmzc2mvxps4oa+YJw xR5HR8GqHKAJLwOqmr4jBQw2MFGoMuGiSD6kOOd15jaLbXWyh+LgQ4KQ/alXMnITIOGH sMHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si2343046ejf.542.2020.12.17.04.20.33; Thu, 17 Dec 2020 04:20:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728649AbgLQMTP (ORCPT + 99 others); Thu, 17 Dec 2020 07:19:15 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:56198 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727064AbgLQMTJ (ORCPT ); Thu, 17 Dec 2020 07:19:09 -0500 X-UUID: 6b4ba48dba814d239b82b078ac514b0c-20201217 X-UUID: 6b4ba48dba814d239b82b078ac514b0c-20201217 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1088772760; Thu, 17 Dec 2020 20:18:25 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Dec 2020 20:18:22 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 17 Dec 2020 20:18:22 +0800 From: Kuan-Ying Lee To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Andrew Morton , Matthias Brugger CC: , , , , , , , Kuan-Ying Lee Subject: [PATCH v2 0/1] kasan: fix memory leak of kasan quarantine Date: Thu, 17 Dec 2020 20:18:06 +0800 Message-ID: <1608207487-30537-1-git-send-email-Kuan-Ying.Lee@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.18.0