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