Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp13951pxf; Tue, 23 Mar 2021 20:13:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlW7fEsp/dyEtOsJF1nY0TjX1WFKcNfx6ceyd8fsaJkfb7O2jRqHo3hZ0mONMe13A61zwE X-Received: by 2002:a17:906:151a:: with SMTP id b26mr1339694ejd.492.1616555609838; Tue, 23 Mar 2021 20:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616555609; cv=none; d=google.com; s=arc-20160816; b=f6zY5CQ+An2yYUXDzMUx1u6XQYSOvAVBNtWKVasbmiF44W0QZyJtxGfq99rzazAIZ2 KyWsdg81R5snYDlRbhmz4LZclXyhFJbe2PnwrlmhaM1JLgvsJcP+V6lWfTuetR9mxEsX IY6IzqJlBckUmQzfFWaUTTy62gVgHCOQIYJiNt8xSxuRJNl5QgZdBP3d6tdZtKyjrik9 xREZCGqEHJpVUjZrYzXXLCajT8Wd4ssr8/ujowvxPF9bsFaiVbYqcLG97YaGlH3ikOlV jWCX/h5XD6t0W7N3B6ct/+vjrDtI2FZ96MIJ+t99L/WJnNhULW5YjOlfA6Z7+h40D9X0 EXQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=B/0oH/sIKlTyqEM5+DPElcup5AqdVgWb/d4FeBXrA9I=; b=PxzWsdrX8g3Rq2PKqy/C14MuBibeWn+RgH3ecOf77u3cKf/EHOX2I+hejRKJcT3moQ fcKez+E/VaqceaXqU4wKk/+YKZTi7V/mKJ8uyXHMtUJggbnxlB51P1EcCIjgh4oII5xG eybzR56akYPbvGM/7Ken5iW56P1ilCEpsk+hprPsnJISfZourhVrOHottMsyF3S8BCb+ 5LfTHV8zks6H5VSfqzqBpedfKqj3qN8QmSgjQ1PaL4rVaLePD0Qvz9BYvTdTNqdox7Ha jhXQgKZRLh7vvl//3Bb1TF8ZYiouDAMXDHTzLxcWPO44ZUPg+r4stX9TSaMk1RZv0LHj hh6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JlfWnvho; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd6si760268ejb.302.2021.03.23.20.13.07; Tue, 23 Mar 2021 20:13:29 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=JlfWnvho; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232681AbhCWPIv (ORCPT + 99 others); Tue, 23 Mar 2021 11:08:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232662AbhCWPIS (ORCPT ); Tue, 23 Mar 2021 11:08:18 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2854C061574 for ; Tue, 23 Mar 2021 08:08:17 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id j6-20020a17090adc86b02900cbfe6f2c96so10255891pjv.1 for ; Tue, 23 Mar 2021 08:08:17 -0700 (PDT) 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=B/0oH/sIKlTyqEM5+DPElcup5AqdVgWb/d4FeBXrA9I=; b=JlfWnvhobqb7KPsB/eBSI1EH5lQE72OmGcgIdhcPCBB9eoTihO0Ax7ELCPIir4EsyQ x77KBOsN2HZ+al4080A85kYu7oOQCJLkDlZx6Iu5Blt96wS3mPXZVUI/HzU4mZjTI5tW 5K1dbve4ICbWxhL/FF6s180ciZxxpFnRDcrb+tsdUDvhrywT/jK7IXZ923YzlwqflJJu OafLvYKnWp0bBdiVPkeMvbtKwPQdcXdOpcgpxJJg0IRdZ5/K9uImnoDsF+LWl3wq/4B1 f0y3isYxpBBgG1pG2XBrVdnw8Zhm1zReC766Xy1Aqr64BOHrPqS4zyMZxuKl+DvItOue p5EQ== 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=B/0oH/sIKlTyqEM5+DPElcup5AqdVgWb/d4FeBXrA9I=; b=IoPKU+IPjPWgBGYNihReYr1RMvCV1fIP9gAGGAvBdE2L0yZ4/+ob/DCbczQYT/83fW /U0+1h98T4lJuPp9sBxZ8Z0PW5+xIC4eWEjHlB2HWF5eGYde6GkJEQKWl7K2ZwupuA2d cL8cQVvboYNhK6gup7R3GrzQ89VgvHdxlvm3Mlc/E5x6id3HCAbm5wkgC7LYjllczcnc nTSx3Gv7Dj8cCTYjU+Xxru+Cx69qL/iXXVp8SyexZDJL68YXUgFIv+JzS4rB2h4hvP4d E9fgWRMcDAqK9rEesAFA0x4xpiR4PaD5I/77nVO7jhwp4WqKdREkMkMpuMKZJ4le68fs UohQ== X-Gm-Message-State: AOAM530gJ3wM0BF//omvAcekUApshUuWTpzVw/JYqNV35poENAX62C8I BxmPSaCeiPlVBDxNTTp3x5Xjp4qVBb4uJ+Hnh0NhrA== X-Received: by 2002:a17:90a:8c08:: with SMTP id a8mr5052138pjo.136.1616512097128; Tue, 23 Mar 2021 08:08:17 -0700 (PDT) MIME-Version: 1.0 References: <20210315132019.33202-1-vincenzo.frascino@arm.com> <20210318185607.GD10758@arm.com> In-Reply-To: <20210318185607.GD10758@arm.com> From: Andrey Konovalov Date: Tue, 23 Mar 2021 16:08:05 +0100 Message-ID: Subject: Re: [PATCH v16 0/9] arm64: ARMv8.5-A: MTE: Add async mode support To: Andrew Morton Cc: Vincenzo Frascino , Linux ARM , LKML , kasan-dev , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Andrey Konovalov , Lorenzo Pieralisi , Catalin Marinas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 18, 2021 at 7:56 PM Catalin Marinas wrote: > > On Mon, Mar 15, 2021 at 01:20:10PM +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. > > > > 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. > > Andrew, could you please pick these patches up via the mm tree? They > depend on kasan patches already queued. Hi Andrew, Looks like these patches have reached a stable state. Could you please pick them up into mm targeting 5.13? Thanks!