linux-sg2042/drivers/lightnvm
Matias Bjørling c3293a9ac2 lightnvm: wrong offset in bad blk lun calculation
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.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-12-29 08:28:32 -07:00
..
Kconfig lightnvm: do not compile in debugging by default 2015-12-07 09:14:20 -07:00
Makefile rrpc: Round-robin sector target with cost-based gc 2015-10-29 16:21:42 +09:00
core.c lightnvm: fix media mgr registration 2015-12-07 09:14:19 -07:00
gennvm.c lightnvm: wrong offset in bad blk lun calculation 2015-12-29 08:28:32 -07:00
gennvm.h lightnvm: update bad block table format 2015-11-16 15:20:25 -07:00
rrpc.c lightnvm: replace req queue with nvmdev for lld 2015-12-07 09:14:19 -07:00
rrpc.h lightnvm: refactor phys addrs type to u64 2015-11-03 09:53:24 -07:00