Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2661604pxb; Tue, 13 Apr 2021 07:17:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz291jvOADvjm2L1mChGEpbYxc9bqwzeTP7IeDLikg2oc0C4FaIabk9+cVyrQz8SVOhuuqb X-Received: by 2002:aa7:c9d1:: with SMTP id i17mr33994430edt.46.1618323472184; Tue, 13 Apr 2021 07:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618323472; cv=none; d=google.com; s=arc-20160816; b=ij49bU0YL1CDxAJg40kcz+rL5wQPIQaypzI3qxEmiu3CsL57crbGzUvR8hnrPz6gmw 5cCXUEoJvubbVAF8yu1OnElvwoIBsCglB2rgUEmeFrloNvyuJQU0wqK8Uko4SQIqoDpa IiBhdISeS2drV6vKNmIa3Yu/JGwAu/ViEtD+HNv5s/oQN+tXC+ksAhfNaYSSL4ODsyPh 1lDhf+FmIJwHL3sSDBaV4UYGRNqlB8PL6/EkgI165e7ZtRKhT5PrU6xXbEOT5XCRN7aT LJjd+JrHPq/nmoypy/L7uPRmOrTAmGL5jY+DU+2fAswTkMRPgzPcaDup2IAUZGmVJ9Q8 zB2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5NhlKdvdU4gZsFuL4UnbYWWpvySftnX31YPOlTkai78=; b=q0rDAowLWNcwfzyv/f9ncqPu3qZ/TTTiyaBhH7ves+RV1pEVpbn1LKX824EJKn7C9u o9uKaexFza222Tt50WaNzD7vNRfRoF2cTbIeaSEX/g/m8CS2Kir3oDTk2uuDScxe14US G7LzHIOPFRSYQDb+61n8HJTRjBTHmEawT6PB373gGH5z6n+pIF76lHsAP84qU/GED5Jc oTq41uQG6aG1/x9yk2GL7yWuiJFPC7fZbT6LU6VaJMnLrUPSSlW1NCzIDA6o3t/eroSa 0A3ajyqVu+IUC5lK4SVNldl35qydwZSig+euxMFWKWpd3XCwuHaj2bfGxmlb8wZlNcoG t+/Q== 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 t23si10130158edy.536.2021.04.13.07.17.28; Tue, 13 Apr 2021 07:17:52 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236914AbhDMJsQ (ORCPT + 99 others); Tue, 13 Apr 2021 05:48:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:54298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbhDMJsQ (ORCPT ); Tue, 13 Apr 2021 05:48:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 572C0613B6; Tue, 13 Apr 2021 09:47:54 +0000 (UTC) From: Catalin Marinas To: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, Vincenzo Frascino , linux-arm-kernel@lists.infradead.org Cc: Will Deacon , Catalin Marinas , Evgenii Stepanov , Lorenzo Pieralisi , Andrey Konovalov , Andrey Ryabinin , Andrew Morton , Alexander Potapenko , Dmitry Vyukov , Marco Elver , Branislav Rankov Subject: Re: [PATCH v16 0/9] arm64: ARMv8.5-A: MTE: Add async mode support Date: Tue, 13 Apr 2021 10:47:37 +0100 Message-Id: <161830715687.1113.4436583872879811764.b4-ty@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210315132019.33202-1-vincenzo.frascino@arm.com> References: <20210315132019.33202-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Mar 2021 13:20:10 +0000, 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. > > [...] Applied to arm64 (for-next/mte-async-kernel-mode) but with a note that I'll drop them if Andrew prefers to take the patches via the mm tree. Thanks! [1/9] arm64: mte: Add asynchronous mode support https://git.kernel.org/arm64/c/f3b7deef8dca [2/9] kasan: Add KASAN mode kernel parameter https://git.kernel.org/arm64/c/2603f8a78dfb [3/9] arm64: mte: Drop arch_enable_tagging() https://git.kernel.org/arm64/c/c137c6145b11 [4/9] kasan: Add report for async mode https://git.kernel.org/arm64/c/8f7b5054755e [5/9] arm64: mte: Enable TCO in functions that can read beyond buffer limits https://git.kernel.org/arm64/c/e60beb95c08b [6/9] arm64: mte: Conditionally compile mte_enable_kernel_*() https://git.kernel.org/arm64/c/d8969752cc4e [7/9] arm64: mte: Enable async tag check fault https://git.kernel.org/arm64/c/65812c6921cc [8/9] arm64: mte: Report async tag faults before suspend https://git.kernel.org/arm64/c/eab0e6e17d87 [9/9] kasan, arm64: tests supports for HW_TAGS async mode https://git.kernel.org/arm64/c/e80a76aa1a91 -- Catalin