Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2114814lqt; Mon, 22 Apr 2024 01:38:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVx8MvZMwwn4gBQ5a3TNVsO+iJePdJgNVC6JxeWr+0/RXItOnmfGXfOaHpxFQ1dMwDqoNt6C2mEmy0Cmlg4qnPe3DtiDAS7IwBb0i9cUA== X-Google-Smtp-Source: AGHT+IF2j+LCAyOisek0+kbfeUXGZwfseCcBwKeTn0YpEi/SvcleADcQV+RCLwgIyyNzhYyRatCZ X-Received: by 2002:a05:6a20:d492:b0:1a7:c67:82ff with SMTP id im18-20020a056a20d49200b001a70c6782ffmr14403024pzb.13.1713775122557; Mon, 22 Apr 2024 01:38:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713775122; cv=pass; d=google.com; s=arc-20160816; b=e7lDGRY8AnzQiOs7GNkprLC83b/pe6OuPnsuMVEh26qV1n2qn6nZNml13cL2veIYyf o526h7rcibCykZAcS6Hs9Mygh30XESTcz2+KmRh4w1wf4nxmkU0V+O/h+lQi2EoUbh66 1tcr7U79zcdiBcjuYhASd3sYFh1Q0qlpLJMkJI2ib/OGk0J8BOmi0ITL1ZcVMXUceYE4 IkVckjNEbhGPKMfTdx9dzzQ4iJSdWS/518BDIf9C1cmjplgLqJjOafQH7l/62niihuMx D076zDgyK698RoMBT2+KsR/yzT20bUSn2Tqxbou227T8MkXK/iTl6yeCzXIuUtW8j7NG LZKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-language:thread-index:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:in-reply-to:references:cc:to:from; bh=4OL9EAWj/JWccqFapERvCyky5ucO0OM70FEZlfzBbLE=; fh=x7pR6DTphLfZ2ClANTB5/4jW423qLPjrMLt8NsA0DPE=; b=S5lc2RTbP65hzj6Nroyptp2lz4SHGzugKLyJh47NpykCoA/hOCOfMt34OIRnU9EKm3 LOnjgENpu4kBeJKM7kt1HbVgeprpUFiESaAgBEJP0Exl8tbho3OP+5o92dAwxhfan4kY LCbsTfrmgdgOEtCawQZYokmK51gs/h0kr+veQJgHsuONkdSTLGNCp8awYYRqMlhacH5c lImyVIS/CboBO63L2/4Zbyl+R8iaJ0P6+6on9tmvMjDYhN6cg7Mms4MVYajaleGjB4/b WTFj/+/dSJXbFv65YFEOPD5KZbrsUSdaIAzJODWrD1d/1uJmh/qA7UYpzkGxMRxQMEs2 zT1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=trustnetic.com); spf=pass (google.com: domain of linux-kernel+bounces-152994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152994-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k62-20020a633d41000000b005f05664c05fsi7620726pga.495.2024.04.22.01.38.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 01:38:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=trustnetic.com); spf=pass (google.com: domain of linux-kernel+bounces-152994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152994-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1202528382D for ; Mon, 22 Apr 2024 08:38:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 508AF502AC; Mon, 22 Apr 2024 08:38:37 +0000 (UTC) Received: from smtpbgsg1.qq.com (smtpbgsg1.qq.com [54.254.200.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E8491CAA1 for ; Mon, 22 Apr 2024 08:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.254.200.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713775116; cv=none; b=HMakrmkzUkD4gJg6o5glE84VSeAJU/300bSqrLAvHCayWjTrDwPPRy3bpKFSfRK4Jbip3PkTMRa6IyBfdiLTgbfvdVxc6rps66VhpTyBtg+odgGVkdmCu4CP6QHkz0Qn8O2p6zJBpB0TE+E9OrDVBOD57MUSNED+6q/KpfVEJKs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713775116; c=relaxed/simple; bh=Y5LaT6VMQwV75sFLhiDLZlNUiEGLXlU7BLi/iw4fmdQ=; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=eK9FsMJe8XM4BGAQYcVPmubi+3dJGOjHxgfOhEVzVIqOQZohC5IvPoOE2XZHQSbqSfThfbZrf/99GhewwJCSV7GfVrkXJi6CUsncjglDlK9HXTqFtAB1hMvmzTittUntdGTI4JExu8OX9r3BH9ce5qg7LgrNVPpNMNfppWq6r1w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=trustnetic.com; spf=pass smtp.mailfrom=trustnetic.com; arc=none smtp.client-ip=54.254.200.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=trustnetic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trustnetic.com X-QQ-mid:Yeas1t1713775098t358t44927 Received: from 3DB253DBDE8942B29385B9DFB0B7E889 (jiawenwu@trustnetic.com [125.119.247.132]) X-QQ-SSF:00400000000000F0FUF000000000000 From: =?utf-8?b?Smlhd2VuIFd1?= X-BIZMAIL-ID: 11855313605505495495 To: "'Bartosz Golaszewski'" , Cc: , , , , , , , , References: <02a101da9227$bda04cb0$38e0e610$@trustnetic.com> In-Reply-To: Subject: RE: [PATCH v3 00/24] gpio: rework locking and object life-time control Date: Mon, 22 Apr 2024 16:38:17 +0800 Message-ID: <033a01da9490$6c517490$44f45db0$@trustnetic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKkRktGdWWxOHu8pOWwvozmol9uowIV96vBr8/aZvA= Content-Language: zh-cn X-QQ-SENDSIZE: 520 Feedback-ID: Yeas:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz8a-1 On Sat, April 20, 2024 5:29 AM, Bartosz Golaszewski wrote: > On Fri, 19 Apr 2024 at 09:04, Jiawen Wu wrote: > > > > Hi Bartosz Golaszewski, > > > > I ran into a kernel crash problem when I pull the latest net-next.git, and > > finally it was found that is caused by this patch series merged. > > > > The kernel crashed because I got gpio=0 when I called irq_find_mapping() > > and then struct irq_data *d=null, as my driver describes: > > > > int gpio = irq_find_mapping(gc->irq.domain, hwirq); > > struct irq_data *d = irq_get_irq_data(gpio); > > > > txgbe_gpio_irq_ack(d); > > > > The deeper positioning is this line in __irq_resolve_mapping(). > > > > data = rcu_dereference(domain->revmap[hwirq]); > > > > So, is it the addition of SRCU infrastructure that causes this issue? > > > > This is irq-specific RCU that I did not add in the GPIO series. Please > provide us with more information. Bisect to the exact commit causing > the issue and post the kernel log (we don't know what kind of crash > you trigger and what the stack trace is). > > Bart > Hi Bartosz & Andy, Thanks for your replies. I'm sorry for the misunderstanding, and glad this patch doesn't cause any problems. I thought the issue was in this patch because of my mistake. It's actually caused by other patches. :)