summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2020-10-04 19:04:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-18 19:18:49 +0100
commitb0f6ea857986f0f5adf19050d8c93480c6eb83ef (patch)
treedced6f61b90af3763ed11162065ac025efd51f3b /security
parentbc2d96b3061ad35150c4db14661e91916766f241 (diff)
downloadlinux-stable-b0f6ea857986f0f5adf19050d8c93480c6eb83ef.tar.gz
linux-stable-b0f6ea857986f0f5adf19050d8c93480c6eb83ef.tar.bz2
linux-stable-b0f6ea857986f0f5adf19050d8c93480c6eb83ef.zip
btrfs: fix potential overflow in cluster_pages_for_defrag on 32bit arch
commit a1fbc6750e212c5675a4e48d7f51d44607eb8756 upstream. On 32-bit systems, this shift will overflow for files larger than 4GB as start_index is unsigned long while the calls to btrfs_delalloc_*_space expect u64. CC: stable@vger.kernel.org # 4.4+ Fixes: df480633b891 ("btrfs: extent-tree: Switch to new delalloc space reserve and release") Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Sterba <dsterba@suse.com> [ define the variable instead of repeating the shift ] Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions