Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3379574rdb; Tue, 6 Feb 2024 16:30:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQreSk0+m8xPkx2jlXo8xX32uDgLRp/fIzkoLCSriUQiImotqwvepBiS7WPmDWeHfN6C+h X-Received: by 2002:a05:620a:3606:b0:783:bd57:a056 with SMTP id da6-20020a05620a360600b00783bd57a056mr3826534qkb.26.1707265806683; Tue, 06 Feb 2024 16:30:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707265806; cv=pass; d=google.com; s=arc-20160816; b=FRqkka9ADPjMGDqhb3dSgTV5YyYWSDCARNju6dNJftFjzJY7HDPkqockR1JNMz0lD5 v0KaiwSBpxAIl0/rFKKNAJgRAQ0EdTokYF0O0lRBTZPPaJ7ABBGsxemVmgVH5ltvGFk3 mMCybfQD2j0PmwBOvvAjLTGYTXNIk3S9nuaSmJOJ+q1hRzJ/y3nJh+6Kc8s5722lCmcp 44sn3yR+Au+IAk3pTmzBINM1bh8PTiGLn4a5rsPYC/0OT6+9W7lOrzeG6qScTpUaDZwc kEIuKbXYGw/IBDz+VwtP5sZhsDJAC/AR3+/9boh8Pglq7771kR6iLfZ+F2P4LvJEs+sG L9fQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=5RnTcGMZ9Fnqw/5A9a+zyo/aV++3sTlK5wnBXsTtPOw=; fh=Gg+Li4GWFoawo8bSvI9bI4B0JgMMdrdNXPHUbtbjXXw=; b=nqDmgdUWg2cIc1EhZakXpbsbqF7VEVdzhnwphlnPsQBb8K6u8RVo0k+oWn2oHLurDM 9X9yyU0+9C+CiYiKiMBxzcMH/Vl5Y0fx2tQEGVBQIzJmUF+RW7lQJWonz1B8pfAd9T/0 cN99DLcXCuGcusWhdiLTH7uWniN7o0USFTvLMOx7DlRzW2gfbPEU2u6o1M45xENChNjE 332vNLE5OPnsE2H+HJYpCdRnahMIwSkm6Ju0aNTtCoM43ljXb7sINmTusTMoCgo5Ocy3 hdWDqoY7r4oh2ue0f74v+mG7dP05nvUVJHv9mtTM4hM77ZQOcnOk6C1XfoVYXAhgSPXy t5LA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=IJa7jKPm; arc=pass (i=1 dkim=pass dkdomain=linux.org.uk dmarc=pass fromdomain=zeniv.linux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-55609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk X-Forwarded-Encrypted: i=2; AJvYcCXRsSsS21/t98RSwDQRQ3s33M2QqX3BG18iOvyLrQs3Bp83p38n4k6YdvPTViHP5+g5Flsnq7fG4qQHzFWJLOVJkoHrzEktxLgdcH1iuQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s24-20020a05620a16b800b007858b831cd1si74734qkj.176.2024.02.06.16.30.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 16:30:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55609-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=@linux.org.uk header.s=zeniv-20220401 header.b=IJa7jKPm; arc=pass (i=1 dkim=pass dkdomain=linux.org.uk dmarc=pass fromdomain=zeniv.linux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-55609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk 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 497021C222AA for ; Tue, 6 Feb 2024 20:50:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39CA21B950; Tue, 6 Feb 2024 20:50:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="IJa7jKPm" Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (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 D8F191B941; Tue, 6 Feb 2024 20:50:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.89.141.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707252621; cv=none; b=RGtl9TWAedizv8K80u1GYLkme6EOzLoYqWXxRUUalf8Bw6A4+P3fIMu5oNEExhPxKNSIzf3QGIGMR3i4DUTpf9rTkfPMDFsP39VgUTca2IeFBh3Ef3Rlf4rK37cu80TBpSD2HhEH8jA3REKYC8XHXgJtHMNUByw9qPi6cMaTQLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707252621; c=relaxed/simple; bh=knWcBAhY/RN4SzvGeW5Z8yXWAL3FGRCJ0j8BoXZiDtA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AvM59xs82q2vvQnG8jT5DS79otpe/Qr3+gpzj5IRyMraQQJ1ZpjQqOuBfQttMm59jOx7Ia3bFMpKYd6jGIjUq911kQP0cqAMAYxQAyS2e1gHHcI5ldC2CJWQ2vQw1SJWMR40pOxymb8X/5b6AjVdZ6ls0NEeM9uWmjGKtDZWb6U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk; spf=none smtp.mailfrom=ftp.linux.org.uk; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b=IJa7jKPm; arc=none smtp.client-ip=62.89.141.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=5RnTcGMZ9Fnqw/5A9a+zyo/aV++3sTlK5wnBXsTtPOw=; b=IJa7jKPmSatudnLcE2I9lQmSVX 8Vu8xXYq3RjnYKu2uZEEBQ8wzQ1h4042wvPQBXqRl/B48nE40rzPdKLNr/ehQvIHhkQlhNx6dXAIL 8hRebSMIK8R9YArSx156eelbbNX9XqysDII0YseA+SbK0S8dI8hNz9r4SEWarqyQ5SBApXI6klZye 4Z3ShSF3zfvLIYuumrW9Pid54F1O4fTRV1bkwvxNNQeox/nP/rZfl0TNlkQe99Kc1g7XYGChlnBu8 eZKlA1sqCeOXN0XNLidQeR1TnGWiqwf8LBFVd/HI6up/XHcUw+9l2h8ZODfYyt4fq/b02B8/WbOBd gGxAayqQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rXSOU-002YDN-0g; Tue, 06 Feb 2024 20:50:14 +0000 Date: Tue, 6 Feb 2024 20:50:14 +0000 From: Al Viro To: Calvin Owens Cc: Christian Brauner , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BUG] Infinite loop in cleanup_mnt() task_work on 6.3-rc3 Message-ID: <20240206205014.GA608142@ZenIV> References: 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-Disposition: inline In-Reply-To: Sender: Al Viro On Tue, Feb 06, 2024 at 11:52:58AM -0800, Calvin Owens wrote: > Hello all, > > A couple times in the past week, my laptop has been wedged by a spinning > cleanup_mnt() task_work from an exiting container runtime (bwrap). > > The first time it reproduced was while writing to dm-crypt on nvme, so I > blew it off as a manifestation of the tasklet corruption. But I hit it > again last night on rc3, which contains commit 0a9bab391e33, so that's > not it. > > I'm sorry to say I have very little to go on. Both times it happened, I > was using Nautilus to browse around in some directories, but I've tried > monkeying around with that and had no luck reproducing it. The spinning > happens late enough in the exit path that /proc/self/ is gutted, so I > don't know what the bwrap container was actually doing. > > The NMI stacktrace and the kconfig I'm running are below. The spinning > task still moves between CPUs. No hung task notifications appear except > for random sync() calls happening afterwards from userspace, which all > block on super_lock() in iterate_supers(). Trying to ptrace the stuck > process hangs also hangs the tracing process forever. > > I rebuilt with lockdep this morning, but haven't seen any splats, and > haven't hit the bug again. > > Please let me know if you see anything specific I can test or try that > might help narrow the problem down. Otherwise, I'll keep working on > finding a reliable reproducer. Check if git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git #fixes helps.