From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CF505762C1; Tue, 14 May 2024 11:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715686424; cv=none; b=aJmtuY0/TvLp7TUwZLbmgH5y3wImqJG9F92RyyNh67IGhqM82TdVpEz/yp5Rt0cdCrdMeNhcj63Ekw3VCW4OwEEggAWHPOwMVfSl4ymBLeHNFZOjDtR/qQbAc2SYDnJ/PfqohdptMAQPZx/ZSe0giaRLbwv3UIDHkdgKH9H4J1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715686424; c=relaxed/simple; bh=jLdsQjFvEj4CVB+QLs6xKhZGfrkjMSV7pf31Pa2VK8w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ur5ZRoBpOXOIwiBPAEZbR4FM5qV4TYSz15nA101qRMYVM62m3lg3ktUePNYSH4Bh4lTosGuYShB3r6MdMVQc9JKDV15GK/1XcHOuwhkILZg2d+0jCOPjkPqh7Y+qSkAFWZVjeJtA5ExLCm1wf8ZDVVirD+o8AB7fYlkJo2QTK/U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dTMs7XTC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dTMs7XTC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 552F3C2BD10; Tue, 14 May 2024 11:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715686424; bh=jLdsQjFvEj4CVB+QLs6xKhZGfrkjMSV7pf31Pa2VK8w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dTMs7XTCdKSdaSb1QJhEcHg7gD+slsS6v1NbVqpaNkkQrvdf6KzUQ68VGkDtlaDiq Bzegeqkjyel/nW9kpUZa4fei/c8v0nJzaZXdDBDXz9MKGei3eV0zR+Jj04zeenT6Vg 0lcd5EFfKVBonruWHSK/OW26+tBaGn8mJsbqZfg8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jeff Layton , Eric Van Hensbergen , Sasha Levin Subject: [PATCH 6.1 133/236] 9p: explicitly deny setlease attempts Date: Tue, 14 May 2024 12:18:15 +0200 Message-ID: <20240514101025.419432294@linuxfoundation.org> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240514101020.320785513@linuxfoundation.org> References: <20240514101020.320785513@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jeff Layton [ Upstream commit 7a84602297d36617dbdadeba55a2567031e5165b ] 9p is a remote network protocol, and it doesn't support asynchronous notifications from the server. Ensure that we don't hand out any leases since we can't guarantee they'll be broken when a file's contents change. Signed-off-by: Jeff Layton Signed-off-by: Eric Van Hensbergen Signed-off-by: Sasha Levin --- fs/9p/vfs_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index aec43ba837992..87222067fe5de 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c @@ -667,6 +667,7 @@ const struct file_operations v9fs_file_operations = { .splice_read = generic_file_splice_read, .splice_write = iter_file_splice_write, .fsync = v9fs_file_fsync, + .setlease = simple_nosetlease, }; const struct file_operations v9fs_file_operations_dotl = { @@ -708,4 +709,5 @@ const struct file_operations v9fs_mmap_file_operations_dotl = { .splice_read = generic_file_splice_read, .splice_write = iter_file_splice_write, .fsync = v9fs_file_fsync_dotl, + .setlease = simple_nosetlease, }; -- 2.43.0