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_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,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 0791BC433DF for ; Mon, 19 Oct 2020 08:43:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 791B122257 for ; Mon, 19 Oct 2020 08:43:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UFC9vOdZ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pIfs1CLc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 791B122257 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: 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=tL7nWMtATHl1pZ8jQGvu9OytPnvWQzDeURFyXOHaeoI=; b=UFC9vOdZfK0c9Hafx8NLqCEiaN KPUyX0iqliw14b682AvFrtTvcHW5HOpPSX6qwFU6C1/EZh1u0iHcJSkyt47hH5Nrx+y5o0V8IAMg6 hZZBZWD0n6oCREvdoWYWiCAeXbASg3Uzw5DJF3ud8iSz+VeaiVgVi5WuxfQwgdY7HLmzsFmpyZLtQ SmATN9FS8UbTP4j9Hq2FV3hEXKtFGK23IkaTk720Bmffpix5Mv1nd/W3hoCOJ12S4xnyrQVBrUq5S AHcLuX6cBVNuLNlLJFI88WQDyo9+E54JSREzTOkVRYAGG1u4t29MUp8C0kiOEAghnlQmsmenF4TUP EaSzX3Pw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUQjo-00076D-Md; Mon, 19 Oct 2020 08:41:52 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUQjm-000757-Ou for linux-arm-kernel@lists.infradead.org; Mon, 19 Oct 2020 08:41:51 +0000 Received: by mail-lj1-x244.google.com with SMTP id a28so6172086ljn.3 for ; Mon, 19 Oct 2020 01:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E6vrbF0sfYlMN3dhLBKLf2nZxUnO2/vKu6MnzDSXWZs=; b=pIfs1CLcBiI5sJphVOzm71plQFCpZC4u3N3FQmwTqpFPC3qQZiBkf2m34qFCyWEGi7 wPL8IZUPtCzRRRHOQCPnvoF9pTNx8jW7Gc9ZnlgOFtwF/UfABXDxdn9TBm5kWxJVmJCc AhxYgWwuQ0Wgq7dlbQXHJlkGlEwUIOkohI9qUAY06Bd8RtUfZc6tkqj6RQXHD19MAwlm Z8Q0b2sjFIzMNGyvqA/fM5I98YFT/oaXaQG4H89BeS+Mmkw1oX5ltLI5mmkQYbuywjVy bOGI7uPVkugjhZQWWZ3EarUv4UZTk6yAqDD5RJl+UNt9dLrl3uJ6iijopXvkQLA7KH0q mxqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E6vrbF0sfYlMN3dhLBKLf2nZxUnO2/vKu6MnzDSXWZs=; b=uLqZVxfacpREnAde1qXG3YEYEJlCjJRSW+lqAlSCSUfiE8gTquurUPiTzYXkZE+6Ng jGG6ftb5GnPlCRop/Bv16DEnwoRj54BssXv2GwhrGojTDVz8sJ6GdppxVavSEdQqcZFc mrsR2fz6UrdHnkeVLjRdZheE29Oi0T+5O/r3rK8o4ptPgxE0OkuKCUXdRAmzITeiZRWl 4xOHUWy/EKblw5y9Te4P7dQYPBcGc1kYZXcc/BC/953hPYUQWuS22zH4E9pm9z2rjNj6 xj50AdZNZKIsunZ6OYPCT1KewmSBwpWYvnP0sizKpLmMLqaHwCcGCI7CbbiPb1Y8q2z8 zajw== X-Gm-Message-State: AOAM530NChMDUZIyVuVHUapy8pzHXy9Fbyzk8esQuXA17KO80R6aRI4V X3HuRUP6s17fb5qkgITr/FCc8A== X-Google-Smtp-Source: ABdhPJxGFe55ilFUxnvQK6/3xgLJj45WCCrT7NCk0HplygnZ8UocHfWIb7Oblj5/h8uGigA+Ih8llw== X-Received: by 2002:a2e:9117:: with SMTP id m23mr5707913ljg.287.1603096908952; Mon, 19 Oct 2020 01:41:48 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id b18sm3174795lfp.89.2020.10.19.01.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 01:41:48 -0700 (PDT) From: Linus Walleij To: Florian Fainelli , Abbott Liu , Russell King , Ard Biesheuvel , Andrey Ryabinin , Mike Rapoport Subject: [PATCH 0/5 v16] KASan for Arm Date: Mon, 19 Oct 2020 10:41:35 +0200 Message-Id: <20201019084140.4532-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201019_044150_820317_1FB4D1AE X-CRM114-Status: GOOD ( 16.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , Arnd Bergmann , linux-arm-kernel@lists.infradead.org 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 is the 16th and final (knock on wood) version of KASan for ARM32. Changes since v15: - Things now work on all boards we have tested on including Broadcom and i.MX6Q. - Folded in a fix from Ard to PAGE_ALIGN() the end of mappings making everything work on all Broadcom board. - Folded in a fix from Ahmad Fatoum making things work with fortify on i.MX6Q. - Testing and testing and testing on build servers. - We are good to go. I will now put this in Russell's patch tracker for v5.11. There is a git branch you can pull in: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/log/?h=kasan This branch includes Ard's two patches already in Russell's patch tracker. Abbott Liu (1): ARM: Define the virtual space of KASan's shadow region Andrey Ryabinin (3): ARM: Disable KASan instrumentation for some code ARM: Replace string mem* functions for KASan ARM: Enable KASan for ARM Linus Walleij (1): ARM: Initialize the mapping of KASan shadow memory Documentation/arm/memory.rst | 5 + Documentation/dev-tools/kasan.rst | 4 +- .../features/debug/KASAN/arch-support.txt | 2 +- arch/arm/Kconfig | 10 + arch/arm/boot/compressed/Makefile | 1 + arch/arm/boot/compressed/string.c | 19 ++ arch/arm/include/asm/kasan.h | 33 ++ arch/arm/include/asm/kasan_def.h | 81 +++++ arch/arm/include/asm/memory.h | 5 + arch/arm/include/asm/pgalloc.h | 8 +- arch/arm/include/asm/string.h | 26 ++ arch/arm/include/asm/thread_info.h | 8 + arch/arm/include/asm/uaccess-asm.h | 2 +- arch/arm/kernel/entry-armv.S | 3 +- arch/arm/kernel/entry-common.S | 9 +- arch/arm/kernel/head-common.S | 7 +- arch/arm/kernel/setup.c | 2 + arch/arm/kernel/unwind.c | 6 +- arch/arm/lib/memcpy.S | 3 + arch/arm/lib/memmove.S | 5 +- arch/arm/lib/memset.S | 3 + arch/arm/mm/Makefile | 5 + arch/arm/mm/kasan_init.c | 292 ++++++++++++++++++ arch/arm/mm/mmu.c | 18 ++ arch/arm/mm/pgd.c | 16 +- arch/arm/vdso/Makefile | 2 + 26 files changed, 561 insertions(+), 14 deletions(-) create mode 100644 arch/arm/include/asm/kasan.h create mode 100644 arch/arm/include/asm/kasan_def.h create mode 100644 arch/arm/mm/kasan_init.c -- 2.26.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel