[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180901025003.GB27277@thunk.org>
Date: Fri, 31 Aug 2018 22:50:03 -0400
From: "Theodore Y. Ts'o" <tytso@....edu>
To: Jiri Slaby <jslaby@...e.cz>
Cc: Ext4 Developers List <linux-ext4@...r.kernel.org>,
stable@...r.kernel.org
Subject: Re: [PATCH] ext4: avoid arithemetic overflow that can trigger a BUG
On Fri, Aug 31, 2018 at 09:31:36PM +0200, Jiri Slaby wrote:
>
> Can't this be just
>
> map.m_len = min_t(unsigned long, last_block - first_block + 1, UINT_MAX)?
Yes, good point, thanks.
- Ted
Powered by blists - more mailing lists