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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_IN_DEF_DKIM_WL 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 B90C5C4742C for ; Mon, 16 Nov 2020 11:02:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3497D20773 for ; Mon, 16 Nov 2020 11:02:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="lNCRW+LN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3497D20773 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 74AE96B0068; Mon, 16 Nov 2020 06:02:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6F9756B006C; Mon, 16 Nov 2020 06:02:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C01E6B006E; Mon, 16 Nov 2020 06:02:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0144.hostedemail.com [216.40.44.144]) by kanga.kvack.org (Postfix) with ESMTP id 2C2496B0068 for ; Mon, 16 Nov 2020 06:02:13 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id D12EC8249980 for ; Mon, 16 Nov 2020 11:02:12 +0000 (UTC) X-FDA: 77489992104.10.quilt90_3704d9527328 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin10.hostedemail.com (Postfix) with ESMTP id AD66D16A07E for ; Mon, 16 Nov 2020 11:02:12 +0000 (UTC) X-HE-Tag: quilt90_3704d9527328 X-Filterd-Recvd-Size: 5451 Received: from mail-qt1-f195.google.com (mail-qt1-f195.google.com [209.85.160.195]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Mon, 16 Nov 2020 11:02:12 +0000 (UTC) Received: by mail-qt1-f195.google.com with SMTP id g15so12492070qtq.13 for ; Mon, 16 Nov 2020 03:02:11 -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=WCo6s0/nkYmCiNM2lfhtKvRgQtlMOZhZ3Qm9cvd64Ns=; b=lNCRW+LNnYPOTpjevlte99nCLT2HMxsgx6b9KCNPN1i7t/jyjkxlKwSMJs3N2L5wTd ynAGz/3jyrYBHX2xrO4+WpF8g6na67LjGc6LKCuuQPkwd4b66UxvPdWp3TiIVtq80U5F zWiNN2SdF/8hOpiwPDfJArEGqn9A84+tYQLpHN/BYNiJ6EFirgALBrjqhht6qMM0wM/Z GS0ywEZs3i6JMltN+3hS/j6IWE3l/WnKvsQo60YJCInQSdogsUhsBXqG94UMnfF1MY5g qbpc/C02zUF+/H9BFmcb61r210ZHRxQbUVYiDpfexiNaWOHDaDomLOy8XsJpbMc1ANo9 +inw== 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=WCo6s0/nkYmCiNM2lfhtKvRgQtlMOZhZ3Qm9cvd64Ns=; b=Jyv9jKE2mrJNKB4eTOmPYEWHmEL4rc/qoaLNkAp2U7ErtcCf+M8OkFeNg/cPG5VCZj UdKgiE3ToGluryERRsun00DYgh/1kKrf2gtfnxGorWeJ2NVPcufCH64OCw/BrxTnXMpQ iuE0Wd2uhXTMU1PJ/AlX6xo2LUqygtLG/Lh19wjbJ0ebqLnBAU3KDW5dS+qlOaRdr+hq 2ll7Vwj7Zmxwc1+gRT3Ys2bXKI8lh1ePOcLtmCD5SFRxWuk6k4BCayakbynW4/jYD1i2 uRc80MAK/TFhSkxie5oTuECc3ztfdbiofFNqdXlyJKGX51HTV1By1gxK2l87Ofoi3G7H VXBw== X-Gm-Message-State: AOAM531aCPl5b9mP6/Qsl1jiP7TCYU3SWdtNmXwf9SJU/5Zrl3hNCYBx IH60fXwNQyTkBuiuQMHqQlCb9ykc1sWjblThU7ylgw== X-Google-Smtp-Source: ABdhPJylpRqoKHtntW8fFWc1VJ/EQduNKuCqw1hVdAm2eojeSLqU2wxALt8OoDfygEbNvYO11xXxOHSiK338yJA3LU8= X-Received: by 2002:aed:2744:: with SMTP id n62mr13892523qtd.67.1605524531286; Mon, 16 Nov 2020 03:02:11 -0800 (PST) MIME-Version: 1.0 References: <89bf275f233121fc0ad695693a072872d4deda5d.1605305978.git.andreyknvl@google.com> In-Reply-To: <89bf275f233121fc0ad695693a072872d4deda5d.1605305978.git.andreyknvl@google.com> From: Dmitry Vyukov Date: Mon, 16 Nov 2020 12:01:59 +0100 Message-ID: Subject: Re: [PATCH mm v3 05/19] kasan: allow VMAP_STACK for HW_TAGS mode To: Andrey Konovalov Cc: Andrew Morton , Catalin Marinas , Will Deacon , Vincenzo Frascino , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , kasan-dev , Linux ARM , Linux-MM , LKML 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: On Fri, Nov 13, 2020 at 11:20 PM 'Andrey Konovalov' via kasan-dev wrote: > > Even though hardware tag-based mode currently doesn't support checking > vmalloc allocations, it doesn't use shadow memory and works with > VMAP_STACK as is. Change VMAP_STACK definition accordingly. > > Signed-off-by: Andrey Konovalov > Reviewed-by: Marco Elver Reviewed-by: Dmitry Vyukov > Acked-by: Catalin Marinas > Link: https://linux-review.googlesource.com/id/I3552cbc12321dec82cd7372676e9372a2eb452ac > --- > arch/Kconfig | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/Kconfig b/arch/Kconfig > index 9ebdab3d0ca2..546869c3269d 100644 > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -921,16 +921,16 @@ config VMAP_STACK > default y > bool "Use a virtually-mapped stack" > depends on HAVE_ARCH_VMAP_STACK > - depends on !KASAN || KASAN_VMALLOC > + depends on !KASAN || KASAN_HW_TAGS || KASAN_VMALLOC > help > Enable this if you want the use virtually-mapped kernel stacks > with guard pages. This causes kernel stack overflows to be > caught immediately rather than causing difficult-to-diagnose > corruption. > > - To use this with KASAN, the architecture must support backing > - virtual mappings with real shadow memory, and KASAN_VMALLOC must > - be enabled. > + To use this with software KASAN modes, the architecture must support > + backing virtual mappings with real shadow memory, and KASAN_VMALLOC > + must be enabled. > > config ARCH_OPTIONAL_KERNEL_RWX > def_bool n > -- > 2.29.2.299.gdc1121823c-goog > > -- > You received this message because you are subscribed to the Google Groups "kasan-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kasan-dev+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/kasan-dev/89bf275f233121fc0ad695693a072872d4deda5d.1605305978.git.andreyknvl%40google.com.