From patchwork Mon May 23 11:31:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 12858973 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B7A2C433F5 for ; Mon, 23 May 2022 11:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kkh0mGItY0zTdNDk0VdRNsqU+CCqNb3huyt9UVVGh4I=; b=D/xP6+dV9AG09D 8t9PQ4zC/5WSumZJnL7MR5dwJJNykk6ZKXCiNgKhm/OAnIGzxdAVTRAAICU6ZkRyQKnvp1+r8BEEo +40wfdnOnCi/Ji8wfS1LU2nEs+U7ZSWK2zacAeMyfDkql/xmnYf7rPBJHDkyseSozbUdoQpJo2Tw5 g9FQeebCLgF3FfZAXv+U6wjtCh/7uwpZkP9kZBmUEVFU/c1Vf3HJtTiTUXkKE4iwUS7700EyVkmUY UNeU1+h8NaHpcbu0EjMA2aPFVUUaJKw4uHrF8s/BZ8mdB8vqZhffNGpuwu5XD6/9W/5e/LJb317kt viEuUe8FBEGQaxh0U0eA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nt6g5-003uOy-MO; Mon, 23 May 2022 11:56:50 +0000 Received: from szxga08-in.huawei.com ([45.249.212.255]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nt67e-003eKP-8A for linux-arm-kernel@lists.infradead.org; Mon, 23 May 2022 11:21:15 +0000 Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4L6FGm4kwjz1JCBk; Mon, 23 May 2022 19:19:44 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 23 May 2022 19:21:12 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 23 May 2022 19:21:11 +0800 From: Kefeng Wang To: , , , , , , Jonathan Corbet CC: , , Kefeng Wang Subject: [PATCH v4 0/2] arm64: Fix kcsan test_barrier fail and panic Date: Mon, 23 May 2022 19:31:24 +0800 Message-ID: <20220523113126.171714-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220523_042114_475737_A2A36852 X-CRM114-Status: UNSURE ( 6.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix selftest and kcsan_test() module fail when KCSAN_STRICT and KCSAN_WEAK_MEMORY enabled on ARM64. v4: - Use 2 spaces after a sentence-ending '.', suggested by Marco - Collect Ack/Review v3: - update dma_mb()'s description and add the generic definition, also asm-generic change is moved into patch1, suggested by Marco. v2: - Add documents about dma_mb(), suggested by Mike and Will. - drop Fixes tag and update changlog, suggested by Mike. Kefeng Wang (2): asm-generic: Add memory barrier dma_mb() arm64: kcsan: Support detecting more missing memory barriers Documentation/memory-barriers.txt | 11 ++++++----- arch/arm64/include/asm/barrier.h | 12 ++++++------ include/asm-generic/barrier.h | 8 ++++++++ 3 files changed, 20 insertions(+), 11 deletions(-)