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: 149304 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp405213vqo; Fri, 6 Oct 2023 08:19:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3Zk6TP5T+A/ue3TzxxDVPEBMmztdQn57nv2dDG1RJHkVIwEZ9RMW/trWqHa69MvFVpxuO X-Received: by 2002:a05:6e02:1d87:b0:34f:525d:198 with SMTP id h7-20020a056e021d8700b0034f525d0198mr9622138ila.13.1696605576499; Fri, 06 Oct 2023 08:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696605576; cv=none; d=google.com; s=arc-20160816; b=M9r7J8sGaI5CTBldcRSABYdyAn2QLQfYBD0j12plp4Ljd1HhzJC9t0vyC8ALsIZPvb XjwFbDdd+oi6YfM5L4jQIxIiFB2bzvCLdu6+HIuBR1QWIdV+/J9hyqBYzSJMrJfhQa2K TShHvKutmrQByyheRLF/7Whh/QJoSUoj0ZZbtYZGeqFp1td7ge9cSX4M9Z51RuRS1pEc qBQgV2yd6nKfYip/S4TlJbIBDxYMZwd2GDwXl6QVODpg331L3cQQY66sQcfUPMpaO+Yr KGXfeQ8zowvd9wrZ0+RUDQsLCEWOpqiKzSKEJEo2tTSB5CjGYRjKNN6t4jwgN9xN1LFE Syqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7bRSqkxN7Q+9ijSJoX74SBiGUljonarnkrx60Wx+bkw=; fh=MvduW7TtfFJGfZiC/W6aaLQjI7EqApwiKAwimfBfFME=; b=aXAz9ouvKUZnk2IQMkvIYfQdzy3CXQCP6Y3WxV5EoK7IeuinuAFUWVQ557XVBG0rhW gEH8aGN9EKzCueEUni2kk882z1HMUt5o69DM6XhwGlbX/uVZZR+H1lTz5fGakGxOhpRg 1VsHWFSDV00tGXID7Q0HrHUrE3peatQtRtrDVr5uYhDuSbekricz2XK8iVhWZRNPqmjr Cuh3U1P4MbOt7QwKXr56hhxikJ04anUSg5QD/uQ1fOnZnsT3lyMfrUYKK7iNiU2ZLfOY sHbfx4tamsUsXgMi7sZJ7FypSqG+4+3fwjEBPCAw7S6C4dNeSU5cYP/AAKat/vyVS3aj 21ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=cfUq+xwn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q24-20020a63d618000000b00577f50580bbsi3746381pgg.299.2023.10.06.08.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 08:19:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=cfUq+xwn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 78C7E801B89C; Fri, 6 Oct 2023 08:19:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232830AbjJFPSz (ORCPT + 18 others); Fri, 6 Oct 2023 11:18:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232799AbjJFPSw (ORCPT ); Fri, 6 Oct 2023 11:18:52 -0400 Received: from out-193.mta0.migadu.com (out-193.mta0.migadu.com [91.218.175.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5F479F for ; Fri, 6 Oct 2023 08:18:51 -0700 (PDT) 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-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 06 Oct 2023 08:19:17 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779019888824259157 X-GMAIL-MSGID: 1779019888824259157 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: 149303 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp405176vqo; Fri, 6 Oct 2023 08:19:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQ3/5BY+1Wy2InscFB9tH5iHOtIi6eL5o4Lt9dJs9J6CickROVqzV10RY8pNrIDvUTZSZ0 X-Received: by 2002:a17:90a:f289:b0:271:78a0:8ab2 with SMTP id fs9-20020a17090af28900b0027178a08ab2mr6428960pjb.24.1696605573217; Fri, 06 Oct 2023 08:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696605573; cv=none; d=google.com; s=arc-20160816; b=lNOw/mCLMkC9xQ923Ke/Fs738GNE1qesbqLQCu+cbEBD5hsf8Pz7h+OYeEHu9nOzIR eSgpmJ7+iPMsG4cpRclYCPlS5Mkxtyz9x4EWURQwn5TLJ076GpjfHz8lMnHxZ6ulEM7P 8Hx6durjuHhpjr8CLDHKudAbt4nXeR898mrghllSQqHMfEZ8EoBiEzAzZRoRNbMQBZS2 1WPDKKyOd8m+WFi6WkWaE1RLxXxM0IKkxB2aUBt2sPgPQBarcmQo68F8fki4ZI3vrkS4 5hcuCJqA6BTiNkjCXzjZeyMMhbJQsfpSGKM9bKxvJrANPnbdWX1Kq0OS9slg5QEuD4A6 zSJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KpaY5zOxHzDnEKIsjBbAGIMHyxq37tXIib8836JShNo=; fh=MvduW7TtfFJGfZiC/W6aaLQjI7EqApwiKAwimfBfFME=; b=MwRqMGFXKn207k6hwHcJAyAOWUMfYQwxxIq3CrNH/upHYa2klLwE9HyF8IcRfPusF/ 6rq/6xQWhzfaJySsc0vzAqSt7ok6p0gd+JmG4mCCYV5CLUi00ANtHPc4AIcE9d07nUn3 ZiJ0Vvt0YtbNjw0xY2nP6GreXK0aiyQwk6469oSxD8YIpDmxucgelmh/zah1NZh/hOe4 fTllraI2px3kEpAue5M6pCQ8N+Px52PgMG/3JljQoRUdDGoourd/lijuw+n4GiNi+Oqq ZyUHLM/PNuFMzBFLfs6G1/V1nNcQPZ5+0FGNheUR+EmpBmECDDRbIDatW7kxCclYvFyR sy2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=sdj54eOA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m20-20020a637114000000b00577448019cbsi4022339pgc.841.2023.10.06.08.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 08:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=sdj54eOA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8677B82F1067; Fri, 6 Oct 2023 08:19:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232820AbjJFPS7 (ORCPT + 18 others); Fri, 6 Oct 2023 11:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232823AbjJFPSz (ORCPT ); Fri, 6 Oct 2023 11:18:55 -0400 Received: from out-202.mta0.migadu.com (out-202.mta0.migadu.com [91.218.175.202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 358D3D8 for ; Fri, 6 Oct 2023 08:18:54 -0700 (PDT) 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-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 06 Oct 2023 08:19:17 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779019885768843296 X-GMAIL-MSGID: 1779019885768843296 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: 149300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp405036vqo; Fri, 6 Oct 2023 08:19:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiZu+7lcn9XvanpQwSqGfrKAyiu7y9DPLl65h+kXKub9afqyT17Os7nOSGQCdpOmmQraSL X-Received: by 2002:a05:6a21:197:b0:149:122b:6330 with SMTP id le23-20020a056a21019700b00149122b6330mr10662614pzb.10.1696605562417; Fri, 06 Oct 2023 08:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696605562; cv=none; d=google.com; s=arc-20160816; b=rKknQ5CzwjLpA21T3kYRa4X+q2bWBzvHVVWrCmtSAnEyDeHFrZMfXA2YOZSQLxF1hY wWbnnPloUpGox8USMQRKZnUAiKqETq2M5Q9Q6o7HPV8pRbmTdVAwTxWxn0/gYwHO35v2 1y+/HCY93yN6iRPeRtBHmHmntPDo2Zot6r6zm2wPYq7NFO5G0Fp+dnHe4o0ibbquDSUG HwjrLjWIkTOV2nkO3lTlUkJGZHMQTnG8NuzRYpxP6ok2ExsJYMSUHIo1l9+S5uCFK43t tXg/mWNXteYWLMralxL52cyMv+NtbG9G0i1VzNO3HcrV4S717eTD5qXDNzEygr76A5Hd APmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d2bfkEo5JYZuK7Cv8VAKlPll7M52jynkOgAjxxr9P8w=; fh=MvduW7TtfFJGfZiC/W6aaLQjI7EqApwiKAwimfBfFME=; b=Bygr/LaZDuNq3aKnHkuuj+m+imdS8DpshKWMURhsk88VmR7RgF3ittZ/iKwgBTPyNx eUu/zCBqSvMbsiRdLC7NMaRehaaprVeKYNGeTSje027jFxpkpbz8jvBsTZs0c8IzVSRs ZVnB/g3D5EWcnHJZg0vDMvOyuzxncAx4HwBndUtiTkF5zANfJv8bM5rvI9q1ze8AxLa0 JkzDGdDD0evYW6MTU1gwS4p07zKiQ9zibIlDZQbIPDPg5oxCwFz6JsgzNoHhowondJuJ fMwsA+h7AWP0mtru7NJBw+0/X3GoJimL9iLnV+wrWQJ8urXUWCyOqBFBfCNOn4FAU0YB LWfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=vlDt89zq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id j13-20020a63cf0d000000b005704979833csi3708902pgg.855.2023.10.06.08.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 08:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=vlDt89zq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AF085802A547; Fri, 6 Oct 2023 08:19:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232746AbjJFPTC (ORCPT + 18 others); Fri, 6 Oct 2023 11:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232833AbjJFPS5 (ORCPT ); Fri, 6 Oct 2023 11:18:57 -0400 Received: from out-204.mta0.migadu.com (out-204.mta0.migadu.com [91.218.175.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E51E5EB for ; Fri, 6 Oct 2023 08:18:55 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 08:19:13 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779019874324456789 X-GMAIL-MSGID: 1779019874324456789 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: 149302 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp405136vqo; Fri, 6 Oct 2023 08:19:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLE5J3dcI20R6SNzYyLFPF66oBDXaAHAHoXG5Ym2G19xfSVaHGbjrxCOslzJqNtnCW7nhm X-Received: by 2002:a17:902:e5c1:b0:1c6:777:712c with SMTP id u1-20020a170902e5c100b001c60777712cmr9774956plf.51.1696605569587; Fri, 06 Oct 2023 08:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696605569; cv=none; d=google.com; s=arc-20160816; b=dJyaQsTridTLtSPazV00P8Eh1i3rJTPB/tQ3y+nokCjOnsMFLvP5cHk5kRF+SyPhRh 7sCvDjwl2q4zYMphw20AW9CNC6/asQzT1dIM9TWMs0w1hOc2vWMFCsIeSsc6IGxFVAAA 48GYzG6Lvx7TMiLtwBpjygxxhcY9XgrbW4H2Y4cAeOU5VYt9ntC6gk2j/34hgNQcReT5 FgXLIKvWHKcjtMwfgYzSojQDef7DIish9HgPTcVBtyC0EHYoQ9qGNT4EKq+B64XLjEuW hZwnJKtSxCTGEGXhaSZZPh6iFsyTsKLneL+xYmVmevNXNb8lj9Uqb4ccimFPrSeI3hfF fAbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EIqAxPuP24RonUYv8PBGZm7b4Pl2lfOTG5ClA7Kyoqk=; fh=lnWC2s3YVhkirWx8kTqFekoOxXJ3q/uSKdwZdkIV6qE=; b=c04WytCXx63RKXyEYMS7iqwKSh8riepV414CQfwJOKXw82qmnNz8CKDEzoTOJeX01H HgLjUpXN2kuXXPd6PyBDd2mj1QlqCaeJ/hoV5j8N2emsmuc6kIw4qGvlJG8HuQQvwP9E YnLqYgxcqs03hPlqQCJuRdQh0LfsqW1nyTCqVvwdrQYeVASC4J6iR6hHWKN20VmUXhy/ PLu3A7de+YWjk8odZwB9bub2mOaCfLlOhzFKG+ab4kgiL7kdrGHihmNQy9P07xfhlOhA kgRIyXSeW18vWzG7aoHgjdSiJVcEyYiDUasRJQ9trdGYsvicfJeA4WL7hPWbm/qE+Tu1 NcKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=L7U+Ncze; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ks7-20020a170903084700b001bc8a9f5e52si3840098plb.135.2023.10.06.08.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 08:19:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=L7U+Ncze; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3520C8028FD1; Fri, 6 Oct 2023 08:19:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232887AbjJFPTG (ORCPT + 18 others); Fri, 6 Oct 2023 11:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232784AbjJFPS6 (ORCPT ); Fri, 6 Oct 2023 11:18:58 -0400 Received: from out-192.mta0.migadu.com (out-192.mta0.migadu.com [91.218.175.192]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EB5D83 for ; Fri, 6 Oct 2023 08:18:55 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 08:19:19 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779019881719916958 X-GMAIL-MSGID: 1779019881719916958 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: 149301 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp405113vqo; Fri, 6 Oct 2023 08:19:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0gxsDfpEbZMw6lhPD/Gj83l42DIEvUMmSssVygtrfqbTuhBlxAqRZwugp7CBfLr+GXO8E X-Received: by 2002:a05:6a00:4305:b0:690:9a5a:e34e with SMTP id cb5-20020a056a00430500b006909a5ae34emr5577241pfb.12.1696605566472; Fri, 06 Oct 2023 08:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696605566; cv=none; d=google.com; s=arc-20160816; b=fc3HQpS7DB6erdETvTinNeP6OZsJce8HtPP37duQPz1F/AsF5xRi2rzGh8Paup3o3x 9JswkYGv5xc85vbXBDlVdR/j5ot5lcQLgwEpsuum28iYm+3N4voMzYitYWds5Q5b+UPQ JUSl4WnS6LZevP3ZLNAN1ji+FmmnW1s0CYBX2iIyAx040HPMqbiPXaRuIU1MjNnrfKlr 5/bQwXBgx4PSP6k2hSDhT6FAkKCXuV4W62USMCSkJYmhZpfVQb/HQKc7rlUGAxHHWE7k LFGckGKxMLHiYBDaXlTDzxMvG9WQF6NlV2MY7TcdFqqoQ86WkG3aIMcgZi+BW/21wgqm heIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Er5Jgf/mIYSvRRXnkgZed7EeXQhYo+vHYR723lnpJKc=; fh=MvduW7TtfFJGfZiC/W6aaLQjI7EqApwiKAwimfBfFME=; b=sISl6JQn9y8TdT1WLk7HcXb41T21oDOGtlwbCuVt/hMwAGWwlOHDOFI/nULC4mvgdL dcYLjVyn7uC/UUQ67KL1Tf6pac82piIQ1x0lxa6HUrK/qd/6UGUwR1UgFJXJuzvW2Z/+ +5bUP1nzXAWxP5nL7FdrAERaAD9jnVU1Qx4Vq05K6ypQFpZCkrQKBXhc8t7DGNezLXk3 cG0NtHqJ/Fanf4pXxL0SaKHdFq+NCewTJuOBWt7Mg4lz5rRd/yqISsG5v8fYtofFz5Fe RRHt7aJAndZHIG7IgFsJoZa4yIR3kZvXo8nBaoRfRgZpqxhMldsGQdV2Qhbu4+20NSxL mdvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=cvyFNI4O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id cl4-20020a056a0032c400b0068a5877bfaesi1690138pfb.382.2023.10.06.08.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 08:19:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=cvyFNI4O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 60FFD80291EA; Fri, 6 Oct 2023 08:19:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232825AbjJFPTE (ORCPT + 18 others); Fri, 6 Oct 2023 11:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232799AbjJFPS5 (ORCPT ); Fri, 6 Oct 2023 11:18:57 -0400 Received: from out-200.mta0.migadu.com (out-200.mta0.migadu.com [91.218.175.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23265ED for ; Fri, 6 Oct 2023 08:18:55 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 08:19:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779019877943786001 X-GMAIL-MSGID: 1779019877943786001 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