Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3290690pxu; Tue, 15 Dec 2020 03:31:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDjN9morO48dQeaKT1K67vCbhDoNH4SHTWAvQFJ6JBrZ4cmsR2nD5OTGrWGOoA4843SCYa X-Received: by 2002:a17:907:a96:: with SMTP id by22mr25593878ejc.171.1608031883167; Tue, 15 Dec 2020 03:31:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608031883; cv=none; d=google.com; s=arc-20160816; b=0AfgDfxSmvwaI+qBwm1IgkZX7hvBsWh67Z5IgPsMfTKN34bMu892C6+lXzk2N3QNXU CvP0M29BHqFgOJRInPYFs8pls/1967JnjxkvZ/XaF9bQp9MxjwGR/gxAEshA3pBaw1Kp hM1ylXT/YbQLeYoQLVnUuASaZ3SvTk6IJt7jwdIhd/3RlMeo1KBuibrouF5bGAHZ/5fM RHRGq9/MabTi1vYfmaTrCYoPgUhr58MWum/sgVYtBQOQEK7xgII7eJXmH3jrNvQpFA7T NesMAwSzwUwUKCAubIsiVeRzp9QRizvvZTSfcKNuCFzvLd0MiJahXvCTBEAoKR0nDwe5 sCPQ== 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=yKeVSLRQA3b7WWkL80WouRwlRH34UmsKrjgZqaywmSI=; b=zcE+oo1evyaPKecT1ZX/lCacLlCKHX20LtX/k0sq0ZqVh/+Pi8PVEeDYWlQn1JSltR Hg21et6IC5DOzwA0t4O75NRFZEEV9InSziYO0psjSPPy33oGtqHffXMSN9pFcqsW4DUx C7ZZ3xoj7DOixm9MbvEmJMZXWakAe/CJ+1lHtnue+IimBNwC2aAS9OzuLFrQzb6d/q2x Wf+0SRHjZAkISW+6XI3y3XUhc+ISVxKBaRXkpFxKsp+dOo5dRUgKb9cjIEgJC6zXnwQ7 i+d+Afi5SyY8njf6Xhb+T+UuBC+1pqU2TONTn0n3AWs/0j6aNXhT/sP1+HXiDKLcxgIe 6iIA== 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 b20si739493ejk.726.2020.12.15.03.31.00; Tue, 15 Dec 2020 03:31:23 -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 S1728831AbgLOL3Q (ORCPT + 99 others); Tue, 15 Dec 2020 06:29:16 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:46106 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728692AbgLOL25 (ORCPT ); Tue, 15 Dec 2020 06:28:57 -0500 X-UUID: 74af20f4442d4610a8196286d9c1b5d3-20201215 X-UUID: 74af20f4442d4610a8196286d9c1b5d3-20201215 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 1843917828; Tue, 15 Dec 2020 19:28:07 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Dec 2020 19:28:05 +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; Tue, 15 Dec 2020 19:28:06 +0800 From: Kuan-Ying Lee To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Andrew Morton , Matthias Brugger CC: , , , , , , , Kuan-Ying Lee Subject: [PATCH 0/1] kasan: fix memory leak of kasan quarantine Date: Tue, 15 Dec 2020 19:28:02 +0800 Message-ID: <1608031683-24967-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-TM-SNTS-SMTP: CEAC96A1271FBFF82137D5C0B6036E94D5C347EC715C678B73A9F1D58F9F14102000:8 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. Kuan-Ying Lee (1): kasan: fix memory leak of kasan quarantine mm/kasan/quarantine.c | 1 + 1 file changed, 1 insertion(+) -- 2.18.0