From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58D09C4361A for ; Thu, 3 Dec 2020 20:29:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 95079221EA for ; Thu, 3 Dec 2020 20:28:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 95079221EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B00546B0036; Thu, 3 Dec 2020 15:28:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AB00F6B005C; Thu, 3 Dec 2020 15:28:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 979D06B0068; Thu, 3 Dec 2020 15:28:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 7E6FE6B0036 for ; Thu, 3 Dec 2020 15:28:58 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 33DB1349B for ; Thu, 3 Dec 2020 20:28:58 +0000 (UTC) X-FDA: 77553109956.12.quilt60_2e014dc273be Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id 0973E1801CE27 for ; Thu, 3 Dec 2020 20:28:58 +0000 (UTC) X-HE-Tag: quilt60_2e014dc273be X-Filterd-Recvd-Size: 2492 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Thu, 3 Dec 2020 20:28:57 +0000 (UTC) Date: Thu, 3 Dec 2020 12:28:54 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1607027336; bh=3GM43n+ykpZXsrys2IYlOfIbVi376Zl7mMWmJ3lZbYw=; h=From:To:Cc:Subject:In-Reply-To:References:From; b=n364KfYSfk6dKoaT1hGl5ZKC4bJ+y4HlL5vvt+0xHoc+94/W/P+VkpbB/m8OCXizm BQ/475H+qPEnifOSp+z7qF8dfi5erHXmT4iWeGmEV4w6HS6pEwXFbyyPoY6YBY/WOQ R7dWLpju9pF/P10HGLjtZQXyY4dLFnzx8XC0pcZ8= From: Andrew Morton To: Andrey Konovalov Cc: Kuan-Ying Lee , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , Nicholas Tang , Miles Chen , kasan-dev , Linux Memory Management List , LKML , Linux ARM , linux-mediatek@lists.infradead.org, wsd_upstream Subject: Re: [PATCH v3 1/1] kasan: fix object remain in offline per-cpu quarantine Message-Id: <20201203122854.c8d5ed270ec9cfc7c17569d9@linux-foundation.org> In-Reply-To: References: <1606895585-17382-1-git-send-email-Kuan-Ying.Lee@mediatek.com> <1606895585-17382-2-git-send-email-Kuan-Ying.Lee@mediatek.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, 3 Dec 2020 13:46:59 +0100 Andrey Konovalov wrote: > > #define QLIST_INIT { NULL, NULL, 0 } > > @@ -188,6 +190,11 @@ void quarantine_put(struct kasan_free_meta *info, struct kmem_cache *cache) > > local_irq_save(flags); > > > > q = this_cpu_ptr(&cpu_quarantine); > > + if (q->offline) { > > + qlink_free(&info->quarantine_link, cache); > > Hi Kuan-Ying, > > This needs to be rebased onto the mm tree: it has some KASAN patches > that touch this code and rename the info variable to meta. Yup. I'm taking care of that.