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 } From patchwork Fri Oct 6 15:18:43 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: 13411683 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 65FD8E81E07 for ; Fri, 6 Oct 2023 15:18:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8D7438D0050; Fri, 6 Oct 2023 11:18:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83AFE8D00C9; 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 57C588D0050; Fri, 6 Oct 2023 11:18:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 442BC8D00C7 for ; Fri, 6 Oct 2023 11:18:54 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 1CB981A006F for ; Fri, 6 Oct 2023 15:18:54 +0000 (UTC) X-FDA: 81315394188.24.161EAD7 Received: from out-206.mta0.migadu.com (out-206.mta0.migadu.com [91.218.175.206]) by imf13.hostedemail.com (Postfix) with ESMTP id 648A22002A for ; Fri, 6 Oct 2023 15:18:52 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=sdj54eOA; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf13.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.206 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=KpaY5zOxHzDnEKIsjBbAGIMHyxq37tXIib8836JShNo=; b=acIyG9A8oAYcu+7Yr6A71yOm+akeBnvwHfZ65qYPhENeZWOhxH0mRDzDkjg91pz44kilAl aY+czW6uFfkrll8qsRoGXholBU0hxdZBI55H/M20pT0hip7NK/R7Jk50VK3iekTJFcGJ7u 1Zj6I/oSTEI49QS2cNpKTwUZO/Brj1M= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=sdj54eOA; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf13.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.206 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=AnSojmQnmARiJ1oRv45PgwtVMvym1mshithbfbi3ibpybqRm+MQtUbOSogfM3vcCPI+VO2 V3Q590M2PwTNXngZsRtA6nWthR7TOMvUv30MJ4AoChoiPgKaTz69x4tqkKkRd3e7dlsA5T kgc1opK4fNo+iaZOSyyZjl4yrRXtjzo= 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=KpaY5zOxHzDnEKIsjBbAGIMHyxq37tXIib8836JShNo=; b=sdj54eOAoxvbDjsG1L1LrX4GPNkPYAmSqUqrEs0jwQ6Up2Z+kVeRFW4KN6fxPsOHGg6Ode 5Mx5CSch4p7iY8TzDjBanPYp0/tbMZPIExkiILwYI/bFmaEJrBGJcxjKCCCm/iwBQn+1mb QLA2DRzBrErqtsGV7G6DB5s9bC3YhF4= 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 2/5] kasan: unify printk prefixes Date: Fri, 6 Oct 2023 17:18:43 +0200 Message-Id: <35589629806cf0840e5f01ec9d8011a7bad648df.1696605143.git.andreyknvl@google.com> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspam-User: X-Stat-Signature: hytmuujjmgn4m4g1xzjgqxj18fjiftw5 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 648A22002A X-HE-Tag: 1696605532-985499 X-HE-Meta: U2FsdGVkX1/vbFGwetGeQolsbLt0Y9Sht2N6RyNOkH9765C9arhfkXbq3ht6FYAGB5tXJNkIsPkPOW5uNU3x2pHkkX38Jp0DsrC9iHOvfrnsmjIKVnq8kD8rbpz8hI2780vwceZEgxfRDoIXjFkB3CNw91nwB8DUfLUOmEVEDDERTAArVji9atjD6lUsfKBduMOohmHBjkJ2+a9QtpVHbAdUq6R00JSp8DZyzHkcMQZ0SKqBXiL60yRF2wihYC7ZyoeiAbcUiOQasDBL7UURKkpNSPV/IlCxj3FfMULYphj7MqRlDEXjg/0wjuFNSj/nTPYxD4TYXeNIkPL7360cpXVM2CncYU5nmwUjRk0hPOBo3ad3wmwlnbDhiz5kr1ngwYmxULoXxigfvB3AJypbA3g5MmkNAhbfKiDXKkut0/Cwrl7FmZ8SX92f/R8xTCwnl+8Q0bAM6g4VO1uUPGnL0SLyKA0e/Ap3B7G4RiSbyAhCG/GmKo45+V4ExIdlAzntNHZ9PtSbHsiJhF6PO9OsNlKjxbkmKpOJTJIjpOC1b7ychRoow2fFxbf0tAE50Lp+ZwiB5x4BU0Hvp8egzLrUElSAU0f9Nl6oINJYy/oVh/+3asbTrAIyEG2QjUNDpbMc7YJ1MN2460Htn+j5pqKzyovjoISfGLvslWmE6FCfFkvQzRSSJvYrtv5aWW2AlOGTVO96xVLf4VaKey6mEM88Zw9/ERGltkScuUF++2Ma2eKbuWnf9hyMFhwCjjpBQ6WLu2PZR++3gR2OpVT35XzL9C83wr7g2UhW8CpTcssdnCX7PCLnSSYjn0wxOLnkBi9C+IsB0uQjnfyoF2ur0n5KHphE6vXNfujE9YbekZyVP9ptnCZRUwz2/qSwGUbn3t980qyOTD9YPMzuBSQW48flWFEOZOeiGq+wj+voPCE5QLg6WMIj7N0qNroFsvyRD8Kk83Ps6cYtdW0NCayNck7 +p8BMqpQ r7Yt5GbQOpMZtoF41pJn9dhL0bNzoVhmp6S61bWT5bRSMJdDUK3oxPzxWohrIWiruNllTSz0PZys3up51B5o0FkG9zGz7AS9sObaJiVJ2razBkWRvBM7etG5+lhOADPYdaIsxDqTI4eKkYNbOMUD9dty9bFMBsAt337hQlz47UnAu/+Wo5A3Nndpd73+TLky6/v+S 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 Unify prefixes for printk messages in mm/kasan/. Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver --- mm/kasan/kasan_test.c | 2 +- mm/kasan/kasan_test_module.c | 2 +- mm/kasan/quarantine.c | 4 +++- mm/kasan/report_generic.c | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/mm/kasan/kasan_test.c b/mm/kasan/kasan_test.c index b61cc6a42541..c707d6c6e019 100644 --- a/mm/kasan/kasan_test.c +++ b/mm/kasan/kasan_test.c @@ -5,7 +5,7 @@ * Author: Andrey Ryabinin */ -#define pr_fmt(fmt) "kasan_test: " fmt +#define pr_fmt(fmt) "kasan: test: " fmt #include #include diff --git a/mm/kasan/kasan_test_module.c b/mm/kasan/kasan_test_module.c index 7be7bed456ef..8b7b3ea2c74e 100644 --- a/mm/kasan/kasan_test_module.c +++ b/mm/kasan/kasan_test_module.c @@ -5,7 +5,7 @@ * Author: Andrey Ryabinin */ -#define pr_fmt(fmt) "kasan test: %s " fmt, __func__ +#define pr_fmt(fmt) "kasan: test: " fmt #include #include diff --git a/mm/kasan/quarantine.c b/mm/kasan/quarantine.c index 152dca73f398..ca4529156735 100644 --- a/mm/kasan/quarantine.c +++ b/mm/kasan/quarantine.c @@ -8,6 +8,8 @@ * Based on code by Dmitry Chernenkov. */ +#define pr_fmt(fmt) "kasan: " fmt + #include #include #include @@ -414,7 +416,7 @@ static int __init kasan_cpu_quarantine_init(void) ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "mm/kasan:online", kasan_cpu_online, kasan_cpu_offline); if (ret < 0) - pr_err("kasan cpu quarantine register failed [%d]\n", ret); + pr_err("cpu quarantine register failed [%d]\n", ret); return ret; } late_initcall(kasan_cpu_quarantine_init); diff --git a/mm/kasan/report_generic.c b/mm/kasan/report_generic.c index 51a1e8a8877f..99cbcd73cff7 100644 --- a/mm/kasan/report_generic.c +++ b/mm/kasan/report_generic.c @@ -220,7 +220,7 @@ static bool __must_check tokenize_frame_descr(const char **frame_descr, const size_t tok_len = sep - *frame_descr; if (tok_len + 1 > max_tok_len) { - pr_err("KASAN internal error: frame description too long: %s\n", + pr_err("internal error: frame description too long: %s\n", *frame_descr); return false; } @@ -233,7 +233,7 @@ static bool __must_check tokenize_frame_descr(const char **frame_descr, *frame_descr = sep + 1; if (value != NULL && kstrtoul(token, 10, value)) { - pr_err("KASAN internal error: not a valid number: %s\n", token); + pr_err("internal error: not a valid number: %s\n", token); return false; } @@ -323,7 +323,7 @@ static bool __must_check get_address_stack_frame_info(const void *addr, frame = (const unsigned long *)(mem_ptr + KASAN_GRANULE_SIZE); if (frame[0] != KASAN_CURRENT_STACK_FRAME_MAGIC) { - pr_err("KASAN internal error: frame info validation failed; invalid marker: %lu\n", + pr_err("internal error: frame has invalid marker: %lu\n", frame[0]); return false; } From patchwork Fri Oct 6 15:18:44 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: 13411685 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 2A911E81E05 for ; Fri, 6 Oct 2023 15:19:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 170D88D00C7; Fri, 6 Oct 2023 11:18:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 024BD8D00CB; 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 D6B348D00C7; Fri, 6 Oct 2023 11:18:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C5DF18D00C9 for ; Fri, 6 Oct 2023 11:18:54 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 93F161C9CBC for ; Fri, 6 Oct 2023 15:18:54 +0000 (UTC) X-FDA: 81315394188.22.71EDFC7 Received: from out-204.mta0.migadu.com (out-204.mta0.migadu.com [91.218.175.204]) by imf10.hostedemail.com (Postfix) with ESMTP id C4A88C001A for ; Fri, 6 Oct 2023 15:18:52 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=vlDt89zq; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf10.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.204 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=d2bfkEo5JYZuK7Cv8VAKlPll7M52jynkOgAjxxr9P8w=; b=RODapNuFS1l1t78O8wCGvzknl5DOAMOs/y0ljr9p3pwP1pZYxYeD4o25ncClL+lFtub+5Q XDEbHk7CiGkzTYpi7YW5GHvzLFeN2uEugy3Hp9bMK1mS18C7vyVr54GkHmawAZufTh4hfb gZIvuxoRy7Uz2hxQuGcWz6QReX3ISxA= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=vlDt89zq; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf10.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.204 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=pvujgnERG2OHvXBRKKyjqh3micXjy1O/NcsXpzE5wyKXkKbWeMRccUvwJdWVMUim8FlqTB ZS26VBC3rIuR3X6z8liGjiD92wUobN6R6LkcSPTMNU1Ado+bHuyc+8Nw+eu3jQWaXMk+x1 OZ17MzT0/Hfy1O0k1Pcx7qtpjnBVcWQ= 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=1696605531; 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=d2bfkEo5JYZuK7Cv8VAKlPll7M52jynkOgAjxxr9P8w=; b=vlDt89zqqnculRELuSeD9jLjZvKkTm/HiU3ElzO3T+fxatuKvM2A4E2SdhRUNGBH2xbgro 3wvtsb368B03sIGwZKqVO5PGL8PxfVJNm+p51ld6CPnb10yOlBCdGxfsf4fknSSnhps7S3 EcII2j00X56lu2ZTTlQlFbk3V+F7v2Y= 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 3/5] kasan: use unchecked __memset internally Date: Fri, 6 Oct 2023 17:18:44 +0200 Message-Id: <6f621966c6f52241b5aaa7220c348be90c075371.1696605143.git.andreyknvl@google.com> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: C4A88C001A X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: jpwg1knyjm5jeuu8rk5b4udnm3amwdro X-HE-Tag: 1696605532-856839 X-HE-Meta: U2FsdGVkX19/ZnHDKN4xE0oekWEPNkTCc5k57nB4HlEbtFuXbzsxAf3dMT8ow6PWZFsiBTt5P0FP5PtmhU8T3BBAW105AYi3htrER0LSzhzTsdCCAU/d4HUz5z0SZrU5lsRbkadzmAY+RIN4gLw7lK2bPuorXU5oosDeGKvveiqlqyhmvryFlQiV9NqEDXZ0suNovf+gTEwmFVA0fCMvnDifRMR+178hKilhje0OUuVeFtooI7LKAk5Z0hAKgL0n1yByI/4M1RFZyq483pf2eXmHs+c6YiyzYItwtfbrc+u8qiZzjzHm2oOUjMnjXnz6zy/ALfZAA/YJB/2Ndxk5V/6ag0bmOmWb+PwkVKJj/1BLDdOGr17eeJE6JhsAkPPUGi4rTg9YellYlqKFyAvRZFRjke29bq3UwRoNieEmsxD8sh5ADcLvR4UuAXVdsESmwihf4uvtvUZnPvHIp2XOKBwHQLn7XPstN3wo7tRSutbcN+MKv0mzFuNu833Z3qdQFnld3YxclYAvfpPsIhddlT8U2NEqdHbPiLoFhxMl4MzEZYCdPcTbVO+qnyfzila79OgwlA6k2H/2qyFcQ0R/hoeI6H+kS3YX560EXQhFv3ybQ4smYGRLe15fxagngd5uG4lyOA5tandHmMVeRzdTyOs898Ys4fEfQembEj65+lx81N4/U3hAJ78waAHFEyMDaWFCEXtx7LymdkpsbBS90OMYaw/6863yuZ5WhnZQykWi0x3/zVNhlL+/5tXop6/Lsgx+oRn5ET0IyZifhiyBSPjjKI/Ez5Qa/oe5+Nb4+lStxdwSaQZgTgY3HdEIkVrQIXQEbNHii9J6xXsYVIfh6GINbzN3QBasBGa/C1gyqu3GsCw8sb5CGeTaPhQ1Bx0w+1BxdvFewMG6EEjsn5WbBQGeBsOW6e/59EF4PAA0WNf9oCehRPtABETL3fxG2QwGD9AJUNW2exRvnOcxL1+ 08DkfpJJ vlurHyxE4gkbco5UOMLre8HxS1I3jtn/+a2TRBYceZjVuZ4/VLusP2O6cvq3dsd2vNjZj/RM59R32ZGeD14OBkmhAtb3Co+GTD9e1NX5hN6oqXdq18hkC0otviK3PA4aTb1N3yZh94A1zzlAWujfuJFJtAjXOleXwdlGdscy5jFsXRQkokjQMrHmzmaRQ03SdE+VuzhJKVaE6VfLqkfGo8YXQ7g== 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 KASAN code is supposed to use the unchecked __memset implementation when accessing its metadata. Change uses of memset to __memset in mm/kasan/. Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver --- mm/kasan/report.c | 4 ++-- mm/kasan/shadow.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/kasan/report.c b/mm/kasan/report.c index ca4b6ff080a6..12557ffee90b 100644 --- a/mm/kasan/report.c +++ b/mm/kasan/report.c @@ -538,7 +538,7 @@ void kasan_report_invalid_free(void *ptr, unsigned long ip, enum kasan_report_ty start_report(&flags, true); - memset(&info, 0, sizeof(info)); + __memset(&info, 0, sizeof(info)); info.type = type; info.access_addr = ptr; info.access_size = 0; @@ -576,7 +576,7 @@ bool kasan_report(const void *addr, size_t size, bool is_write, start_report(&irq_flags, true); - memset(&info, 0, sizeof(info)); + __memset(&info, 0, sizeof(info)); info.type = KASAN_REPORT_ACCESS; info.access_addr = addr; info.access_size = size; diff --git a/mm/kasan/shadow.c b/mm/kasan/shadow.c index dd772f9d0f08..d687f09a7ae3 100644 --- a/mm/kasan/shadow.c +++ b/mm/kasan/shadow.c @@ -324,7 +324,7 @@ static int kasan_populate_vmalloc_pte(pte_t *ptep, unsigned long addr, if (!page) return -ENOMEM; - memset((void *)page, KASAN_VMALLOC_INVALID, PAGE_SIZE); + __memset((void *)page, KASAN_VMALLOC_INVALID, PAGE_SIZE); pte = pfn_pte(PFN_DOWN(__pa(page)), PAGE_KERNEL); spin_lock(&init_mm.page_table_lock); From patchwork Fri Oct 6 15:18:45 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: 13411687 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 84FF5E81E08 for ; Fri, 6 Oct 2023 15:19:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CAAC28D00CC; Fri, 6 Oct 2023 11:18:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C80ED8D00C9; Fri, 6 Oct 2023 11:18:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AD3568D00CC; Fri, 6 Oct 2023 11:18:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 95A4A8D00C9 for ; Fri, 6 Oct 2023 11:18:56 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 5EE87C05C8 for ; Fri, 6 Oct 2023 15:18:56 +0000 (UTC) X-FDA: 81315394272.06.30406F7 Received: from out-196.mta0.migadu.com (out-196.mta0.migadu.com [91.218.175.196]) by imf26.hostedemail.com (Postfix) with ESMTP id 7E10114001B for ; Fri, 6 Oct 2023 15:18:53 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=L7U+Ncze; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf26.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.196 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1696605533; a=rsa-sha256; cv=none; b=58joE1KMGWpiXRtjtWQSNPU9DOdefyMcsyfYLGSApKZWAa9nmRRquD+UpHGscoK2VNegSM xM4Fu1d89anNAp85miPdLrqpxiECTezjJy0l7lmFUrMyNZTWnlyYhppWXfrQZJP9tWJmuQ 5JohNNgOsf6zTACPN/k/uPL6iD+dAks= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=L7U+Ncze; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf26.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.196 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=1696605533; 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=EIqAxPuP24RonUYv8PBGZm7b4Pl2lfOTG5ClA7Kyoqk=; b=lGUoxv968gJ42eWdl1yZfklPJeZp0ysy0CQgqiPY6YRVJfu+TMUXFZYVzrSYEB2/omturw 9zbhbex/Ersdt00rs3aqETX2PnrNayUkrWQFj6KefcsYcBuFvULpTOBpKWU3JAQmrFWrO6 f+LGqSIdawjSE/ObNnyByl0Jbm3+TwY= 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=1696605532; 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=EIqAxPuP24RonUYv8PBGZm7b4Pl2lfOTG5ClA7Kyoqk=; b=L7U+NczeLeA1o/KWHtZPd+5MUQJBrUZGJNS0MJ9jZt+Ov97SeTq/Mf2xdGgWVjR+vA1zAn p/aBEqzzvploLGftgONKxcwuhUSlU6VxP+Bfu/E9asdFi2nvYiStiWMAkP7VoU5B+RI+6S w92ocSu6XXEZKYMGytdmmujhZ90nT8U= 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 , kernel test robot Subject: [PATCH 4/5] kasan: fix and update KUNIT_EXPECT_KASAN_FAIL comment Date: Fri, 6 Oct 2023 17:18:45 +0200 Message-Id: <6fad6661e72c407450ae4b385c71bc4a7e1579cd.1696605143.git.andreyknvl@google.com> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 7E10114001B X-Stat-Signature: 6bjud7a6kpruym4qx6wddqg8qr6wpr14 X-HE-Tag: 1696605533-47130 X-HE-Meta: U2FsdGVkX18IKMhtbmfIDvuEzy/gqsRRQWW0NMDuOoHfzzQEA8hXg7lO4wF/ehLkOIIKkdsv+uKQ8j+Z4BQhn+y559wyNvniTzen4LOTuQjf4KcO0p5z6z2p1PegPWcgs8FNMyVeOQYmDy+ThuIgLPgM0nE6s/6mlER0pkSGbGInwK3URZ4WJeLNO9cfDPl/zXQnM4bYV4p+HelkbjE34r4BMX9ZIbhTXbt1QwlWQZbgSzYTSJgy7u9CXuQJJdZ8EQ2qn3yWhLCcr59ILCWAK7Hln4Kk3liBCrdyDHRdqUeXXe7tVw0dqEiOeRDlw6s1+YjV7w5y4+WrE9u/2Qu6NVa10ECwxpOpqvW5nq8WzCQadt3/N7ALK70dhJq8KziLhPbaJIe2IYX0TNByCpt18MBtniOaX+B5cZIAL350Sg7ViRhP5fj3kpWZCHzxlHXZF4XnfOlT9L3B+kaaHyrKj0jnfUZasq2Jkojr9JH1m8p/m+n6HPTj39sfdISzALxMzGjzX+k80Z5MF8i4dira1LzoV2o1et5rbwYSXVmS+fSh8v1tIBlKKBFs3BR7VztP5EbXSk+qhIvSPDlcuhqy6IWVCAKFdoIEHrnt/Wwyp8K4WpkaBFDVfwwGUxUqRzXywjyRJ483HtVlIak95DS1JIuSQri5b3iaI+r5pxTF6lfOqGp+ojsRHjI6XgVNipdUXA5nQeITwqLjEaAvF0FDD3hRCvEVY08WqaNjYAZ83RHOi9TC52WzgcGP7VpCKUyeNYTVaGetuw5bVQ+JVxGd6KsD8f8XD7ht9sQIe2F9vnPJlLH5J/AN3p1+Q3Kt9UTVfnz0xayIV4iiMMABtF8KztkpqfA5nsV08zJr83Vn1PlvZaAkrMPZz9yakf5XkFQUC1weBLioEpLFY4xYCelFZ4Z6FPN+VlK8ogIiMTE/lnludlzLaJ6p8LoGcLBZFj0utUPL6cb0VDeeqJK1Xjo LfO4pxge 5p+KdWjLNeCYrpouduHNnmEKLSEnTuS3cGZen8Z4EqqrQOTAf2BgPF/Xu5x8fqy299dG7ZMSqYkqrZNf+t/Txwu14Mlaj6I0tZXLppCVFRCKVdhkTNKG1WQhtsejOIkPMA2ofETQOgxKMTFEf98hcCR8txeKI2rgsJfsf2jC++6X+JC6cTxr0x95/LfaARPLa8Inni9vR87p3LeurNrefp9SHBxhRGaoih35CcHSTbkmmgoeITq1zwlcHxNQD2UJVp8AiiI7sDEQF8+BKecptvBaFaBhqVpjfujYT/uX8MtizG50= 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 for KUNIT_EXPECT_KASAN_FAIL to describe the parameters this macro accepts. Also drop the mention of the "kasan_status" KUnit resource, as it no longer exists. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202308171757.7V5YUcje-lkp@intel.com/ Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver --- mm/kasan/kasan_test.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mm/kasan/kasan_test.c b/mm/kasan/kasan_test.c index c707d6c6e019..2030c7ff7de9 100644 --- a/mm/kasan/kasan_test.c +++ b/mm/kasan/kasan_test.c @@ -91,10 +91,11 @@ static void kasan_test_exit(struct kunit *test) } /** - * KUNIT_EXPECT_KASAN_FAIL() - check that the executed expression produces a - * KASAN report; causes a test failure otherwise. This relies on a KUnit - * resource named "kasan_status". Do not use this name for KUnit resources - * outside of KASAN tests. + * KUNIT_EXPECT_KASAN_FAIL - check that the executed expression produces a + * KASAN report; causes a KUnit test failure otherwise. + * + * @test: Currently executing KUnit test. + * @expression: Expression that must produce a KASAN report. * * For hardware tag-based KASAN, when a synchronous tag fault happens, tag * checking is auto-disabled. When this happens, this test handler reenables From patchwork Fri Oct 6 15:18:46 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: 13411686 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 3F075E81E08 for ; Fri, 6 Oct 2023 15:19:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 139228D00CB; Fri, 6 Oct 2023 11:18:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0E8AF8D00C9; Fri, 6 Oct 2023 11:18:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DE0C88D00CB; Fri, 6 Oct 2023 11:18:55 -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 CFFB08D00C9 for ; Fri, 6 Oct 2023 11:18:55 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id B14F41CA8FE for ; Fri, 6 Oct 2023 15:18:55 +0000 (UTC) X-FDA: 81315394230.10.1CE0D94 Received: from out-204.mta0.migadu.com (out-204.mta0.migadu.com [91.218.175.204]) by imf08.hostedemail.com (Postfix) with ESMTP id 0AE5B160011 for ; Fri, 6 Oct 2023 15:18:53 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=cvyFNI4O; spf=pass (imf08.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.204 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1696605534; a=rsa-sha256; cv=none; b=1122nZY1w1WYrqJqmCpZnraYyDI/jgKxFDUhMS2mMbbBGbCG33n35S8pwVERqmDGKS6cKj AkvWoijN2QBQ7wg+HbXFPsNUswnKIEuv3DYZQHltI3vEdPGNXfGaeupSar3k9Sz/kK/0YO T2zipZs9idlxVCJdNYNNhLTcxbtAOZI= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=cvyFNI4O; spf=pass (imf08.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.204 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1696605534; 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=Er5Jgf/mIYSvRRXnkgZed7EeXQhYo+vHYR723lnpJKc=; b=Oc6WwEKiW3YXDf6IUDHSf+rTPMDrkcY1UtBVjgI+Fr2B5q3oeUJwi7INclYXdt1GGPsQYz VptyE5h4srbHG57fwrct8ECX28TZu4jW99Dy74xOyBvBDzhIMP/Jz6sDzAAw7kJ229kWX2 Rt2CEenwQQ23TeggV4vZvqYev6kRskE= 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=1696605532; 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=Er5Jgf/mIYSvRRXnkgZed7EeXQhYo+vHYR723lnpJKc=; b=cvyFNI4OAQwUs9v5CXlxdA9g8c/2WH3s2QRoom6vGRHGmwdYyvDiHToyN+AYxM9Ci36Rn6 G1xgcus15AvmXMADgyyr9qAyGVRSVnGdIbkzmsjobLylVDc8diW7WYeuuJdLTIxeuC5AVN VydDkx4lcdhG6KPp3nlS/FWhQRXxrKQ= 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 5/5] Documentation: *san: drop "the" from article titles Date: Fri, 6 Oct 2023 17:18:46 +0200 Message-Id: <1c4eb354a3a7b8ab56bf0c2fc6157c22050793ca.1696605143.git.andreyknvl@google.com> In-Reply-To: References: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 0AE5B160011 X-Stat-Signature: h5ywqr6sencxnycswoa8xnn9ior86sh7 X-Rspam-User: X-HE-Tag: 1696605533-933456 X-HE-Meta: U2FsdGVkX19gUm6LpRFoR/nkf1cN5/TeC3rcH6Nd6aXvCkuT0SvtwMuWOX4gv+m6xUHsvwrWW7k3Zv2FzGXAFNPB3aPqVxsRlehrZvpqL88R+AsqDkNw0AUn3CU+nBQlgNUGIOLYZxNVrbub92lYLTv2lcPdje3DKXV12+lbO+9fl7Pj23eSZ+iPhulKVSaXsklswAkp1THiU5afYSYodrSClRdaMSptKWvWRet4uSUQycXQhx9l+JabG3Mv1dOHaklM+KyoLwsXr0lvfSm571t/skD6T0eyj27ssOrJ1LYTj0AbrWbaM+d4vNgp1pEEPPxtqfeZ+CArFPH+Q/vModvuWacl770Suge6gnOf7CKy/1t6Bavt1ZKy+qcFEhBdEV70M35xmpNuKw0l2tdN9ob4l2i4sprsMpNC8dlBGPX1pLBnLDn8SthCSeb1ksv3Aiw9tWLT6bEjcUlRscWYoCj168TJ36b7f5dAS6KBlunl3pkfVzKDJQ6q/C7uHifHVu7E/NHUHFHKQN8xGYYib1K/q3/I/JRIx24cAaVXSAnN5ykl7+XIhkscBEVoHaKXIS4wgEuEUASK9JKbHitD4Lj1pkH0C+GnjoGtP9loXXWuCw6t0QTGz7adBqWlH02ttJG+BWKEhXgSHIKBqD15wrr0wxyvM4OB3fAahTW18wbQpkdUcZ6OqYLgGGYFQxBLIfxraz+j9RxIypVdJ5Zqfsb/EYbDuuMtpAswr8fRvrHUSQSxzv4DOrwqd4LkGK+7bYoVDe6UmAQ6gGZpMrOYywn4x/2koK3sqNJ0k35DARDO4YnO9Vt/UdPvX06pL2mBfqEeSoHbtOXlPBBZf6EBOO3q3kZ4t9uFuCKsb9rePoAsDM61nTBOgFq4rdmKD+OMIDGkqeiBHZpUTsk9jP2ecfw0ksmpR61uJvCJti//2+A0CphE99n0iHEa/sjQKiYdAC3XPk+eNCIQvx8ZmaX kK0+vOxv JeXIW2ZMNxdxtkXOYWKd04cBqttkj4gOT+Q4G2h1osBL+HGF/pGog/HoRJDBgfiMWiwURuH1blHbZ1yRNC51UjDSOMzhwCuXY5Bw7xabn9AGhpUhMAD77n+vNKGtao1Cq3kAoechtpe6CMMNuZVWz2nOnKkbClj3fLeoHdRQWM5N3LTE= 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 Drop "the" from the titles of documentation articles for KASAN, KCSAN, and KMSAN, as it is redundant. Also add SPDX-License-Identifier for kasan.rst. Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver --- Documentation/dev-tools/kasan.rst | 7 +++++-- Documentation/dev-tools/kcsan.rst | 4 ++-- Documentation/dev-tools/kmsan.rst | 6 +++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/kasan.rst index 382818a7197a..858c77fe7dc4 100644 --- a/Documentation/dev-tools/kasan.rst +++ b/Documentation/dev-tools/kasan.rst @@ -1,5 +1,8 @@ -The Kernel Address Sanitizer (KASAN) -==================================== +.. SPDX-License-Identifier: GPL-2.0 +.. Copyright (C) 2023, Google LLC. + +Kernel Address Sanitizer (KASAN) +================================ Overview -------- diff --git a/Documentation/dev-tools/kcsan.rst b/Documentation/dev-tools/kcsan.rst index 3ae866dcc924..94b6802ab0ab 100644 --- a/Documentation/dev-tools/kcsan.rst +++ b/Documentation/dev-tools/kcsan.rst @@ -1,8 +1,8 @@ .. SPDX-License-Identifier: GPL-2.0 .. Copyright (C) 2019, Google LLC. -The Kernel Concurrency Sanitizer (KCSAN) -======================================== +Kernel Concurrency Sanitizer (KCSAN) +==================================== The Kernel Concurrency Sanitizer (KCSAN) is a dynamic race detector, which relies on compile-time instrumentation, and uses a watchpoint-based sampling diff --git a/Documentation/dev-tools/kmsan.rst b/Documentation/dev-tools/kmsan.rst index 55fa82212eb2..323eedad53cd 100644 --- a/Documentation/dev-tools/kmsan.rst +++ b/Documentation/dev-tools/kmsan.rst @@ -1,9 +1,9 @@ .. SPDX-License-Identifier: GPL-2.0 .. Copyright (C) 2022, Google LLC. -=================================== -The Kernel Memory Sanitizer (KMSAN) -=================================== +=============================== +Kernel Memory Sanitizer (KMSAN) +=============================== KMSAN is a dynamic error detector aimed at finding uses of uninitialized values. It is based on compiler instrumentation, and is quite similar to the