Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp3057252lqz; Wed, 3 Apr 2024 17:43:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDF/mwwozDOZtuqA3vn2X8kqp59W2sJxwtitkqdkURqThz0hDxWNA31Whg/T6vbKb1MZ/KjiJQFHjWwa7A3MMmDqobpEE5xE0iJDTfaQ== X-Google-Smtp-Source: AGHT+IGUKeEK3/384RBSIDMddAsSAt0Q6SSsde52eCWtOrOks17X/juNSamyvOlV/V21ARjSOPKo X-Received: by 2002:a05:6a20:2d09:b0:1a3:b187:f261 with SMTP id g9-20020a056a202d0900b001a3b187f261mr5177570pzl.29.1712191400562; Wed, 03 Apr 2024 17:43:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712191400; cv=pass; d=google.com; s=arc-20160816; b=Qhx1LITOqtUGhbGIW2tgedcb35qdRzEgDMVG/KY9KWbMyAz/rh0Pns0R+ybNrP2HLR BvdEihDz/xaV4iJ8RFkquHslAbxP6QuOLYiHEj34FVuEfG1EMX8TQ/1jCaQOJ9vlECg7 C31wpDidf1fzkriNxsNcJySoadiJyEyeewrWmWa4p8bGnFDY+bx3Sb+IGCIbKUeIsgqW HRK441yRVwTX6Lfhg7H3OC9ks4rt5un4IQY7iQhvq/vJoIn/iVfhVG8akePFOfuBQeQe ChN9zLQ74U0QX6go1y7R8ZQWkOj18SVQfP3/upqlZnt8iwo1o3jQ2QDUBRJWWT/3XAa3 3Big== 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=2O1wxtwmKDfcZtowkSJJ4ZmDKlF18A4c4j2BVgafRKs=; fh=LcBAW9EghRJ8Sx6xpvL+htd+Puw+6XtDoYC73G0seDs=; b=UUfqqEyNFHzUOTMBPIdZ7yTj5G3ppBn7KiyvLzTRH4A/tyfVEIBbCVid8FdW2PybpK Phl4P2tgkKgyN3ZQQMI7rCsP0vC8ZBnmEo37ZTCiAuDeb7SbGD1bYU013Z1Rc2DLABwY O0JqP/8ENbJD49oWEIoPSuGet3/P2nM+7z4WsA6D5QDnG/fgJZKwefMEQmuNdm9hcfXF T4Ak2FA2tXyC3M3S6bSFDWVxJR2ZShonY2cwQxSnW5RV9xdCcW4JoAaS9d36rL/8NlDj jxVUBZKfKcCvoRb0/h/35cxAwH6tuyiV8wD8XfGlRnMQ3oI+PVAfe0ov+KTe37mcQ816 X/pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-130791-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130791-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h17-20020a632111000000b005dc6375e189si13426733pgh.396.2024.04.03.17.43.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 17:43:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130791-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-130791-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130791-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 628A028DC02 for ; Thu, 4 Apr 2024 00:43:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64E974A33; Thu, 4 Apr 2024 00:43:17 +0000 (UTC) Received: from mail115-100.sinamail.sina.com.cn (mail115-100.sinamail.sina.com.cn [218.30.115.100]) (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 D580B37E for ; Thu, 4 Apr 2024 00:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712191396; cv=none; b=GaA32e3nin21c1Ri4rQvdkMfB2UL77nRMUvWoCllkLG0G+4+sCk6PD9PEq+nKq5zVIfMsvbxuL/0/izJlj17cH2fZDJIXoZc9WxW0LzF/n22q7Qsu6HFhElpA0JMq6hluXSO1sTdhOBX9hRvt6Z6cJvm5gDJy2YFfzMbw1EX7Es= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712191396; c=relaxed/simple; bh=Jn7jihx5ZAEU7E/WxYZQsSS/l5HWKas8Jpl8onMuOeQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ixwIeHCzYIlM9YiB6020mHKXlWQWv2h8TrN1oUVqr38aPjykn6tc3x946eYGrAVv58lPE4y0DnLvEqwTO5nell7PbfaiKjWEwkF1xDDjyVVVtwpFSJIYYgNA3AjeIeFpCGdior/s5/H+JWhKtoWXFm063Jry6WdkB8LSplI9FTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.88.48.253]) by sina.com (172.16.235.24) with ESMTP id 660DF79A00002F0E; Thu, 4 Apr 2024 08:43:08 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 89645545089384 X-SMAIL-UIID: 0BB6AD394806450287569264996BFAA2-20240404-084308-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [kernfs?] possible deadlock in kernfs_fop_llseek Date: Thu, 4 Apr 2024 08:42:57 +0800 Message-Id: <20240404004257.3933-1-hdanton@sina.com> In-Reply-To: <00000000000098f75506153551a1@google.com> References: 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, 03 Apr 2024 11:23:26 -0700 > syzbot found the following issue on: > > HEAD commit: fe46a7dd189e Merge tag 'sound-6.9-rc1' of git://git.kernel.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15c38139180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git fe46a7dd189e --- x/fs/overlayfs/file.c +++ y/fs/overlayfs/file.c @@ -204,6 +204,7 @@ static loff_t ovl_llseek(struct file *fi if (ret) return ret; + inode_lock(inode); /* * Overlay file f_pos is the master copy that is preserved * through copy up and modified on read/write, but only real @@ -220,6 +221,7 @@ static loff_t ovl_llseek(struct file *fi file->f_pos = real.file->f_pos; ovl_inode_unlock(inode); + inode_unlock(inode); fdput(real); --