Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2908623pxj; Sun, 20 Jun 2021 04:50:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNKJpmfXXDyriluUasnKfJ0zKEoo/m2aJrUtIWpumas8wmqpQyA7Yb2MMFxJLUhQpql2dm X-Received: by 2002:a05:6402:3458:: with SMTP id l24mr15482518edc.320.1624189824114; Sun, 20 Jun 2021 04:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624189824; cv=none; d=google.com; s=arc-20160816; b=RTnruyPjH1si7nmaHaTMJLTOkMD/koXuLD73D/kphlG5frvzxT9pcWnkVQghNYKHuJ BO8HlpbK4TQM0D2+bla0ON/ngDbEbCR61EpFFp3opRHwAyoMYp8ZQka1YUkHRNf4vdhc tOXyzLHjuzjhigDNy9qVOKt04CypRfpPTr1H6hZg1wrc/Srm21SSp0YMoNdmvJpwfttB AN0sNCxck3aHia1p77OEi0awqF+tX3OayS0dCZWbvKOvGdVqW6ryZfMkMXNENEXV6ghy Sy8VSITi4mlHm/ZBnCvPcrh1phvSHr9pWwFxcFeAThJ1uckT9BLU36s7v2O7b3lkZOT2 E/Kg== 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=OwPIkLrPBXy8FI39vVYI/5/35uoW4ETEoruxC4AMFTo=; b=gj4pzRXdNACfewu1T9W9gr3/DpNPd3f/EbeXCF4wcTGJC5xRw0ENqJTqdrlrH2uo6K aDf87yY9vafpg9osGsfavv/W8HX1CPf1XYZ4jXi0r8uPDLdiMT174VmhJALUqUiswsQD mWRtBCwW5CH94BGxAiFSokfLpPa7JeVJ118oC4qtlKT/29QIPLpCf+S2n4CeUyV6+wbD LGwbdMCi+vvnP+iwWr24Z1nkLkoGaCt3PKXOpulqLBDVvwDe6vj32Wp0tmkOFGN7v8Ss ILbLJU99JVVy0838e4uVbpq6/z3gqekT1HqrNU9heJ5/wBppw1W91UmE65kscBpjOWel qCHg== 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 p3si5885414edy.359.2021.06.20.04.49.41; Sun, 20 Jun 2021 04:50:24 -0700 (PDT) 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 S229615AbhFTLuZ (ORCPT + 99 others); Sun, 20 Jun 2021 07:50:25 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:60709 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229618AbhFTLuY (ORCPT ); Sun, 20 Jun 2021 07:50:24 -0400 X-UUID: ea194ffd70634a5f858ebec10db9e1cf-20210620 X-UUID: ea194ffd70634a5f858ebec10db9e1cf-20210620 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1529141064; Sun, 20 Jun 2021 19:48:06 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 20 Jun 2021 19:48:05 +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; Sun, 20 Jun 2021 19:48:05 +0800 From: Kuan-Ying Lee To: Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Marco Elver , Dmitry Vyukov , Andrew Morton , Matthias Brugger CC: , , , , , , , , Kuan-Ying Lee Subject: [PATCH v3 0/3] kasan: add memory corruption identification support for hw tag-based kasan Date: Sun, 20 Jun 2021 19:47:53 +0800 Message-ID: <20210620114756.31304-1-Kuan-Ying.Lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add memory corruption identification for hardware tag-based KASAN mode. Changes since v3: - Preserve Copyright from hw_tags.c/sw_tags.c and report_sw_tags.c/report_hw_tags.c - Make non-trivial change in kasan sw tag-based mode Changes since v2: - Thanks for Marco's Suggestion - Rename the CONFIG_KASAN_SW_TAGS_IDENTIFY - Integrate tag-based kasan common part - Rebase to latest linux-next Kuan-Ying Lee (3): kasan: rename CONFIG_KASAN_SW_TAGS_IDENTIFY to CONFIG_KASAN_TAGS_IDENTIFY kasan: integrate the common part of two KASAN tag-based modes kasan: add memory corruption identification support for hardware tag-based mode lib/Kconfig.kasan | 4 +-- mm/kasan/Makefile | 4 +-- mm/kasan/hw_tags.c | 22 --------------- mm/kasan/kasan.h | 4 +-- mm/kasan/report_hw_tags.c | 6 +--- mm/kasan/report_sw_tags.c | 46 +----------------------------- mm/kasan/report_tags.h | 55 ++++++++++++++++++++++++++++++++++++ mm/kasan/sw_tags.c | 41 --------------------------- mm/kasan/tags.c | 59 +++++++++++++++++++++++++++++++++++++++ 9 files changed, 122 insertions(+), 119 deletions(-) create mode 100644 mm/kasan/report_tags.h create mode 100644 mm/kasan/tags.c -- 2.18.0