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=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 E010DC433E0 for ; Sat, 6 Mar 2021 00:17:54 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 653C36507C for ; Sat, 6 Mar 2021 00:17:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 653C36507C Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:From:Subject:Mime-Version:Message-Id:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=3wimFf8FVdSczUkkhrox40HfltZ+BfuUPhYvyOYT9PE=; b=Uha7vwc7yJyA7VuQfz8M7hcvwQ JlZGT5yWgdGqxFmmWiDidmgzSYRvZdeXFBtnCwcM8Ei5edjL6j02ZJPLtcgmR3Ztk9e1qw9VanC5r HtNaWbAlE5GUZdQDJFWKRnDHR5RxEjts09xPrxq4o5qGGGkg4IhS2RGeKL40OLg6wuyRobmUo/Xsi 7hIQ7AqB6tOFOrZFeUsLMEJbw7BJkYLri3NiopMTV76QOsQZr+DvkDc3a2KfERjAkS2Nud2rEiDeo EcWMQn5ruoCno7LEJ3zK/d3a56hvUdD/WZk8kE1eNi4a2/oRl+CnVl4Kj6eUB5s0w+Bdxz59t1FYz iSDAIanA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lIKc5-00HMZp-Gp; Sat, 06 Mar 2021 00:16:09 +0000 Received: from mail-wr1-x44a.google.com ([2a00:1450:4864:20::44a]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lIKby-00HMT3-8D for linux-arm-kernel@lists.infradead.org; Sat, 06 Mar 2021 00:16:04 +0000 Received: by mail-wr1-x44a.google.com with SMTP id f3so1769666wrt.14 for ; Fri, 05 Mar 2021 16:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=Vm4vyPpxQ7w8FtG0FaFIYIajGbm/X1qa4ffJxCVDSQc=; b=WOH4/bdPZRdpEM3NJYFopgN3Pp+cuDQnWnreBB08vKkOkWXlr6htLh6Bgyo/G6Rwvi JcdlO8bY8dd3U1qA4r3XmcBXtP3Vnoo0nJ53zxSVUdoN5POu/lJDfFxKTQ1oT2XwkKLW Iy8lkW46C00xIX6/84xDT7luQ5ugnCxl7a/LWNZgOzkv8uxYt2lF6vFQh1Vpllc1m9UM b9WVok/veTipaxNWI23jD9AVUHhdhPzXkgxlgija2uVsX5IQzDIPtrXMKlncuAZOg6N7 jyq/viI290LngkpJZY6wOfCmBKIdFtLKAzWx6oa3XshBCZNWBCedgGY8m2WvLFZJBZvv ovTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=Vm4vyPpxQ7w8FtG0FaFIYIajGbm/X1qa4ffJxCVDSQc=; b=orUH2GUpPdwQoyMbVJ89eavapHJNvQgwzOtuuJ5qdIOutyBF41hQyLT/wpcTmRsX/t gXWfkhyXaHvnzDsVNsNM6AWjrcHsgJlWPe5/jG8H1ntRYBh1eK6QZFRzdQctsmb13HA6 oAFtElrT3hQnreF09NFMAOfE5XTcP8Kn+tPVUGP71olq/TnFTVues0jVUzC51Z+K6AEU ISrV2G0S6BDccmgl1XIO3ll3zvfovckMSs7NUmA5zEW1XWWxs0D+WtttwcEs1kxfnzQ6 V3AWbdOyPiP/OhIU7eKHALIPrrWC0iDKkjtuGjYi0bpSGZ+MZbUopuznYccySWMUaODY 1KpA== X-Gm-Message-State: AOAM531AWyL1qJbUp8uk/JePicfpATWU0BKY/kTzpvcHI0OBKrtgz6ST 0JLjTzhNSV6o0lRfeOmgh1/t1O+G1KNJq+2K X-Google-Smtp-Source: ABdhPJyqv+Z1WxarFIPJMB/BoL525nnYCwDuEvMd9JMOQnru4zl57QKqAIoddJdR+IFnZzhsdIO6cazeqZtXLvL2 X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:953b:d7cf:2b01:f178]) (user=andreyknvl job=sendgmr) by 2002:a1c:f203:: with SMTP id s3mr11046868wmc.152.1614989758870; Fri, 05 Mar 2021 16:15:58 -0800 (PST) Date: Sat, 6 Mar 2021 01:15:49 +0100 Message-Id: Mime-Version: 1.0 X-Mailer: git-send-email 2.30.1.766.gb4fecdf3b7-goog Subject: [PATCH 0/5] kasan: integrate with init_on_alloc/free From: Andrey Konovalov To: Alexander Potapenko Cc: Andrew Morton , Catalin Marinas , Will Deacon , Vincenzo Frascino , Dmitry Vyukov , Andrey Ryabinin , Marco Elver , Peter Collingbourne , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210306_001602_790351_63AE654D X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This goes on top of: [v3] kasan, mm: fix crash with HW_TAGS and DEBUG_PAGEALLOC [v3] mm, kasan: don't poison boot memory with tag-based modes This patch series integrates HW_TAGS KASAN with init_on_alloc/free by initializing memory via the same arm64 instruction that sets memory tags. This is expected to improve HW_TAGS KASAN performance when init_on_alloc/free is enabled. The exact perfomance numbers are unknown as MTE-enabled hardware doesn't exist yet. Andrey Konovalov (5): arm64: kasan: allow to init memory when setting tags kasan: init memory in kasan_(un)poison for HW_TAGS kasan, mm: integrate page_alloc init with HW_TAGS kasan, mm: integrate slab init_on_alloc with HW_TAGS kasan, mm: integrate slab init_on_free with HW_TAGS arch/arm64/include/asm/memory.h | 4 +- arch/arm64/include/asm/mte-kasan.h | 20 ++++++--- include/linux/kasan.h | 34 ++++++++------- lib/test_kasan.c | 4 +- mm/kasan/common.c | 45 +++++++++---------- mm/kasan/generic.c | 12 ++--- mm/kasan/kasan.h | 19 ++++---- mm/kasan/shadow.c | 10 ++--- mm/kasan/sw_tags.c | 2 +- mm/mempool.c | 4 +- mm/page_alloc.c | 37 +++++++++++----- mm/slab.c | 43 ++++++++++-------- mm/slab.h | 17 ++++++-- mm/slub.c | 70 +++++++++++++++--------------- 14 files changed, 182 insertions(+), 139 deletions(-) -- 2.30.1.766.gb4fecdf3b7-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel