Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp908504lqt; Fri, 19 Apr 2024 14:29:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVycSE+Zr3TNl2p6h7ChtEiEhy7IqPxpNx6lpA3iCJlIfe9DerEJuCxf+w5uMnSI3RdfasqJtR0PAYA74shcPVPFL7Ar9iJ+DFHY/ZiOw== X-Google-Smtp-Source: AGHT+IHatcfPDY4HeI4jgD0Mo9wwNJrYw9kirngAE13RoMWauwyLTlUnaSdkekkE8CNAAaDfZSCp X-Received: by 2002:ae9:e643:0:b0:78d:5e61:8dfa with SMTP id x3-20020ae9e643000000b0078d5e618dfamr3854092qkl.76.1713562177329; Fri, 19 Apr 2024 14:29:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713562177; cv=pass; d=google.com; s=arc-20160816; b=u473AX8H0sKRkQ4TWS4P1RIPQQLzR9Bj1AAW3jXr9tl6yUjc/pk3sUIRukss1lk39+ 6pn/QhJtNGy71X6XxqtmfqLAtLSrL+aT+aN3BSDpg8i4vwJZhlsM21jrWXEcAbn/XwPO 58ACi6ENqcf7NlEoGn4SDXPykZVEaJgYO/QX5C6gbQR+trHe1ut4Ijc/qqsOtag42eqS abU1SwtQ01l4azoy3Uplb+bqCaS3Nn529E5qfD43QEAZnSmLq4EoyDdadPPWIaHLuKeZ uPSvlQTnJg2DFDsNUjbeNoCxRpgA0P4Praz7JHzR6qb76bQyLojJ74ZbTXUkOonhENln U19g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=IIpOYqRh88R0i8LNHu4obmBeVHXo+nptZ2aPcWVTDA4=; fh=f0uE3MUFR+qd19CPi+PBJ8XnNRZnu+glulHaBzTGHR0=; b=SY9Odp0mvjbFT30rG1SvQfYQhg62FVv2LZjw8toirqHxu2UVEgFoQA/0CcQ2WM30js IJvovSVd9HcjP74pag/U3vMfrKBWabC5c6Hfs4iaetnEzXOcSRZXzpIyHTpA8sl3a3OO QxoVROxk48seSfEaUx7cgbsqwNO2BxrUdXiAPDAihaG8vn1ZVmHNVxUkZbNWgwS6KzDC zp1PTCHLvDeX0NAFjOjOVU/ivLaXPn8jhJEjv31IGCcXbCRThGEDgrsicylsIOgUFV1z 8+0GqgcZPd8uqCRe4XmNOthAmXI9yUPgw/IWq4fweXeyJavpP14bIOYkDYXFXXpdB71A fGHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Il34BblI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-151972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z15-20020a05620a08cf00b0078e97171094si4705155qkz.679.2024.04.19.14.29.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 14:29:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Il34BblI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-151972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 13ACE1C209F4 for ; Fri, 19 Apr 2024 21:29:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68F772AF01; Fri, 19 Apr 2024 21:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Il34BblI" Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 193CD10961 for ; Fri, 19 Apr 2024 21:29:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713562169; cv=none; b=mKRjD7L4+1ravTP7LAGwsErUyig6XkuU1M1fNGZVZR4rLED/67AOyqj4bFZ6P3K4G09i5QICNlXOI90AXwWP0sDHB7+LSzXj+QASc65JIORj6f8ytYhwS9Io/ZIN0HLN/AghfiUImht1DhN4JqAnv0/wjQNk7RwSn6+EuOTz8ek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713562169; c=relaxed/simple; bh=2GysBCBET65HJHpPRbD59HZPSuc6WYob58y8/gPNikI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=p33EASULL+D5vyFLQhk3zQPSaXlM2EoytNSICBYrOLDXsu/gMUdK5qObRZLvjV7yGY8OjIPppzUkUu8PH67vfQ2U98VyEAAzwxrPnYLJGWT1Qrf3bAFUyzq/W1wyxnmvCkhzAskyEUhpbIM8ljrn5H4I2AzMnKgQ/4B86RWqgC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Il34BblI; arc=none smtp.client-ip=209.85.219.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-de46da8ced2so2339200276.0 for ; Fri, 19 Apr 2024 14:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713562167; x=1714166967; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IIpOYqRh88R0i8LNHu4obmBeVHXo+nptZ2aPcWVTDA4=; b=Il34BblIAlN9mkQWFsF4xuAFQ9o70L3F/AfqIdT6G4+COQ4nWSvD4MPPMilKZumz66 AMNgTDK13/+gv2Tx3DjyqQkRNchFCfEMyf/gtFLBg2BpmyyaOOl5z+ZqPgbvIJ4ur2x8 614F6AI9GAKdn4MX1bEzHbOZOEuV+aaJSvhvz3be4rxUA94jXe+cIr+sOIKJDoBjmUxJ pMY2h2YWaadbZNYdUgsXZF3yy3PqH9A2fQzJ20D679rSFtGIAiDE4CtZWkIJrs/6tpru ovDhJh9iRtZNQ8bbH9JoZBQWSZB2/H7h+73FDa3ChxYRt2DR4K3mMfXdMroo50hfyIUQ a66A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713562167; x=1714166967; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IIpOYqRh88R0i8LNHu4obmBeVHXo+nptZ2aPcWVTDA4=; b=wkPRFRXVZLyzoUdI55Xhs+zRLZD/1M+KbEeoroLH02YMOSjN7jrKcemmkljiSgPGqG 0pwaUFpDjRmKxJC23USWsmkIKNpnh2OXQF2c/KCAxYe0Jh6OBo3zZ/pY1WRoXSh8O0om Ae/2KYLa32GbEViPtkIQGH8OBfLPZHB4+wa/gFvk5JQGIN2KLQmV2RDhAjcuQUsBNg5g uj2N3tipWRS5SIvbhn1zkzIR/axQtA4H+gTksJq3izfeJNQc5UE7UdOlU/gpr+ADHwZL xVyMQxZUgp8E7HOkmbjvxNvNvxRGYt/d4X9CBf6nD28xctzgqrj2gYRrQmEQC+PXn+SE Cg2Q== X-Forwarded-Encrypted: i=1; AJvYcCXumU/aWbIKMUP7BW0QGE2J4u75ody/FWmpMvztQgD33WCxds8DLu3OI0ft9+k/qvio/ulI+wtIZCamgO0RvDOgBRFUxVR85w09Hhty X-Gm-Message-State: AOJu0Yxb1C7mNRL49vrPDeZRMpEhok9tz+2N2YJVtupZkCFdYSWj6IWM 5bA/aSqV2NDypfbnqMWVoKRGXql7bQIja1U8H/GKGyfcm1ALaUUEw8twu/pbPo40Wso8tlsitbB +uM/W1wuMszp5yQViOhlPQmMmfwPbpnM2VPADIXYYfBN33O1t62M= X-Received: by 2002:a25:83ca:0:b0:ddd:6964:40c with SMTP id v10-20020a2583ca000000b00ddd6964040cmr3061330ybm.50.1713562167179; Fri, 19 Apr 2024 14:29:27 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <02a101da9227$bda04cb0$38e0e610$@trustnetic.com> In-Reply-To: <02a101da9227$bda04cb0$38e0e610$@trustnetic.com> From: Bartosz Golaszewski Date: Fri, 19 Apr 2024 23:29:16 +0200 Message-ID: Subject: Re: [PATCH v3 00/24] gpio: rework locking and object life-time control To: Jiawen Wu Cc: brgl@bgdev.pl, andriy.shevchenko@linux.intel.com, elder@linaro.org, geert+renesas@glider.be, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, paulmck@kernel.org, warthog618@gmail.com, wsa@the-dreams.de Content-Type: text/plain; charset="UTF-8" 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