Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp331166rdb; Tue, 19 Dec 2023 19:54:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMWGeKWnwnD/GaFPLNCz0kQFJx+x9AU9sP/U4R77YezwqdyYcaQn2lm+17ndV9JJFHnpmN X-Received: by 2002:a05:6870:420c:b0:203:f6b9:993e with SMTP id u12-20020a056870420c00b00203f6b9993emr2088582oac.96.1703044457157; Tue, 19 Dec 2023 19:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703044457; cv=none; d=google.com; s=arc-20160816; b=xCQhjIyrAXIYngyFRIwB6vF645tuzAiA9O0FFm+CG8O3Ji659XBEJ1i8zu3aQunyCB 4qHHR2VjHVHja0JL6CxmiTGsR+IIVWy8xBCigSdfWFxdHH50wbRRameT527y2IhgDtH4 jHjXGKc5k39RTy3fwQmIhnXVIkh3vYi5tJXkSaiPhfgx+5Ocafa+veK2HtDl5SoPsUlr eOSWub5u4qlw8DUQcQ5si9K42p0OIBlj+NAevha1M7qBpxN/TPL1RSwEYyXI9KgKVjnz ueljGak+fuCwJKCbEN2reHKhHi9teP+/O44SQ+4u6aiGdKUyFW6JwUhzcPdJIdqbSa4v J/yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=3XkPfiEhvxa8YlHOcqWd+fwFu91GxNXEY4eP9sBc5VQ=; fh=CAb3T4vO1uV5vXy+2Td01wKn3BXrZTLQF0Yj2yNB1y0=; b=ykUfktYuvxzqu//90ihH0HxTF6O43OvNCWVPq2XL0aW3kDkvZ/b5t9zfJZmz8a3ZRG NQtEA5O5btkkwyI9NvFskWiH4IHH84EOmdfWLBLGEmLjvafqwqSpTo8kcVgAKc+Zar5j r+3oPM4kCq5gOPikYYObRxOnjX3R0k1br2rRZawAxIv48leL59CeRoEJex3hKfsAmBpp 9Cd46nq7sMO/7OuZ6nEpjUi+qkDL7IRxxGml13Q/9yQ4fFIMPK+bF7oswl26Ia9rTcUg AjYzZk2KUWPeBHtoB7DhABA6M3NSvsp92GMR3d2Co5OmaJTpbCJANwZcKbsaNL9NC1Wn fr6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y7WSjxZB; spf=pass (google.com: domain of linux-kernel+bounces-6338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b65-20020a633444000000b005cd8866e8afsi6130999pga.323.2023.12.19.19.54.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 19:54:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y7WSjxZB; spf=pass (google.com: domain of linux-kernel+bounces-6338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 B4EC6281363 for ; Wed, 20 Dec 2023 03:54:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BB5EBE76; Wed, 20 Dec 2023 03:53:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Y7WSjxZB" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 508688F59; Wed, 20 Dec 2023 03:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-67f0cfd3650so38539536d6.3; Tue, 19 Dec 2023 19:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703044430; x=1703649230; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3XkPfiEhvxa8YlHOcqWd+fwFu91GxNXEY4eP9sBc5VQ=; b=Y7WSjxZBhVcGp33zrgjzc6jd/+dKdv3Go9RxqRqcVa0+v4x9PqzVUhlg06wyHe9zG/ Oaz6HBgRhbpeXZHF3VQ3q+2GHx3xBL2aMHhipq6Br3OEB6mOv9vyfyMEaol1xDz0+weZ tiZrTd6HddqWoFszdp+jM8IVJ1eyMuedzBTYLOKJ5qM5l9H7nA61xODRZcl3FJQjWKDe AiuUCgfoXYg32vHvBFdN0TqAsmNrBr3V9WEtexH/LSC16PfCLs8zWYvp+W96atPPMGoI H5oelkR0ykLmfSxBKhO7pxaCZABg8wyfASOoLFfCrgsDJtoVOXfAyYYIeebtQNReq9l5 AYvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703044430; x=1703649230; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3XkPfiEhvxa8YlHOcqWd+fwFu91GxNXEY4eP9sBc5VQ=; b=Pe0YacC3vVkyh+4qEWKhBhJDiZ05mjQAZQZiNSjtz/6VmVAh/e/5ydQC+Xpmmdesva n3BptQw52qSU7wTbz57gtZGDkdZIkZ54WJsEoHH1R4peG2Elo+1KksEy/1b4Yw1PUqXP XzECg29pnDSuN9w+I5UORP+UU7cCW3Lytx5i/IYc8IFgaf9zMBELEhXVCqvxBo+Wl+fO ikN3IcO9pAvJxpIPLvP6UxXJsbBNZVpuBuvARlJR+s8eGhn3aPF028ieLSk70cpK5+zI CXTZEF5n9Mf1wdrj5D5YxKkwxq8s618P09C2tTiZQihxyxVcW65SVzHNmtthU1dD7hjZ pvLA== X-Gm-Message-State: AOJu0Yw3XyU31+itpL6nhAG9Q3/bkK6E3Do/8z00fBuzwm7mGJNh0yrr VuUDJruhrfdPdGF8mIUHQrqzWgNTTi1m1w+Gylg= X-Received: by 2002:a05:6214:48c:b0:67f:4bd6:ccdd with SMTP id pt12-20020a056214048c00b0067f4bd6ccddmr4825261qvb.64.1703044430124; Tue, 19 Dec 2023 19:53:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <000000000000e171200600d6d8bd@google.com> <000000000000847160060ce61580@google.com> In-Reply-To: <000000000000847160060ce61580@google.com> From: Amir Goldstein Date: Wed, 20 Dec 2023 05:53:38 +0200 Message-ID: Subject: Re: [syzbot] [overlayfs?] possible deadlock in seq_read_iter (2) To: syzbot Cc: axboe@kernel.dk, hch@lst.de, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-unionfs@vger.kernel.org, miklos@szeredi.hu, rafael@kernel.org, syzkaller-bugs@googlegroups.com, Christian Brauner , David Howells Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 20, 2023 at 2:30=E2=80=AFAM syzbot wrote: > > syzbot has bisected this issue to: > > commit 1e8c813b083c4122dfeaa5c3b11028331026e85d > Author: Christoph Hellwig > Date: Wed May 31 12:55:32 2023 +0000 > > PM: hibernate: don't use early_lookup_bdev in resume_store > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=3D14b15592e8= 0000 > start commit: 2cf4f94d8e86 Merge tag 'scsi-fixes' of git://git.kernel.o= r.. > git tree: upstream > final oops: https://syzkaller.appspot.com/x/report.txt?x=3D16b15592e8= 0000 > console output: https://syzkaller.appspot.com/x/log.txt?x=3D12b15592e8000= 0 > kernel config: https://syzkaller.appspot.com/x/.config?x=3De5751b3a22261= 35d > dashboard link: https://syzkaller.appspot.com/bug?extid=3Dda4f9f61f96525c= 62cc7 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D176a4f49e80= 000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D154aa8d6e8000= 0 > > Reported-by: syzbot+da4f9f61f96525c62cc7@syzkaller.appspotmail.com > Fixes: 1e8c813b083c ("PM: hibernate: don't use early_lookup_bdev in resum= e_store") > I'm not sure this bisection is reliable, so I wouldn't use this Fixes tag. The reproducer may be a little flakey. Anyway, this is just one of many problems, real or false positives, related to the unholy dependency which sendfile() creates between locks on two different filesystems. I think those changes that are queued for 6.8 are going so fix this class of problems: #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.= rw Thanks, Amir.