From patchwork Fri Oct 6 15:18:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrey.konovalov@linux.dev X-Patchwork-Id: 13411682 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F978E81E05 for ; Fri, 6 Oct 2023 15:18:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 68EF48D00C8; Fri, 6 Oct 2023 11:18:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 63E9C8D00C7; Fri, 6 Oct 2023 11:18:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 506508D00C8; Fri, 6 Oct 2023 11:18:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 3C3A78D0050 for ; Fri, 6 Oct 2023 11:18:54 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D69051203EB for ; Fri, 6 Oct 2023 15:18:53 +0000 (UTC) X-FDA: 81315394146.30.1B4DBD9 Received: from out-199.mta0.migadu.com (out-199.mta0.migadu.com [91.218.175.199]) by imf26.hostedemail.com (Postfix) with ESMTP id 122CE14001D for ; Fri, 6 Oct 2023 15:18:51 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=cfUq+xwn; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf26.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.199 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1696605532; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=7bRSqkxN7Q+9ijSJoX74SBiGUljonarnkrx60Wx+bkw=; b=HmbwGqVIC7vzkhZUs6NA/xSft7axnMBorDatsyL6Op6YC4A361LSkgIUYjw5WfWHRw2r3v f7PYWT1ybW77gh4Gv4+AR5L5IErOihcfftAhN9EspTHNYhnSrbCQauOlzYBlkgrh9CTmpr uvcAo1ZK2oTj3lTr9uiP1yvQKlXvhaw= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=cfUq+xwn; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf26.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.199 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1696605532; a=rsa-sha256; cv=none; b=ZWP7HJyspyPzpGd9CKUAxHjagAWWv80XvufF8/74FYPRPgv2Mc8/AATVzkomySafpPP2Bc y2sCIPs0zy8Cyz3gydVmC4rOtxhwqdFepWqgCFSdbwah42BiAmWtoYu+R+czIiGL0LjRTC sbXzufJQZfVm7TJkHtzCtUMLEioAnyY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1696605530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7bRSqkxN7Q+9ijSJoX74SBiGUljonarnkrx60Wx+bkw=; b=cfUq+xwn8SvZdwXdBSvn+lOVW4mTTNH+3vYsrHS9wPpyy75UL7eZvoAJWh5ErDkOQTkB/Z 6CcQvDfLP02vPvFsMD6rqUHIi59WSRdq08BWofr7cq82Bj8S7En3GCDIj1DrHNzNDgWcpC 062N0xdUSrakIx60YdvoRifF3qqFydA= From: andrey.konovalov@linux.dev To: Marco Elver , Alexander Potapenko Cc: Andrey Konovalov , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH 1/5] arm64, kasan: update comment in kasan_init Date: Fri, 6 Oct 2023 17:18:42 +0200 Message-Id: <4186aefd368b019eaf27c907c4fa692a89448d66.1696605143.git.andreyknvl@google.com> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: 122CE14001D X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: jet9wiwoum6x8a5oxcnk5nosudhxk9wr X-HE-Tag: 1696605531-956858 X-HE-Meta: U2FsdGVkX18FVW6K4ZyMl/Ym8xNrxHg4zHYGxthI8hVGSrC56ZVVzGvNXL6Mgmt5ounOvL5c54B4Sk6Gf78vDiWP0XRXhV/R1NTY9PjV9eQ8SUg8oMJAf2VDdfWqFsXZVMtyY6FfLy5q8eRrWcXJN0wpGhlmSj99hVsyOZ8V5NN0hr/wh5qJfBZ+QzwjLUfAe7HOvGPLl0IlirnmPV+GHUw9W2fMqJzPeW9kU4qpIex467FdgfDPic6yN8p0RV7nruUfLyOpzTiKCRik7F8nhCMc3LZVTZberm/XCisqpeTDXl9sQX+lBLcvKEMBF178uOywS+WFFkM1c0EqqhAElPoqRyWyb3zr/NnD6wstnI+Gh+9rvXXd86iSxr/f+Eyr4oZ8zHs+SwZc0RsmUigHYJ0gv+2hXRwHcCxB18PffM7GyvfO/0udztUCx/PZjpmNkeX8aY7NVnKjRVhTDdbak2TgxK4QHmqTukCvAyGKx14b3xspw92Izuv1DrrJO3CWuOCQMbIYkNS9hlTLGDWqVJX1KTuwlYqqGF249eifA9GBfewPooY5xMHbku0SKGWwommLHQcE/J0UWhFpvkdAfX4qFAId9owsOmPRn/CZlGeAliD62n2zEvTE+r382RES4qYR7EHNHXHOIfTdJS2uREOMxYJU+TS7BA90N53CjJluO/ZN2AsyIkx7W7nboplYaginT8fmQNqOF5+7VcmOffFY6W0u/kgQGHxx0Hp1UYyBJpL38bYverKSIl8e3lebVC07GvULrsVDtIZNpkp2BgB+xsBr6eiAuQTlU3G9HzxOWt2OkWVdagF1JEaZ7SC49GBagYuKAHjGQ/inRCl5Y9hLg8m7hvbv/zSvyUacAbz4uiM0ZUYi9vxNKbv7v5L3CgQm1zNqZhgEkhjMnFo8nded4GK7ZalaWsKba5kp8mFBhyhutkTDAHAstj2kmn7fw9C13Kwv2mpP0n/T+nc DcTPu6z5 OvUEy2nYIWXojHe6wD9JRcyAB09o9/YsTDQCjA9DmWaryOUcycW3nKzDw96UEN7Dq7dNa8Nr5eI8KhFLWrG3mhicZJ6Gdl7waOVMzpOu+xUFkGvBB7tK0BQ1BxkRJzaUiOg8PbrQufYa+4gC7JTBlIzQJZflM/Hbk6BYAIYX2J4k2h70z9ySPxmQMUrk0T9YXhPO5WFzyufCnr+A= 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: From: Andrey Konovalov Update the comment in kasan_init to also mention the Hardware Tag-Based KASAN mode. Signed-off-by: Andrey Konovalov --- arch/arm64/mm/kasan_init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/mm/kasan_init.c b/arch/arm64/mm/kasan_init.c index f17d066e85eb..555285ebd5af 100644 --- a/arch/arm64/mm/kasan_init.c +++ b/arch/arm64/mm/kasan_init.c @@ -300,7 +300,11 @@ void __init kasan_init(void) kasan_init_shadow(); kasan_init_depth(); #if defined(CONFIG_KASAN_GENERIC) - /* CONFIG_KASAN_SW_TAGS also requires kasan_init_sw_tags(). */ + /* + * Generic KASAN is now fully initialized. + * Software and Hardware Tag-Based modes still require + * kasan_init_sw_tags() and kasan_init_hw_tags() correspondingly. + */ pr_info("KernelAddressSanitizer initialized (generic)\n"); #endif }