From patchwork Wed Aug 4 09:09:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?S3Vhbi1ZaW5nIExlZSAo5p2O5Yag56mOKQ==?= X-Patchwork-Id: 12418201 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=-12.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MIME_BASE64_TEXT,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT 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 564D1C4320A for ; Wed, 4 Aug 2021 09:10:28 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 036956105A for ; Wed, 4 Aug 2021 09:10:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 036956105A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 171088D0052; Wed, 4 Aug 2021 05:10:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0F9C18D002D; Wed, 4 Aug 2021 05:10:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BF6178D0052; Wed, 4 Aug 2021 05:10:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0234.hostedemail.com [216.40.44.234]) by kanga.kvack.org (Postfix) with ESMTP id A08B38D002D for ; Wed, 4 Aug 2021 05:10:26 -0400 (EDT) Received: from smtpin32.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 5F25723E49 for ; Wed, 4 Aug 2021 09:10:26 +0000 (UTC) X-FDA: 78436827252.32.E69C640 Received: from mailgw01.mediatek.com (mailgw01.mediatek.com [216.200.240.184]) by imf06.hostedemail.com (Postfix) with ESMTP id 74504801AF37 for ; Wed, 4 Aug 2021 09:10:25 +0000 (UTC) X-UUID: c9dd70394264400a9f3c8be708d2d07e-20210804 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=nbo7vz4RLod6c4i8MJeHJL0Wcz1XEBh5veqoog70Kpg=; b=Ne/f3qv221sdvVTkSEFAnNzIrZPLliB/W0lrCGx78oRnFTBF9Byi8Nxw46RC7b1ubOK5BbSODHd2EGmSU0cxsJQ91jIVHmF6VVJmUdNjzAhya1wqjl98HyGT3yMm6M8yXIBTxJGFK8iMJZTMzXLS5Akwbk7h3SUXyPPFl77dQYo=; X-UUID: c9dd70394264400a9f3c8be708d2d07e-20210804 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1581526916; Wed, 04 Aug 2021 02:10:18 -0700 Received: from MTKMBS02N2.mediatek.inc (172.21.101.101) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 4 Aug 2021 02:10:17 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 4 Aug 2021 17:10:15 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 4 Aug 2021 17:10:15 +0800 From: Kuan-Ying Lee To: Nicholas Tang , Andrew Yang , Andrey Konovalov , "Andrey Ryabinin" , Alexander Potapenko , Marco Elver , Catalin Marinas , Chinwen Chang , Andrew Morton CC: , , , , , Kuan-Ying Lee Subject: [PATCH v3 0/2] kasan: reset tag when accessing invalid metadata Date: Wed, 4 Aug 2021 17:09:55 +0800 Message-ID: <20210804090957.12393-1-Kuan-Ying.Lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=mediatek.com header.s=dk header.b="Ne/f3qv2"; spf=pass (imf06.hostedemail.com: domain of kuan-ying.lee@mediatek.com designates 216.200.240.184 as permitted sender) smtp.mailfrom=kuan-ying.lee@mediatek.com; dmarc=pass (policy=none) header.from=mediatek.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 74504801AF37 X-Stat-Signature: 5x4abiaanzq5dxt9dd8ssckmdekd8a7n X-HE-Tag: 1628068225-763449 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: With hardware tag-based kasan enabled, we reset the tag when we access metadata to avoid from false alarm. Changes since v3: - Remove inappropriate suggested-by Changes since v2: - Refine the commit message in detail. - Thanks Andrey's explanation about false alarm of kmemleak. Kuan-Ying Lee (2): kasan, kmemleak: reset tags when scanning block kasan, slub: reset tag when printing address mm/kmemleak.c | 6 +++--- mm/slub.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)