Message ID | 42a4409413858c47677134b55c49d447bf9a8e87.1600987622.git.andreyknvl@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=vOKg=DB=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 969D2139A for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 24 Sep 2020 22:52:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 502762396F for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 24 Sep 2020 22:52:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="JeM/b75Y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 502762396F Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 869B4900007; Thu, 24 Sep 2020 18:52:09 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 81CAE8E0001; Thu, 24 Sep 2020 18:52:09 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 692E6900007; Thu, 24 Sep 2020 18:52:09 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0106.hostedemail.com [216.40.44.106]) by kanga.kvack.org (Postfix) with ESMTP id 525698E0001 for <linux-mm@kvack.org>; Thu, 24 Sep 2020 18:52:09 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 205AC1F1B for <linux-mm@kvack.org>; Thu, 24 Sep 2020 22:52:09 +0000 (UTC) X-FDA: 77299454778.06.jelly96_5e1662827162 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin06.hostedemail.com (Postfix) with ESMTP id F214A1018ADCE for <linux-mm@kvack.org>; Thu, 24 Sep 2020 22:52:08 +0000 (UTC) X-Spam-Summary: 1,0,0,af40c8825a6025dd,d41d8cd98f00b204,3fyntxwokcbqu7xbyi47f508805y.w86527eh-664fuw4.8b0@flex--andreyknvl.bounces.google.com,,RULES_HIT:41:152:355:379:541:800:960:973:988:989:1260:1277:1313:1314:1345:1359:1431:1437:1516:1518:1534:1541:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3152:3351:3865:3867:3871:4250:4321:5007:6261:6653:6742:8603:9969:10004:10400:11026:11232:11473:11657:11658:11914:12043:12048:12297:12438:12555:12895:12986:13069:13311:13357:14096:14097:14181:14394:14659:14721:21080:21365:21444:21451:21627:30054,0,RBL:209.85.219.73:@flex--andreyknvl.bounces.google.com:.lbl8.mailshell.net-66.100.201.100 62.18.0.100;04ygbtypnfco9x7qpmdq9agxf6kfropfzz9nnxrn1fyugbxa7aooejh8z9fc15p.bh58et4c88tehzr3csn171iy1cw4anfsawwrxhq1mpukypw4jh4wf831yrg9a9k.q-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY: none X-HE-Tag: jelly96_5e1662827162 X-Filterd-Recvd-Size: 4554 Received: from mail-qv1-f73.google.com (mail-qv1-f73.google.com [209.85.219.73]) by imf23.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Thu, 24 Sep 2020 22:52:08 +0000 (UTC) Received: by mail-qv1-f73.google.com with SMTP id bo17so500452qvb.2 for <linux-mm@kvack.org>; Thu, 24 Sep 2020 15:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=wHymNihP2cmvV3L+Sm6JVmAu1rhIBofqol5fTdU44eg=; b=JeM/b75Yz4vtsSpUoXIkVhHEK2UmRKfSzDF8tDiV0svk/SQQvkdRlOIUuh5XrezrVO D8GP+rtwyL7DLqtJqZnEFSCifzLV5ZHjIznfR+V3fdrvh6oLoYe+qG1a9yDqaG5O7dMb LJXn71dUYDfIGcOn8DOT4VThpwpS/HGA9qCRP21wHtlrF2Sax4rrIxwuQwkEVH+h5CwG 1Ft8h3Fo12k2K8xB9dmsFqJsqA/ZDX0cSkW2Fe9zUv5fkCqkMeTU1OZY1vxhbNP2UnjO NR5sur7k5znV7ASaz35/4H/ICZYO91ncqOayXH1Kwv11JyfNWvkaRGvpE/sX1Ot85Mjm ajNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=wHymNihP2cmvV3L+Sm6JVmAu1rhIBofqol5fTdU44eg=; b=YY/zjeyY/A2j7bZZxdDFRokLQK1B3R3UnOArMZM8zhV9rs+iZyEFglGt7RPJQ35MYk qOPICjFwKL+SmfLeZHgAsjju9BHzFJ5rVOwZLbXzlIns0bSPFHcaXNUbzXi7anneqSfw eMOQZlvlcrJgZ90CfoHdLevKPwm7wn94sU/Pc5Tpc+1llLKpTEcdjbq/0b5rpvh2vvlY lJod0XTLU7HKOLkGledveXKuLZhQ6QXKG0qGWGVzeMs1ktDipjC122iVUQYLzrOx/jhm mfA5yc5wxEXggfCnVVnFH9WPjQviiU1/wpW8G4VD9aSJC4AfRoxbpnQcEdaOJAozJjlg iHlA== X-Gm-Message-State: AOAM530cdS+64i1RWFq1hB4jA2mIQQuJobmZVqvkciqLBQt6hssthNpV 4JDW42ysyfCTy8OOtk6a4HQP9sF2w//nCwey X-Google-Smtp-Source: ABdhPJx8I9zcdeQs79Q6VCzskVq+c8Vo8fkjEk5YqlgGGh9FbiSdwKkm4WYjYWYgctnVTC2zSHXq+lhC47ne24cr X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a0c:a203:: with SMTP id f3mr1482755qva.33.1600987927725; Thu, 24 Sep 2020 15:52:07 -0700 (PDT) Date: Fri, 25 Sep 2020 00:50:38 +0200 In-Reply-To: <cover.1600987622.git.andreyknvl@google.com> Message-Id: <42a4409413858c47677134b55c49d447bf9a8e87.1600987622.git.andreyknvl@google.com> Mime-Version: 1.0 References: <cover.1600987622.git.andreyknvl@google.com> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog Subject: [PATCH v3 31/39] arm64: kasan: Align allocations for HW_TAGS From: Andrey Konovalov <andreyknvl@google.com> To: Dmitry Vyukov <dvyukov@google.com>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, kasan-dev@googlegroups.com Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>, Alexander Potapenko <glider@google.com>, Marco Elver <elver@google.com>, Evgenii Stepanov <eugenis@google.com>, Elena Petrova <lenaptr@google.com>, Branislav Rankov <Branislav.Rankov@arm.com>, Kevin Brodsky <kevin.brodsky@arm.com>, Will Deacon <will.deacon@arm.com>, Andrew Morton <akpm@linux-foundation.org>, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov <andreyknvl@google.com> Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
kasan: add hardware tag-based mode for arm64
|
expand
|
diff --git a/arch/arm64/include/asm/cache.h b/arch/arm64/include/asm/cache.h index a4d1b5f771f6..151808f1f443 100644 --- a/arch/arm64/include/asm/cache.h +++ b/arch/arm64/include/asm/cache.h @@ -6,6 +6,7 @@ #define __ASM_CACHE_H #include <asm/cputype.h> +#include <asm/mte-kasan.h> #define CTR_L1IP_SHIFT 14 #define CTR_L1IP_MASK 3 @@ -50,6 +51,8 @@ #ifdef CONFIG_KASAN_SW_TAGS #define ARCH_SLAB_MINALIGN (1ULL << KASAN_SHADOW_SCALE_SHIFT) +#elif defined(CONFIG_KASAN_HW_TAGS) +#define ARCH_SLAB_MINALIGN MTE_GRANULE_SIZE #endif #ifndef __ASSEMBLY__