From mboxrd@z Thu Jan 1 00:00:00 1970 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 951781BF53; Sat, 6 Apr 2024 03:54:57 +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=1712375700; cv=none; b=hvkEZPFMY6g6UBV7+OFNOw9ejO+qivQogcY2cor8qIjMfJbQhgK7aVF+r9OEzBKvzLzUWFBdLqzyDDVybExz9qVL797X/akDmAjdLitMpIo4I6sUnnt1g3d0jDsNCRjP30JVyW6KKfQOVaaa3UF1qm76+61KquGObH8C5f73acg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712375700; c=relaxed/simple; bh=J9Pil6B0QWphwbvAIIjA6LN7eFJSzQShOiLj2RiRIf0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HWuf6fHb4/nHx6wFxPxSHnwuMZF7wUxP+9dteFYwFrPPD4+IReRVxrpsUAk/srppiplsqrxVH+KuhwosoM2CJNIYpEpgq2dQW7PSLmTwTy4Iu1mz3VmGIIevkij/1+emJPc+mL+kVcxbPvDYf8dkDLniIQUyNbfNZS/9Ecbchj0= 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=mkJ5Oh/V; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="mkJ5Oh/V" 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=tCa6rfErMsA8fqEi+dhlV3QZnsxtzKsW1TXiEWTq/yE=; b=mkJ5Oh/VsTC5pF4gQNJP9c7p3y U2gJXyrZHkctdnKTPMo/9Fy+0MyxkgWnjO6N7wqYli0CGuchsaPQvHpHRFabIQudnHgU/NBO6TjSZ Nt84w8FuEcSedgxbYReZAhGlirRI1PIEUHBKr+t77zBYp8+xccKWVIAWVPQ6/Sve0xaTiOscV4Lba 5ZLRHZNeL5NDfujPeizipAfdPN6PhZbSlzWMqgejqcn2McwoVGTr2vPJei1Q5Ql1P/Vd8/+2nQTvA coFlnndd2JzOiyohlFHNhlRyNUmIqlhYI4cMyfbLYtT15AIEITLMeToAZynUJJQXZ6RZLsiAX37Ou PS7bOO3Q==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rsx8l-006p0r-0d; Sat, 06 Apr 2024 03:54:51 +0000 Date: Sat, 6 Apr 2024 04:54:51 +0100 From: Al Viro To: Christoph Hellwig Cc: Amir Goldstein , syzbot , gregkh@linuxfoundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tj@kernel.org, valesini@yandex-team.ru, Christian Brauner , Jan Kara , Miklos Szeredi Subject: Re: [syzbot] [kernfs?] possible deadlock in kernfs_fop_llseek Message-ID: <20240406035451.GW538574@ZenIV> References: <00000000000098f75506153551a1@google.com> <0000000000002f2066061539e54b@google.com> <20240404081122.GQ538574@ZenIV> <20240404082110.GR538574@ZenIV> <20240405065135.GA3959@lst.de> 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: <20240405065135.GA3959@lst.de> Sender: Al Viro On Fri, Apr 05, 2024 at 08:51:35AM +0200, Christoph Hellwig wrote: > On Thu, Apr 04, 2024 at 12:33:40PM +0300, Amir Goldstein wrote: > > I don't follow what you are saying. > > Which code is in non-starter violation? > > kernfs for calling lookup_bdev() with internal of->mutex held? > > That is a huge problem, and has been causing endless annoying lockdep > chains in the block layer for us. If we have some way to kill this > the whole block layer would benefit. Specifically of->mutex or having pathwalk done from some ->write_iter()? Incidentally, losetup happily accepts sysfs files as backing store. I don't think it adds problems we don't have otherwise, but IMO that's really bogus...