[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191021010839.GC6799@mit.edu>
Date: Sun, 20 Oct 2019 21:08:39 -0400
From: "Theodore Y. Ts'o" <tytso@....edu>
To: Jan Kara <jack@...e.cz>
Cc: linux-ext4@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH 01/22] jbd2: Fix possible overflow in
jbd2_log_space_left()
On Fri, Oct 04, 2019 at 12:05:47AM +0200, Jan Kara wrote:
> When number of free space in the journal is very low, the arithmetic in
> jbd2_log_space_left() could underflow resulting in very high number of
> free blocks and thus triggering assertion failure in transaction commit
> code complaining there's not enough space in the journal:
>
> J_ASSERT(journal->j_free > 1);
>
> Properly check for the low number of free blocks.
>
> CC: stable@...r.kernel.org
> Signed-off-by: Jan Kara <jack@...e.cz>
Looks good, you can add:
Reviewed-by: Theodore Ts'o <tytso@....edu>
Powered by blists - more mailing lists