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=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 E3854C433E0 for ; Mon, 8 Mar 2021 21:04:59 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 722AC64EEE for ; Mon, 8 Mar 2021 21:04:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 722AC64EEE Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IC6eXwp98TwkzKbjHHd5AACX6dwJi79mC1i8KYEhHZ0=; b=qphPl/jRicPKgtboYk5q8gHdX 9BoDRk15KITcsKscXlId1GHgtNISrTbtOOqyAQ6QPxapGyOGzMGBfEnTZIidx2yvlCPfAEOysrx+P PntgXwu1q5RMUjpyg2To2LOlKTvq7GoMbzEGTVdu0LQkSdbs+v8UJFHYW8hLaQQNDkagLzHXrZK7z MsmxySOqhc900/mCBeMiXdXyuxfu7M5/oTpO9CyvZeopHmYbo/DN5euSxw52XtNfP+1p9TEZBqcDr rQy2uPBVsQT+6Zt503dbkgHQf7MeTdJWUPrLr88PoULt93j+SMLkci0yQUAnC8xty+zxLYhL2VyWi tzQrUO8lg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lJN1Y-002tX9-Ee; Mon, 08 Mar 2021 21:02:44 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lJN1S-002tVt-Dq for linux-arm-kernel@lists.infradead.org; Mon, 08 Mar 2021 21:02:40 +0000 Received: by mail-pl1-x62f.google.com with SMTP id n17so1915183plc.7 for ; Mon, 08 Mar 2021 13:02:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qVM6aF4+Z0E3PMKrGgvJCjoVZqdQ6xy0HWF9QbJkCLk=; b=RlT5RTElqPa03A8arxVZr3DBMCMCnALPaHiCl6JWLxVKLtkGPv/+ROmOk0tYmq2LOR jxRIU7Oiix/MS2fSCfawkOSKFw4z7nrqaHKK4YufTdVVl+9nSO3Vn6sEx2nI7CKdyJst 8xI3so0PhxkzuTwMLYHI1k6T++aWZmMkr2RcVCddGMMz4qTDRvBhMfAxMgvopE/DSRIw CO4anmzLPvzN4UgaOx5+yBiONIkvfxWizbzQGhIo/MwEggk38+NVyhfUJvNatR7cMgbq C7qQ1Ca8ZhBNsAUtlbM6+dAS7xTJlBcBzGURCC7kZPDLiKeAv7/3m+w1EGIF2TDj4gVR SGCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qVM6aF4+Z0E3PMKrGgvJCjoVZqdQ6xy0HWF9QbJkCLk=; b=atWtB5bQhF8gcQcLYIa03QO6DfWYywPiKQG9GOgvo92f3DerA7ooWeuMvSfQ9OdaZF mDbAEO8lIRc3X7fIG2iI5gz8CCCI+1uA85oaYGyehzsA6ZpJYWGh3MV3WRcywvLqwG8t aDFsenl/HKoWqSPDhWIVvoWj7x2B6iV+te4qDMoMEKHV33YvTh9j+JInbJXXEUngxE6s djazNQekU3b3S5HY3MU1G6NoEQEyM+1zFt3s5MPiAbdk5ke0lJC3DkGYy3RT3sGLX1bF XMnAElRWOp/NLtFg8hJ6ymK7B15Gi8+9tOfq3tNvpGOh88y2K1w4FZSjixPvQNBogv0e rQNw== X-Gm-Message-State: AOAM5337WYGABaBHr1LbSm6Xs0CeVkSMmqtK0nMkwb3vemTXU0RVtU40 kU4zqqk0Xos9a8yw+ESoh3KI9JB5jr0ZH7Fe1APriDGeMtES5g== X-Google-Smtp-Source: ABdhPJyLdMAXvzF8zJTJyhVhLwce0bXWxv7Hn2L0ZQO4cpRHP+UUi199V4TYicINA1bULiEGm6p7h/Zvc/rdxF1ZQYY= X-Received: by 2002:a17:902:8641:b029:e4:7e05:c916 with SMTP id y1-20020a1709028641b02900e47e05c916mr21769229plt.57.1615237356824; Mon, 08 Mar 2021 13:02:36 -0800 (PST) MIME-Version: 1.0 References: <20210308161434.33424-1-vincenzo.frascino@arm.com> In-Reply-To: <20210308161434.33424-1-vincenzo.frascino@arm.com> From: Andrey Konovalov Date: Mon, 8 Mar 2021 22:02:25 +0100 Message-ID: Subject: Re: [PATCH v14 0/8] arm64: ARMv8.5-A: MTE: Add async mode support To: Vincenzo Frascino Cc: Linux ARM , LKML , kasan-dev , Andrew Morton , Catalin Marinas , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Lorenzo Pieralisi X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210308_210238_731315_17BA9900 X-CRM114-Status: GOOD ( 24.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 8, 2021 at 5:14 PM Vincenzo Frascino wrote: > > This patchset implements the asynchronous mode support for ARMv8.5-A > Memory Tagging Extension (MTE), which is a debugging feature that allows > to detect with the help of the architecture the C and C++ programmatic > memory errors like buffer overflow, use-after-free, use-after-return, etc. > > MTE is built on top of the AArch64 v8.0 virtual address tagging TBI > (Top Byte Ignore) feature and allows a task to set a 4 bit tag on any > subset of its address space that is multiple of a 16 bytes granule. MTE > is based on a lock-key mechanism where the lock is the tag associated to > the physical memory and the key is the tag associated to the virtual > address. > When MTE is enabled and tags are set for ranges of address space of a task, > the PE will compare the tag related to the physical memory with the tag > related to the virtual address (tag check operation). Access to the memory > is granted only if the two tags match. In case of mismatch the PE will raise > an exception. > > The exception can be handled synchronously or asynchronously. When the > asynchronous mode is enabled: > - Upon fault the PE updates the TFSR_EL1 register. > - The kernel detects the change during one of the following: > - Context switching > - Return to user/EL0 > - Kernel entry from EL1 > - Kernel exit to EL1 > - If the register has been updated by the PE the kernel clears it and > reports the error. > > The series is based on linux-next/akpm. > > To simplify the testing a tree with the new patches on top has been made > available at [1]. > > [1] https://git.gitlab.arm.com/linux-arm/linux-vf.git mte/v12.async.akpm Hi Vincenzo, As previously discussed, here's the tree with tests support added to this series: https://github.com/xairy/linux/tree/vf-v12.async.akpm-tests Please take a look at the last two patches. Feel free to include them into v15 if they look good. Thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel