[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <163305786450.211691.6215423597966857187.b4-ty@mit.edu>
Date: Thu, 30 Sep 2021 23:11:13 -0400
From: "Theodore Ts'o" <tytso@....edu>
To: Ritesh Harjani <riteshh@...ux.ibm.com>, linux-ext4@...r.kernel.org
Cc: "Theodore Ts'o" <tytso@....edu>, Jan Kara <jack@...e.cz>,
Andreas Dilger <adilger.kernel@...ger.ca>
Subject: Re: [PATCH] ext4: Fix loff_t overflow in ext4_max_bitmap_size()
On Sat, 5 Jun 2021 10:39:32 +0530, Ritesh Harjani wrote:
> We should use unsigned long long rather than loff_t to avoid
> overflow in ext4_max_bitmap_size() for comparison before returning.
> w/o this patch sbi->s_bitmap_maxbytes was becoming a negative
> value due to overflow of upper_limit (with has_huge_files as true)
>
> Below is a quick test to trigger it on a 64KB pagesize system.
>
> [...]
Applied, thanks!
[1/1] ext4: Fix loff_t overflow in ext4_max_bitmap_size()
commit: f9b9e1afe996e8b4a0a2ea8481c41756fff53d08
Best regards,
--
Theodore Ts'o <tytso@....edu>
Powered by blists - more mailing lists