Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp450207lqt; Fri, 19 Apr 2024 00:04:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTa8uLVAFq7PF9LTR6IvnEV3kog77WLFunbzhrcRyPZqPYkYAM0ZruNJ29+OdelwHyeUCCv3TllI2MmlYINbrqBxKL17JFPtIBYcT1uA== X-Google-Smtp-Source: AGHT+IEZttIybJ5wvLiriN1KoBeLkIoxjwy9gUTOM1NDI3eocaO9S3WisbUzlqKcGEhZsZaB+XwO X-Received: by 2002:a05:6a00:9389:b0:6ea:c43c:a650 with SMTP id ka9-20020a056a00938900b006eac43ca650mr1605256pfb.32.1713510269212; Fri, 19 Apr 2024 00:04:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713510269; cv=pass; d=google.com; s=arc-20160816; b=ZtGGrGe+1frYze2NDuOne0SR6KmJUVg/Ci8AgMUhL5aXcM9pHqpchbwojk96DRyjgJ tiYzbbu8Eyv0z2Ue0NyF2y2xlso+17aGGn9axscxZVDOZ9UKTkSP9hd8z7h4hoZ2eg7/ spCKdC6agLa7IgflNi0xCXCcgXL2fPAVXwH1hTEV7v9GQYULK5KxTclWJkqv9QdtxNMN 20VzGturtwp59BMVjNK6nfTO2IXFFZ/91Ira1iUa8n4Qko5otzH9hLkR0/rq/dwV9ALp lFIb4vS+nzqXa7JDPmvbeUGJJL0LKMtH3XlY4zTp52d34VAK7DbZBNw3WCCHhxZXxdLS XVYg== 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:cc:to:from; bh=z4aH1NuFcuVDgmgOW2SPC6ca4nHiYdRJYh7zlwg5u2c=; fh=++7XIzEtl29+Uc3PzHy4bNe8+54hzyx4M9/L+cnQLCg=; b=DrSLZCWEt2o4W38r/VSnVS2qURP0iBETiEvc57u+2Wymgf1VK/0SPY0cuSNfNdtK9Z 0N54Yv1v0q1TiZj9LXzcMyHwsSOWdQSNr9gO+6p/PIUK7dcTZl0IfQdpv3nM1w3UzD5g yZ0cEjwF67OqHFz6tj7piHlmYXETHEG+vDX2od2v69KGb8luz1g/dP7DmE9eMUxOG8GM tDT341EiuxT7xqdFHwiJ+CwjIA8cs8+hqhy+q8rSCuiVZMZrhA80tY1QN2hhsQTjSWf3 guN0A5CRSIIVBHd6aR/WFP67w8MIlQtGS/oFC8RbnNKPzjxLQ0PhDlk7bbiPiPV+9fxZ FhsA==; 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-151082-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151082-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t21-20020a635355000000b005f756bc5362si2737418pgl.401.2024.04.19.00.04.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 00:04:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151082-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=trustnetic.com); spf=pass (google.com: domain of linux-kernel+bounces-151082-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151082-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 D6FAF282182 for ; Fri, 19 Apr 2024 07:04:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 619C13D55B; Fri, 19 Apr 2024 07:04:22 +0000 (UTC) Received: from bg1.exmail.qq.com (bg1.exmail.qq.com [114.132.67.179]) (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 21DF915C3 for ; Fri, 19 Apr 2024 07:04:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.132.67.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713510261; cv=none; b=jo0VezSCww4RLhiWNqaeQu6XQc17IjyawAKsbdQvW8iXfM2a+0ZZ56XxINkR/Up9zzX+HE1q5UlnrCCqzGNMEbPuH0WiZ/J9QhsVdeRRYyx/Qqu+YMCQfbp9GKRu53VaXChPPqpFrByuYAOpjPGouuDgHda9AxKnmlVyOzDV2kc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713510261; c=relaxed/simple; bh=8PYrVwihWEKnfBPv+dZo8Ce/XrKfV/qp4CBfZjoK42I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=XKz/7+nZaUmUehPl6alTxkEUrLKydR4zM6+n04GcusecY/uf5cRouK4SVsw1/7kTn0YgZQaOlGVhfZpePrzHsUxa6MROkDelfSs78EYHrYHGJDEOE6O4+3ocwVDAtSB6yBR/1eG4jR7bD2F6/6gZEvh2gCW0qxi+58ylaqTuH3I= 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=114.132.67.179 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:Yeas3t1713510235t323t22484 Received: from 3DB253DBDE8942B29385B9DFB0B7E889 (jiawenwu@trustnetic.com [125.119.247.132]) X-QQ-SSF:00400000000000F0FUF000000000000 From: =?utf-8?b?Smlhd2VuIFd1?= X-BIZMAIL-ID: 15162911397788106260 To: Cc: , , , , , , , , , Subject: Re: [PATCH v3 00/24] gpio: rework locking and object life-time control Date: Fri, 19 Apr 2024 15:03:54 +0800 Message-ID: <02a101da9227$bda04cb0$38e0e610$@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="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdqSJCuofj3/aB1TTmeRQb3sZM13Tw== Content-Language: zh-cn X-QQ-SENDSIZE: 520 Feedback-ID: Yeas:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz8a-1 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? Thanks, Jiawen