Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1311173pxf; Fri, 12 Mar 2021 06:58:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5dUu6CTFC5zfGrCgOjlpUYvajUw4VI4zBtgp0YT1vqmaRXrQ31nhCSMjcfiRObOIRA3FC X-Received: by 2002:aa7:cd6a:: with SMTP id ca10mr14713659edb.7.1615561101529; Fri, 12 Mar 2021 06:58:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615561101; cv=none; d=google.com; s=arc-20160816; b=k+M90njL5nq2g4jjLE5QxZb5oCtf9Jq/1B7cgxNAKH6GuMurmFQuYY8E0P8hFsNeFP n6SU/J+RQANvRVz3Vow0yPkI80zp5WoOTAgned46FQygAXb1HscwE9xWn+utJBbbHx52 45E+JhNVd27X9iqAApXIF0Ckwv3RJD1QUz0VhQPyF9SBBz78YPV+N2sdjrt33S+w0w3P M4SOtvVnA5FCpaacoFgCC4/+y8jfrmEXM/mWZ5dUivt1h3KRGK4eW8dJKUuTaa1cuVCK xyZTQcfTlF5uHA4vv4PUd62h/jGjA5yVEvRFm3kbUdCEZIwjVIgJw8nFPvsLsU47bsNV 8/jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=xVSsqE6gRWa9ApEv2UHvWYPkiYq2b0WVwNt0GXx+h3c=; b=yWkN9fwW/ku2wqhq9E8sjmicWAzhQohjEw3wNPdL6UsmcJvVJwT2jhvnX5t7xdr6oC nhE1ff7TWchfpPtK6AM02fppNVoKbsmt+gI7cbPYjyH9xYargxtN+b6C6KeJXgKmNCSs S/aXnNtUkF4GRnHzzmrrCGbwWzLg7kYjjrbNKWlan5xo2e1NUmtT1B/RL2vQ9TOYpccn skE9R4UZESbM1+4ycHYrRLm4cdB3TbntgSuH2ViDDN9TmZQrIyVHIfFObPG4FgTJTJ9S aJtxWdmEYzgXf+0ZsXGJRFS6GzZtFymrPeCcMDh7YYgnNzaOyZFyGcwY5QQWSPc6vhF+ P9Ow== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si4774527edf.499.2021.03.12.06.57.58; Fri, 12 Mar 2021 06:58:21 -0800 (PST) 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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231331AbhCLO5E (ORCPT + 99 others); Fri, 12 Mar 2021 09:57:04 -0500 Received: from foss.arm.com ([217.140.110.172]:55038 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231879AbhCLO4d (ORCPT ); Fri, 12 Mar 2021 09:56:33 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5A43D1FB; Fri, 12 Mar 2021 06:56:33 -0800 (PST) Received: from [10.37.8.6] (unknown [10.37.8.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5FDBB3F7D7; Fri, 12 Mar 2021 06:56:31 -0800 (PST) Subject: Re: [PATCH v15 0/8] arm64: ARMv8.5-A: MTE: Add async mode support To: Andrey Konovalov 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 References: <20210312142210.21326-1-vincenzo.frascino@arm.com> From: Vincenzo Frascino Message-ID: <7e14b0ae-8aa5-549c-ef77-5f040e0d3813@arm.com> Date: Fri, 12 Mar 2021 14:56:30 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/12/21 2:50 PM, Andrey Konovalov wrote: > On Fri, Mar 12, 2021 at 3:22 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/v13.async.akpm > > Acked-by: Andrey Konovalov > Tested-by: Andrey Konovalov > > for the series. > > Thank you, Vincenzo! > Thanks to you! -- Regards, Vincenzo