Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp325061lqt; Thu, 6 Jun 2024 05:03:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtRAweD0tCatJKneVv46JV12E/tEFmrZPgmIbMQI1fLY0s8Lvan0ZIq/iRVjJtPDh5CwoKhKGXsEE3FS7Uzn0Hn1PwDvsaGbJpZ8dI8g== X-Google-Smtp-Source: AGHT+IG7/btxGe88Z3vynebxzTpLvZHPI2T7+i3C0jAIyXUcDLQxdqgN5IYs1Ya5ji8zmm2fY5j5 X-Received: by 2002:a17:902:da8d:b0:1f3:4d2:7025 with SMTP id d9443c01a7336-1f6a5a6ab9cmr66258475ad.49.1717675413520; Thu, 06 Jun 2024 05:03:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717675413; cv=pass; d=google.com; s=arc-20160816; b=TomGBOpGSwb+DpSiBNeMpRvMuA1kbGVN8FChDf9WsCo/BWjBwuEEU3f1UA/bxSQFG6 zaQTQP7lId11i0qDvFrGHV4Rw0/k1dH6eHlOCP/P9kQDqfqKfh9Ytxw084Wjp+BaGqof SOJ6qvY4kvB1PeYFn8c8aUhRqxzaqvMYNnJfBtpwyQj5oVLwsqhB2z7qSqyunACUMEep o4wlDPBSKT8Mwv/JRt7yE7mNvrEm8hPsIkTgVT1oTxmhj7Cm2Dr9oAEkykUW2+q0jrWz bhOoniRTlUrSevjtYNE3Nw27LE1cdb6U7LftmARUep4laDNZmvVwbKS1lY/WZN2LORHK 8XZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=o1PVj6wl0RhMQ9aVu/kpZquF9TBmMzt7pDp7sPNrIU4=; fh=RnYdMI0gYXMiEYFwtIYFJCKylX8Zg1c0NFpjomklfnU=; b=VnAH+niI4Jj6EE+bWL35BqQ48oJDF8Pz4sv6yFbDD8VU1OTWquRr6cJHjR+9+JsG63 CNJjm/AAsOtxVC6tIL9AoLDuhBPW1+nZe5W05zMn2nGrJM7SraQWjcWJ/RiCR3w3rB1P HDb/MKsOQqKmawGSP0oGXnLbkjg+5SpEijXNxatUYEmjmPXBHAfMreXM4q/sm9NKaGqd sNbiiuSARJDZ6DgQwurBm/rGJgT100SF0kT7olCRvaooKOI/eCPxn9ldP89sec5xKSyU 8C7TgRKxPjs42bU5kelFrqbW8WEpl7iJGw7EsNvzKTGmD5iO1jcF36xlxLRXaAMmCOlv 8Meg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NG8m01Ef; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-204222-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204222-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd8336c6si3556715ad.647.2024.06.06.05.03.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:03:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204222-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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NG8m01Ef; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-204222-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204222-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 E741D2873EA for ; Thu, 6 Jun 2024 12:02:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E735195978; Thu, 6 Jun 2024 12:02:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NG8m01Ef" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 D2967194AE0 for ; Thu, 6 Jun 2024 12:02:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717675324; cv=none; b=QBNduZHJFn34Y+Hzw9eRe8XSiEgBgL/qkyft5lZVZWHrPKvY8tGbSv/fnDQEhoohIcRTgcLYAAThYj7ehUbxjl/tA8M4XRWHfo2RW09jO41ygUm2f9hM8bNmYxWvfhX0/59hOk8nu5qtaYeVS1JF6/SjRAouBtAOCzhJza3YfpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717675324; c=relaxed/simple; bh=XzA9XcS9J8/JaJGhY85xTyvzVAiJwfKIIBi3J6rxAwM=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=oSOX1XuGSIDs+z1jUIvzlXymCjxqMt1u9btTv8HR6s9v1nonMFhAEA/VYuBLA44miQAqQ+ey0BltIaECiRMLOJR5Dal/sAbtZIZyJ1lpYD4efeqjiYWAj5rHn0wvkKh8WggY/3c2Y747uKfaycfx4vCNIgv7KKjoZB6JqNahKhI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=NG8m01Ef; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717675321; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o1PVj6wl0RhMQ9aVu/kpZquF9TBmMzt7pDp7sPNrIU4=; b=NG8m01EfkrXJkJGwgDbOjTdlf4hxxSxa9y8ubtHu/+BShqnf0n4BsSXvfUNrkzGI1uC1kg iKqVUe3AmZpbH3D0TdclIGcpE71t1GWWeswoNLw9GYUOG9oo4lzbTGtlw5wVKX+W+FqQml jZ1tetsFdVDT4OjaKZLc9S3bskTfDpE= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-615-f3vg4GAvOyWFdGgouxqVIw-1; Thu, 06 Jun 2024 08:01:59 -0400 X-MC-Unique: f3vg4GAvOyWFdGgouxqVIw-1 Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2eaa74bfc18so6433831fa.2 for ; Thu, 06 Jun 2024 05:01:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717675317; x=1718280117; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o1PVj6wl0RhMQ9aVu/kpZquF9TBmMzt7pDp7sPNrIU4=; b=kE2dds+c5nwPiTNa7j6MAzm5mI/cq/UNcsICjkGvGojdCKjY3+5CB9k1n8nfV8jWgF LNCT83lG8KFKiXOqxYMNTsMCSUMX/cWxt0aHEN/VTilga92rf1CpW5ocTw3sqUj18bkr xc4/X3Fv6o6f7Qd4feUIstWOfDiEwN9hq3zlp8TAwZX1kI8K6X/QSBTDAw0DcEQIjgz0 L4jehk0sfHAjvTHEQRaZqzeqkJDE6ZrUboklcAE7BvS1yEh58P3+556uXwMDUqZe1tmI HBXarwVlZQIOaYcYfgztrPCxzHS5SYNoiN6KAt1iZQa86PJ6JUaK0sgLn9Ru51JegQLc m5CA== X-Forwarded-Encrypted: i=1; AJvYcCVphjjO0DsqzCRBV+M20UVEMas5q+WuTs9xhqJII6cE52NgRzU2QYDpXwPMSU9G9up7YmdXPz/6BSj+dG/uIPWxyaupcmCsM6UQL2bH X-Gm-Message-State: AOJu0YxBpf0cBr2FqiHJWrlES5BgOzAtgw1ri0dzzSgExgm22ESm9Hk7 07u/zVsXjwTc9Vb9aY51+Xo3wTXX5n7mzy9S1q0TDKJTTaKkcpktTi43zCm1JcQbcl8qjfQtfOv tX7pXrhST2wXMZhuvrRK7MGlqKPGWd0iMY7eiE6TuJSRxkVVxkbmmdLgB+wswVyTu930TSw== X-Received: by 2002:a2e:6804:0:b0:2d6:dba1:6d37 with SMTP id 38308e7fff4ca-2eac79c3350mr33445091fa.11.1717675317621; Thu, 06 Jun 2024 05:01:57 -0700 (PDT) X-Received: by 2002:a2e:6804:0:b0:2d6:dba1:6d37 with SMTP id 38308e7fff4ca-2eac79c3350mr33444781fa.11.1717675317163; Thu, 06 Jun 2024 05:01:57 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57aadf9d296sm980451a12.7.2024.06.06.05.01.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jun 2024 05:01:56 -0700 (PDT) Message-ID: <9d821cea-507f-4674-809c-a4640119c435@redhat.com> Date: Thu, 6 Jun 2024 14:01:55 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Hans de Goede Subject: Re: Hung tasks due to a AB-BA deadlock between the leds_list_lock rwsem and the rtnl mutex To: Andrew Lunn Cc: Linux regressions mailing list , Pavel Machek , Lee Jones , Linux LEDs , Heiner Kallweit , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, johanneswueller@gmail.com, "Russell King (Oracle)" , Genes Lists References: <9d189ec329cfe68ed68699f314e191a10d4b5eda.camel@sapience.com> <15a0bbd24cd01bd0b60b7047958a2e3ab556ea6f.camel@sapience.com> <42d498fc-c95b-4441-b81a-aee4237d1c0d@leemhuis.info> <618601d8-f82a-402f-bf7f-831671d3d83f@redhat.com> <01fc2e30-eafe-495c-a62d-402903fd3e2a@lunn.ch> Content-Language: en-US, nl In-Reply-To: <01fc2e30-eafe-495c-a62d-402903fd3e2a@lunn.ch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi all, On 5/31/24 2:54 PM, Andrew Lunn wrote: >> I actually have been looking at a ledtrig-netdev lockdep warning yesterday >> which I believe is the same thing. I'll include the lockdep trace below. >> >> According to lockdep there indeed is a ABBA (ish) cyclic deadlock with >> the rtnl mutex vs led-triggers related locks. I believe that this problem >> may be a pre-existing problem but this now actually gets hit in kernels >= >> 6.9 because of commit 66601a29bb23 ("leds: class: If no default trigger is >> given, make hw_control trigger the default trigger"). Before that commit >> the "netdev" trigger would not be bound / set as phy LEDs trigger by default. >> >> +Cc Heiner Kallweit who authored that commit. >> >> The netdev trigger typically is not needed because the PHY LEDs are typically >> under hw-control and the netdev trigger even tries to leave things that way >> so setting it as the active trigger for the LED class device is basically >> a no-op. I guess the goal of that commit is correctly have the triggers >> file content reflect that the LED is controlled by a netdev and to allow >> changing the hw-control mode without the user first needing to set netdev >> as trigger before being able to change the mode. > > It was not the intention that this triggers is loaded for all > systems. > Reverting this patch does seem like a good way forward, but i would > also like to give Heiner a little bit of time to see if he has a quick > real fix. So it has been almost a week and no reply from Heiner. Since this is causing real issues for users out there I think a revert of 66601a29bb23 should be submitted to Linus and then backported to the stable kernels. to fix the immediate issue at hand. Once the underlying locking issue which is the real root cause here is fixed then we can reconsider re-applying 66601a29bb23. Regards, Hans