Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp302476lqe; Sat, 6 Apr 2024 01:42:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU33pvhHjvWeu8VfWOvTPQeH8V+qOsDMYBBPuRG1xIQ1soKFhL5udUb0UdfocHMEZ01BDlFCSck5/P0YAvD4GEyD8H0s7kX4Ya7BOvYDg== X-Google-Smtp-Source: AGHT+IGYSUa32CK8wwQbdZ4m2UGg7DbPrMmXLfWZoksTSusmbJSuul7veMAq8dHkyBOrJQRYnmnQ X-Received: by 2002:a50:d653:0:b0:56e:2d93:3f7f with SMTP id c19-20020a50d653000000b0056e2d933f7fmr3486670edj.39.1712392946839; Sat, 06 Apr 2024 01:42:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712392946; cv=pass; d=google.com; s=arc-20160816; b=ZxWSthrU2QeEGopgHDy2phYx/tLmpHRJOA8AiRDZ8zt5QRGfHmTgg+xOqYV6BPKk/h 5fsPjCnlCwDFr5W0JSEEFSXdqAokjSUwf8dwWS0scwoXqhDzTIFobiUCoQR8Q3tsjfvp 9zmjutfLliYoEx+9KP4BeFcyhWQwA0BglZwTfJb/gKmYEA4gqyIo5MUpH/r5JVCfsFiu EExPMKPdOFXh2yw9T3RJqlHiUmdFeIOtbSV86P75eMCmohw+8joXmM+8cmVzoqC2W0A5 y2T3Bi5DgaWTvN/odQMoGeS+PgELlwbDf17gAqSNW7a0dwL5WORXZ5reo08y6IeHtBR5 09oA== 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=tCa6rfErMsA8fqEi+dhlV3QZnsxtzKsW1TXiEWTq/yE=; fh=Mu3oez6W4IUrPTAZA8YjYdAfjJed+JzR9eM4RbjTlsw=; b=BqSUf/assLirHG/Bc/M2JX/v6TOpmF0UbhNU3Bmo1g+qGcGDC9cdVTrLuf+OoxbBTl yDMWnwgjdFJQhB9naVFzuSacJ2BqB6AStdgm10TK+7ViKX1yTPGyoZoye+eg6kxOKKh0 ckoAvhXurr336LPzYNLXQwjn41y4A7m/GWdn/9SYIepyG/yoqxRWSdhsuIf0Fr4esYVb NfdChJKiNBEWTWD6fGDNjSy/eCVFHhbcWb/OaBVtzLEeDJUCT6NPHEaPIMueNzjJEs+B fWPGJv9cclBqdcRmBTPJ+KFb77LjyVs8nvOAu32ZBXUehy2fyJxrnNV0jJTRUt//TueH Dzzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="mkJ5Oh/V"; 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-133792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133792-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o6-20020a509b06000000b0056be5253030si1489291edi.575.2024.04.06.01.42.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 01:42:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b="mkJ5Oh/V"; 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-133792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133792-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 385691F21AA3 for ; Sat, 6 Apr 2024 03:55:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EDBE1DA21; Sat, 6 Apr 2024 03:55:01 +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="mkJ5Oh/V" 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 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...