Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2519531rdb; Mon, 12 Feb 2024 07:29:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUVPk1hQWztVTtTth9UO9m5vCfyzLCshTTH6lvYWFsPPntRugFbKFMbg8jOkB+SiUsIFuoQSLwIgtfHjmLFwpr9MBDUOJ36YXifdTFbNw== X-Google-Smtp-Source: AGHT+IFqZc+MskXee5FsQj/WkGn3pJ1SZGP3mMALIM2kUSvPBLuR13bai43i5jIAtoyt3N6j1Uz4 X-Received: by 2002:a9d:7ccf:0:b0:6e2:e7ed:b05a with SMTP id r15-20020a9d7ccf000000b006e2e7edb05amr2757225otn.11.1707751746844; Mon, 12 Feb 2024 07:29:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707751746; cv=pass; d=google.com; s=arc-20160816; b=oGWbuD2jyERUPnPJ2jTaXjGoCX9NPPZ3EEUVTZlQ77WqeV2+zfEau9Lt/NSvAp++wQ WM47nhAmsinMJ/GDH6H0wQWP2O1q7vcCBppSSEfw6dli47f7XoSMatOFelxNFZ6ibOH7 boSWVy2pK7WIcubau2pnFS/99URrFhscd9pdxbTglI81GiBsYX2Y2EsWaJCg9cwaQJQJ iwg5jXny0FdY+Ma9RNDU+qVIG0nd8S+9Pi4TG/HyIovFsSmVKWNbbzK8A0DPWmkKfIby a8kffFqVUZCwv2U+2V7l2/e/6nAFZLQs6b5JdVkljfMbXUfb1vuwj0AvGLKL4eNvjorP yk/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Yp2gHXiDws3cMrnEindm4YIkgz/4Y08oWqflvFe0VW0=; fh=h1IioWv/xmQK0l4FAYZafB9DBTpQfS2sYl7J3TDzbDc=; b=tH+ZFpRQyUAIqdmUNBmVvBN4UptG4RlLQuRMlH6xFLiTEDTF/0TqjZYjLDL1DwsNnX R7f2eSE0usEVnYUm2K6odfCo6MBMYLyGlu992x1x+fI9XrYuIApp6+IRuto700eTsea1 +AsWKLVA/Bqk+GuTQ3h3HmBGbjru7rVRmSNXJ2sOlby2bXWWzU+WUdBmrvWj8NmX/sQD OwPmp7WUAlpBMa2ORM93agDGEZ3oseEAdXD5Zl+Lh9Md+jWpQN7I5v7+KJ9yImySe6/5 gHHCyWCIk7LpwEKEBwULvaDIC5Ujutt7B1VLmVTdMY9T7fu+3hvlgBCtwwt5oMhqL3mI xVrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=altlinux.org); spf=pass (google.com: domain of linux-kernel+bounces-61894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61894-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWr414RYtcbdsoiSOcW5sAMdddzK6yo7zE7mluIluxwWwHjnIFBq/GLNhlUB80iKdH6tPG6cOIqBOZ1CpHtZGNeSG+WhzY85flLp3inOg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y5-20020ac85245000000b0042c28da72e2si578339qtn.341.2024.02.12.07.29.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 07:29:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61894-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; arc=pass (i=1 spf=pass spfdomain=altlinux.org); spf=pass (google.com: domain of linux-kernel+bounces-61894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61894-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8875C1C21AAB for ; Mon, 12 Feb 2024 15:29:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 274CC3C496; Mon, 12 Feb 2024 15:28:57 +0000 (UTC) Received: from air.basealt.ru (air.basealt.ru [194.107.17.39]) (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 2D5C13BB5E; Mon, 12 Feb 2024 15:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.107.17.39 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707751736; cv=none; b=QZT+TYlHrW3Y3oW6cpZR/eRMes6N95Rfw8RBAe/eCvc4kS0BnzkrWJapgpBbqOG/K3oPi+m9qCuT1PaelDWe0FZUzzYrE64u+Qk8+XFl8shylvrmBhfk0XRoc4db98K66RNWr/JyVwgS+4YgSkr0eHr4OQvRWmW0eEnchVfA2D4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707751736; c=relaxed/simple; bh=UlNQdXdEu8GFaDckGHWpz0bCZpO+hsGs9qo4St9gRCc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CeWnfqhDoh3vWr9JOyMOvnA0dtzxravDlsHGoZRuQDC5DruTRelR4zMc/rIhq2yz5VQlIX/1bQ0l7kNkLfdnOAHzYM0blnpjYRgNZKoVCGx6Fp0QFuOKYSmMdEdFZdsTCjhml4j6fg9zTE/jIe8b23gtAObA7JzPfHETGF8HpAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org; spf=pass smtp.mailfrom=altlinux.org; arc=none smtp.client-ip=194.107.17.39 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=altlinux.org Received: by air.basealt.ru (Postfix, from userid 490) id 2601B2F20241; Mon, 12 Feb 2024 15:28:52 +0000 (UTC) X-Spam-Level: Received: from shell.ipa.basealt.ru (unknown [176.12.98.74]) by air.basealt.ru (Postfix) with ESMTPSA id 7DF152F2023B; Mon, 12 Feb 2024 15:28:49 +0000 (UTC) From: Alexander Ofitserov To: astrajoan@yahoo.com Cc: arnd@arndb.de, bridge@lists.linux-foundation.org, davem@davemloft.net, edumazet@google.com, f.fainelli@gmail.com, hkallweit1@gmail.com, ivan.orlov0322@gmail.com, keescook@chromium.org, kuba@kernel.org, linux-kernel@vger.kernel.org, mudongliangabcd@gmail.com, netdev@vger.kernel.org, nikolay@nvidia.com, pabeni@redhat.com, razor@blackwall.org, roopa@nvidia.com, skhan@linuxfoundation.org, syzbot+881d65229ca4f9ae8c84@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com, vladimir.oltean@nxp.com, dutyrok@altlinux.org, Alexander Ofitserov Subject: Re: [Bridge] [PATCH] net: bridge: Fix refcnt issues in dev_ioctl Date: Mon, 12 Feb 2024 18:28:28 +0300 Message-ID: <20240212152828.4049756-2-oficerovas@altlinux.org> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20230823093846.7wzrhnqdk2wyqud2@Astras-Ubuntu> References: <20230823093846.7wzrhnqdk2wyqud2@Astras-Ubuntu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Wed, Aug 23, 2023 at 00:38:46PM +0300, Ziqi Zhao wrote: > On Tue, Aug 22, 2023 at 01:40:45PM +0300, Nikolay Aleksandrov wrote: > > Thank you for testing, but we really need to understand what is going on > > and why the device isn't getting deleted for so long. Currently I don't > > have the time to debug it properly (I'll be able to next week at the > > earliest). We can't apply the patch based only on tests without > > understanding the underlying issue. I'd look into what > > the reproducer is doing exactly and also check the system state while the > > deadlock has happened. Also you can list the currently held locks (if > > CONFIG_LOCKDEP is enabled) via magic sysrq + d for example. See which > > process is holding them, what are their priorities and so on. > > Try to build some theory of how a deadlock might happen and then go > > about proving it. Does the 8021q module have the same problem? It uses > > similar code to set its hook. > > Hi Nik, > > Thank you so much for the instructions! I was able to obtain a decoded > stacktrace showing the reproducer behavior in my QEMU VM running kernel > 6.5-rc4, in case that would give us more context for pinpointing the > problem. Here's a link to the output: > > https://pastecat.io/?p=IlKZlflN9j2Z2mspjKe7 > > Basically, after running the reproducer (line 1854) for about 180 > seconnds or so, the unregister_netdevice warning was shown (line 1856), > and then after another 50 seconds, the kernel detected that some tasks > have been stalled for more than 143 seconds (line 1866), so it panicked > on the blocked tasks (line 2116). Before the panic, we did get to see > all the locks held in the system (line 2068), and it did show that many > processes created by the reproducer were contending the br_ioctl_mutex. > I'm now starting to wonder whether this is really a deadlock, or simply > some tasks not being able to grab the lock because so many processes > are trying to acquire it. > > Let me know what you think about the situation shown in the above log, > and let's keep in touch for any future debugging. Thank you again for > guiding me through the problem! > > Best regards, > Ziqi Hello, I've also encountered this bug while fuzzing. Is there any going work on this bug? -- 2.42.1