Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp455409rdb; Fri, 6 Oct 2023 08:19:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPBu5eQOsqeViHD3Jk2eiw+8usp8CzLyEZEDtv1zX0GMiabL3fnlJuY0W4Vu3AwRxkyzns X-Received: by 2002:a05:6a21:7803:b0:16c:c25d:fa76 with SMTP id be3-20020a056a21780300b0016cc25dfa76mr43618pzc.55.1696605579607; Fri, 06 Oct 2023 08:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696605579; cv=none; d=google.com; s=arc-20160816; b=PRn1+02w8LxRCX6xmMe42qCk50aNk79y6nS+bw4ffDF3C3EoW6KV3/WhD5szOph90W /0mVLhpr6MRqUe757TYTJn9SFmHZ3Wi2TfY2qyPtsfOtN0IjgEyeW+a4tMgY+wR6pczC cMiRyBMqwMkElqcI9HOQnwBZG8kLJGTi89Wc74jlKRaNSh1NJvZYRqVfx7kb8EmZ9/TD cnxMP7LrvOn32QMRnZUsK4BnB4iP6dfzv+0m6DE+aYe/L+LNqzEAL2QaaljM+64s1i24 AaiZ2w+3A1pf0JhPAvHa59JNXwUQZLD2ERhm+etPZZR7+uij5JCyzZFBoM7o0ZhhC6xG 9X9A== 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:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u5-20020a17090341c500b001c5f37aeebdsi4280634ple.579.2023.10.06.08.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 08:19:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; 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:5 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 19EB780BF4ED; Fri, 6 Oct 2023 08:19:37 -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 S232883AbjJFPTG (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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:37 -0700 (PDT) X-Spam-Level: ** 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 --- 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 -- 2.25.1