]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: move priv off stack in btrfs_encoded_read_regular_fill_pages()
authorMark Harmstone <maharmstone@fb.com>
Tue, 22 Oct 2024 14:50:19 +0000 (15:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:40:55 +0000 (10:40 +0100)
commit13bfaeafbfe3c9af38c0a838a0f718ea29645e87
tree59c593fc8cabd07265e24c2bb71e47f3be9bf153
parenta0f5689a684e8539ab28b47d6bf69279641b5b06
btrfs: move priv off stack in btrfs_encoded_read_regular_fill_pages()

[ Upstream commit 68d3b27e05c7ca5545e88465f5e2be6eda0e11df ]

Change btrfs_encoded_read_regular_fill_pages() so that the priv struct
is allocated rather than stored on the stack, in preparation for adding
an asynchronous mode to the function.

Signed-off-by: Mark Harmstone <maharmstone@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: 05b36b04d74a ("btrfs: fix use-after-free in btrfs_encoded_read_endio()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/inode.c