[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5682A6B6.1010909@kernel.dk>
Date: Tue, 29 Dec 2015 08:28:54 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Matias Bjørling <m@...rling.me>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
axboe@...com
Subject: Re: [PATCH] lightnvm: wrong offset in bad blk lun calculation
On 12/29/2015 06:37 AM, Matias Bjørling wrote:
> dev->nr_luns reports the total number of luns available in a device
> while dev->luns_per_chnl is the number of luns per channel.
>
> When multiple channels are available, the offset is calculated from a
> channel and lun id into a linear array. As it multiplies with
> the total number of luns, we go out of bound when channel id > 0 and
> causes the kernel to panic when we read a protected kernel memory area.
Added for 4.4, thanks.
--
Jens Axboe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists