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