[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <36ff7b17-eb2f-780d-17ca-269a8f5d4aac@kernel.dk>
Date: Fri, 16 Oct 2020 09:29:09 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Colin King <colin.king@...onical.com>,
Matias Bjorling <mb@...htnvm.io>,
Matias Bjørling <m@...rling.me>,
linux-block@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] lightnvm: fix out-of-bounds write to array
devices->info[]
On 10/16/20 8:33 AM, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> There is an off-by-one array check that can lead to a out-of-bounds
> write to devices->info[i]. Fix this by checking by using >= rather
> than > for the size check. Also replace hard-coded array size limit
> with ARRAY_SIZE on the array.
Applied, thanks.
--
Jens Axboe
Powered by blists - more mailing lists