Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1880467pxv; Sat, 26 Jun 2021 03:11:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJArm91NliG49t8bRr9IKoqhuKTeZstNYGgsMoL2ieaIRtaUlt022iEUNpSZY9b7OumOJ3 X-Received: by 2002:a05:6402:1716:: with SMTP id y22mr20981512edu.237.1624702268361; Sat, 26 Jun 2021 03:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624702268; cv=none; d=google.com; s=arc-20160816; b=YqJUbktiWoxlZiRYVLhBzmgHAE/ZkseuuhtgPC5jonhtHtvCbbuGQO8d6WtqhxlxKx KXp4lHMSd12caOqCpIFKoffSvg9tyBHEUQ5iH11WCgkAUvE6UEmqiaInHplznv2w+mxz m72Xkhr3gfi/ly0LkWZ7JRSLJG++gZhsnYzGAghlyD+sCwTle0RlSdhfrUiDjHRQAtv9 BUqUeAP9lY4x4vYX2/NC02c7evaS26wH+shSDwaycN4VqICSEHb/z3lIbYAgPAqFZxqg UTyWdCXDCzjpbu1C1IHSIOQ9Wqtsd6atx2pvH2oSigt6oIWh5Jgztd6IgaeF7+ClbLYo uuxg== 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=Vxc84V9Pij+OTEl5t579raBxpqqVtlQNdnoyWEjhAIo=; b=BO2GJF8orslqR9zPeolEqTAu7tDzGsGwll9ZzhbEnox7zs5/JUHHuDiq6AJn2FIDWy Z0PlgkBtTg9PEO4DhTIdwn90Zx3dOnZj11Rz4j1WKy9iBtqVcM/iXGD1AUsog+rM0NDS DXwyWD/YtIHIaVVgZifEcnblxoehGCaKlMHW55XCV0QR6j8DuKjDVubmTuQ368Qun/FN +PyBA1rH93KlPRax8z9T09yiIEXtAH7WUkLvO4+B81c+7MSJnVDHoRYCYEaXulelquXK j5rK10LGCG2LZy/WKmXytBzPh4f8ctkPO0ybyWapUVplLidnTH42pbHh6xTMrc21jTnn DpOg== 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 jx8si8535335ejc.195.2021.06.26.03.10.40; Sat, 26 Jun 2021 03:11:08 -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 S229744AbhFZKMB (ORCPT + 99 others); Sat, 26 Jun 2021 06:12:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34827 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229518AbhFZKMB (ORCPT ); Sat, 26 Jun 2021 06:12:01 -0400 X-UUID: 6ddb299865154c4a94ca2d424c352079-20210626 X-UUID: 6ddb299865154c4a94ca2d424c352079-20210626 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 609472269; Sat, 26 Jun 2021 18:09:35 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 26 Jun 2021 18:09:33 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 26 Jun 2021 18:09:33 +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 v4 0/3] kasan: add memory corruption identification support for hw tag-based kasan Date: Sat, 26 Jun 2021 18:09:28 +0800 Message-ID: <20210626100931.22794-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 v4: - Change report_tags.h to report_tags.c - Refine the commit message - Test lib/test_kasan module with SW_TAGS mode - Test lib/test_kasan module with HW_TAGS mode - Rebase to latest linux-next 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 | 5 ---- mm/kasan/report_sw_tags.c | 43 ---------------------------- mm/kasan/report_tags.c | 51 +++++++++++++++++++++++++++++++++ mm/kasan/sw_tags.c | 41 --------------------------- mm/kasan/tags.c | 59 +++++++++++++++++++++++++++++++++++++++ 9 files changed, 116 insertions(+), 117 deletions(-) create mode 100644 mm/kasan/report_tags.c create mode 100644 mm/kasan/tags.c -- 2.18.0