From patchwork Fri Nov 1 18:40:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sabyrzhan Tasbolatov X-Patchwork-Id: 13859676 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 A642DE6F07D for ; Fri, 1 Nov 2024 18:40:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 25FB76B0088; Fri, 1 Nov 2024 14:40:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 20EE36B0089; Fri, 1 Nov 2024 14:40:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0D70B6B008A; Fri, 1 Nov 2024 14:40:22 -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 E59F96B0088 for ; Fri, 1 Nov 2024 14:40:21 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 94C4CC0D9A for ; Fri, 1 Nov 2024 18:40:21 +0000 (UTC) X-FDA: 82738390602.30.D8C0737 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by imf03.hostedemail.com (Postfix) with ESMTP id 739B120028 for ; Fri, 1 Nov 2024 18:40:06 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NNlDJ95x; spf=pass (imf03.hostedemail.com: domain of snovitoll@gmail.com designates 209.85.167.45 as permitted sender) smtp.mailfrom=snovitoll@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730486374; 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:references:dkim-signature; bh=EWC1yOTC5QFlqMhqCf1j0kyrByhgWgxna16p0UGDJ/I=; b=NLjxmQ1wymPR6Jm058lOAXfY4kbYqtOty0b836VYKtF9WM3/6guGW7gHcBrezUu5PlilL9 m11YmUlQQrog5alfbyrSym45t9eTLaSuCj9bVNLfCfWI/gWPVb6OjkDr4ZoAQk4v0yTm/D v+8dupEQltdnwd/TiB4E3sMW9Z7wuGU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730486374; a=rsa-sha256; cv=none; b=zQuF+sQh3BoRTLGCmeKSL1cFud7NgKjCv2kZuqA2Ke5hgNXYH0ZhDOnDGmT0grwrouRHKx Zzx/F1/8n0C4EoEsMcG1+xg/0856AZ9+a2ImAGWhywdk/TnH/Nq0I+iOj97mTgbNyyN1Ho bSgvuqRE8K9GA5MSu74CGgRTL20iLQk= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=NNlDJ95x; spf=pass (imf03.hostedemail.com: domain of snovitoll@gmail.com designates 209.85.167.45 as permitted sender) smtp.mailfrom=snovitoll@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-53c78ebe580so2330242e87.1 for ; Fri, 01 Nov 2024 11:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730486417; x=1731091217; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EWC1yOTC5QFlqMhqCf1j0kyrByhgWgxna16p0UGDJ/I=; b=NNlDJ95x0zsNkbDx3KpCVLPwbtuJ46hJM2mKq5OC1Z7zwFnVZaCJBUmeFlN8NzlTX8 5TLIbh49yDgTygjWnUHFj1r1tFBqgTFANOBRul0TYQhx1sIZjfw+crweXehE3rdFSlX/ cxczX8AvorjtCqJLlvu6kGR2QgOyaBsLiMyb/bSaR3Xqu+4cfD1YvkL8pxYcHNEuPMdk 8ZuVcG6CeBnQgjktk8/7IoAW1R6gtNuDu7Kg3yB4h75Im1WFoDSVUTZT/K7PLVAdP6pD gQEZfrdDARsDrDan8IF8cPkinz+hVOa1T9plNZqKT9CZFFUv7UBjv6395g2V7qv0rMb2 ZXrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730486417; x=1731091217; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EWC1yOTC5QFlqMhqCf1j0kyrByhgWgxna16p0UGDJ/I=; b=HCLyGENlnZfv35VVjP+a3zU34Ln1rG/Ivpbvri57qeoRO7QNyERNXoBGMSl3Cuwu3e AP5ZLhpleMmzkGaXczhpMLndJSM8dvXNdegW3Ax8L637BBwC/25kS16074sZckKD4Llp PZH8mNpjXDw/sDJWxnzih/JgbP25F8NrwRAsleKxOxP4Z1dSBrTCJ6euSBmhfA1/i+8G kdPcHu2hgRTTKFGn900vFQBQgRcSb4g0QJSPoY5hPa2QyNKvczgHB2/8Bw5q6wqlKh9e wLkfljC90MY+d4tG7RdMIqrr2qohkamfG/XHq6d4H7K+rkoHR1eYNY42fFJLB7Js/HC6 mwfg== X-Forwarded-Encrypted: i=1; AJvYcCVsVGJL70gWwWY26JC7TImb4hjYrKJqVkZMOuAkiFBCh52hpd2Q6L3bicucNYU/KA5y/PAzxoa/aQ==@kvack.org X-Gm-Message-State: AOJu0Yx5EXBqa8JHZQiOZFEuwQVdF5a9S1iN1iANHgc1o7pGxSZh0AZJ U7lmUi6K/oQCLI4zpMntLS4bTRYhllpLIhDCPZiOLy/Do5tznPVn6lWL9h4OUpKiuA== X-Google-Smtp-Source: AGHT+IHLjQ8uX4kh50Kgv4JyHszznqgBG5TRqOm0LAgUvXB/FB4l6W6aA7yqdjLqOptEmMvEvounmQ== X-Received: by 2002:a05:6512:23a7:b0:52f:1b08:d2d8 with SMTP id 2adb3069b0e04-53c7bbdcaa9mr3079453e87.7.1730486416985; Fri, 01 Nov 2024 11:40:16 -0700 (PDT) Received: from work.. (2.133.25.254.dynamic.telecom.kz. [2.133.25.254]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53c7bc957cbsm646821e87.60.2024.11.01.11.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2024 11:40:16 -0700 (PDT) From: Sabyrzhan Tasbolatov To: ryabinin.a.a@gmail.com, andreyknvl@gmail.com, elver@google.com Cc: arnd@kernel.org, glider@google.com, dvyukov@google.com, vincenzo.frascino@arm.com, akpm@linux-foundation.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, snovitoll@gmail.com Subject: [PATCH 0/2] kasan: few improvements on kunit tests Date: Fri, 1 Nov 2024 23:40:09 +0500 Message-Id: <20241101184011.3369247-1-snovitoll@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Stat-Signature: dynpeab77ekghokiadp56y61uy85xzin X-Rspam-User: X-Rspamd-Queue-Id: 739B120028 X-Rspamd-Server: rspam02 X-HE-Tag: 1730486406-968738 X-HE-Meta: U2FsdGVkX19/UH2148bywAksclo4RNS32uTHScKkIj/WsZpB8Hf5bBPlYSVBh7U7qeF0R9XNi7BFDYgN4bn9UQaZsGRH0SyVvAfDn322qmj8AcbgNqVC6EuziK0s/lceSZtJyFCuSntNBzJBFH3BRmMh8NsV6EbfXx950msXp+/XGWusmROXuAYRR+a4UJUOoR1sSGGKAOgl580Y521bFrZTO9nmeAQsRNS4ljPqS05Lzb5TTPB0hArPj1/IXghOMfGrTz1lDTlF7ryPlxHsAGvw8Cps0c9vOkiqa+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pUpP5cHslT8RFIL6byjBntD+Z4l7bAj0McB42VALHr0WEtlSHdKzQ53c1HzL9NTvV1f8ssJP/w4yMHBR5Z0NBtVZ7t0bh+Lt2Ny0zymLqKl0MBdJwuoUK6wypi9X0CQYay0pFRTHa1Xg5R5GeW8g== X-Bogosity: Ham, tests=bogofilter, spamicity=0.162737, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This patch series addresses the issue [1] with KASAN symbols used in the Kunit test, but exported as EXPORT_SYMBOL_GPL. Also a small tweak of marking kasan_atomics() as KUNIT_CASE_SLOW to avoid kunit report that the test should be marked as slow. Both patches have been tested on (CONFIG_KASAN_KUNIT_TEST=y): - x86_64: CONFIG_KASAN=y - arm64: CONFIG_KASAN_HW_TAGS=y [1] https://lore.kernel.org/linux-mm/ZxigQIF59s3_h5PS@infradead.org/T/ EXPORT_SYMBOL_IF_KUNIT Sabyrzhan Tasbolatov (2): kasan: use EXPORT_SYMBOL_IF_KUNIT to export symbols for kunit tests kasan: change kasan_atomics kunit test as KUNIT_CASE_SLOW mm/kasan/hw_tags.c | 7 ++++--- mm/kasan/kasan_test_c.c | 4 +++- mm/kasan/report.c | 17 +++++++++-------- 3 files changed, 16 insertions(+), 12 deletions(-)