Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5738312rdb; Sun, 17 Sep 2023 09:56:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYb1bJ7m54i+B9NC9uW2FwP6vgdr9pqaS3RxkwiojU7TcUjwXx/vQamEwyQJNDDrislwtp X-Received: by 2002:a9d:69d0:0:b0:6bd:af4:274d with SMTP id v16-20020a9d69d0000000b006bd0af4274dmr7602188oto.8.1694969777240; Sun, 17 Sep 2023 09:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694969777; cv=none; d=google.com; s=arc-20160816; b=BIQ64tBuUBUhbVZm2QjciGghyX24TcIuAfoP06iREe5Zlnql+NjE5todMoHrVS5DBe 3b/nHTYb7Lv0zMqo5aijiO4LUU/3fiVmpsXapFcYKahn0x1+3cvo0lRq2PxdFfws2UDy DzlO5KB0izwzLA9DjPIgKkPL7z3YoDTbTiHq2dw8JpEq4R+sJJzPdcjKJIeaowZSlhy/ djODnda81O2W1rlXoL1wEZAeaiIRmywl5Chbe8t+gfH2atBhvCQiFHG00a9cKF0aEeoE K8IXP8n993fxDY7Kbj5suaL7TkJiZssO52FtZny0N0MZoBaXOrKCxR8PBF3Cqg4ZbOYh EyxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wLxL2+Kq/XNTS+h8BUCpeidY77wkZqep7D52h9DDxjM=; fh=BmAa1Edsc1TRHB2HtH7PrAOSxQ5oWH4AyCz4Xoqha0E=; b=lMHlPiIaxLXmrt0a5HZuWyf/wB4GlUKXa0HN4o9snh8AmgOgdqIAoziXGejCZH+rRH /a0DoEwEYx27Ja7zIY4oFIzedvEPg2zS2ZJObUzBk9HaPV7SPY6fEu5UJVeivFMclDrK PyT8rJN+0CFa/0Yn2IpL9lIwounsyfklgjyUPfSbfW3vTJHeHtvsioEITgntPFudYqG1 wx/QmIzBH2GkFpCtrjii9hf2LnnNK6WKdhSDEFQwaAmKDoFYPlrwgrATJ85e9XJB0Cv1 7kSHkKODjWU7imJM7w5j/WXsG8822e3S1VpQo/KuRsOaWwwyXvKn2nBh0YUJFMg3LbPu wcOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=mnrJS9EL; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c8-20020a633508000000b00573f9a427d2si6542880pga.53.2023.09.17.09.56.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 09:56:17 -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=@infradead.org header.s=casper.20170209 header.b=mnrJS9EL; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4B83481D0C42; Sun, 17 Sep 2023 02:12:08 -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 S235120AbjIQJL0 (ORCPT + 99 others); Sun, 17 Sep 2023 05:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235359AbjIQJLL (ORCPT ); Sun, 17 Sep 2023 05:11:11 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25BAF186; Sun, 17 Sep 2023 02:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=wLxL2+Kq/XNTS+h8BUCpeidY77wkZqep7D52h9DDxjM=; b=mnrJS9EL4Y3WIeSkKo4PKDG7AK 2Ljnr5FemE/8WZ5M40M/M6JkJTdlJFBx4xeyMlEnkwpONLF8xbq58htSQx/kPCA0B8VnEj+DWBPqx sxh3P6dC7V+n3YZCN8e55sTSr3Nlw2kifthm5YgyOr8mdB6g5IWBCpxLgq0vbFnCZGoJiB6DGrF12 s95H3XcLbK1Ftf0hW2j1ZGxVzxRtvYeJjPr3tQB9/0KjrvO0Rzn+3OYVFUioZoT18JggyPIHyBaQT hQThqdf4S3d+XdkeoN854mG4UVsJtgR5TC+G2tdMhI/j4Z12KaA/uONFLoPNU1cj4+SL8i1eH3N9B /2DH85Yw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qhnnU-003pBn-BR; Sun, 17 Sep 2023 09:10:32 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 084ED300388; Sun, 17 Sep 2023 11:10:32 +0200 (CEST) Date: Sun, 17 Sep 2023 11:10:31 +0200 From: Peter Zijlstra To: Baokun Li Cc: Yi Zhang , Ming Lei , mark.rutland@arm.com, Christian Brauner , linux-fsdevel@vger.kernel.org, Alexander Viro , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Changhui Zhong , yangerkun , "zhangyi (F)" , Kees Cook , chengzhihao Subject: Re: [czhong@redhat.com: [bug report] WARNING: CPU: 121 PID: 93233 at fs/dcache.c:365 __dentry_kill+0x214/0x278] Message-ID: <20230917091031.GA1543@noisy.programming.kicks-ass.net> References: <20230823-kuppe-lassen-bc81a20dd831@brauner> <89d049ed-6bbf-bba7-80d4-06c060e65e5b@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <89d049ed-6bbf-bba7-80d4-06c060e65e5b@huawei.com> 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_NONE,URIBL_BLOCKED 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]); Sun, 17 Sep 2023 02:12:08 -0700 (PDT) On Sat, Sep 16, 2023 at 02:55:47PM +0800, Baokun Li wrote: > On 2023/9/13 16:59, Yi Zhang wrote: > > The issue still can be reproduced on the latest linux tree[2]. > > To reproduce I need to run about 1000 times blktests block/001, and > > bisect shows it was introduced with commit[1], as it was not 100% > > reproduced, not sure if it's the culprit? > > > > > > [1] 9257959a6e5b locking/atomic: scripts: restructure fallback ifdeffery > Hello, everyone! > > We have confirmed that the merge-in of this patch caused hlist_bl_lock > (aka, bit_spin_lock) to fail, which in turn triggered the issue above. > [root@localhost ~]# insmod mymod.ko > [   37.994787][  T621] >>> a = 725, b = 724 > [   37.995313][  T621] ------------[ cut here ]------------ > [   37.995951][  T621] kernel BUG at fs/mymod/mymod.c:42! > [r[  oo 3t7@.l996o4c61al]h[o s T6t21] ~ ]#Int ernal error: Oops - BUG: > 00000000f2000800 [#1] SMP > [   37.997420][  T621] Modules linked in: mymod(E) > [   37.997891][  T621] CPU: 9 PID: 621 Comm: bl_lock_thread2 Tainted: > G            E      6.4.0-rc2-00034-g9257959a6e5b-dirty #117 > [   37.999038][  T621] Hardware name: linux,dummy-virt (DT) > [   37.999571][  T621] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS > BTYPE=--) > [   38.000344][  T621] pc : increase_ab+0xcc/0xe70 [mymod] > [   38.000882][  T621] lr : increase_ab+0xcc/0xe70 [mymod] > [   38.001416][  T621] sp : ffff800008b4be40 > [   38.001822][  T621] x29: ffff800008b4be40 x28: 0000000000000000 x27: > 0000000000000000 > [   38.002605][  T621] x26: 0000000000000000 x25: 0000000000000000 x24: > 0000000000000000 > [   38.003385][  T621] x23: ffffd9930c698190 x22: ffff800008a0ba38 x21: > 0000000000000001 > [   38.004174][  T621] x20: ffffffffffffefff x19: ffffd9930c69a580 x18: > 0000000000000000 > [   38.004955][  T621] x17: 0000000000000000 x16: ffffd9933011bd38 x15: > ffffffffffffffff > [   38.005754][  T621] x14: 0000000000000000 x13: 205d313236542020 x12: > ffffd99332175b80 > [   38.006538][  T621] x11: 0000000000000003 x10: 0000000000000001 x9 : > ffffd9933022a9d8 > [   38.007325][  T621] x8 : 00000000000bffe8 x7 : c0000000ffff7fff x6 : > ffffd993320b5b40 > [   38.008124][  T621] x5 : ffff0001f7d1c708 x4 : 0000000000000000 x3 : > 0000000000000000 > [   38.008912][  T621] x2 : 0000000000000000 x1 : 0000000000000000 x0 : > 0000000000000015 > [   38.009709][  T621] Call trace: > [   38.010035][  T621]  increase_ab+0xcc/0xe70 [mymod] > [   38.010539][  T621]  kthread+0xdc/0xf0 > [   38.010927][  T621]  ret_from_fork+0x10/0x20 > [   38.011370][  T621] Code: 17ffffe0 90000020 91044000 9400000d (d4210000) > [   38.012067][  T621] ---[ end trace 0000000000000000 ]--- Is this arm64 or something? You seem to have forgotten to mention what platform you're using.