linux_old1/drivers/lightnvm
Gustavo A. R. Silva d52c499b47 lightnvm: pblk: fix use-after-free bug
Remove one of the calls to function bio_put(), so *bio* is only
freed once.

Notice that bio is being dereferenced in bio_put(), hence leading to
a use-after-free bug once *bio* has already been freed.

Addresses-Coverity-ID: 1475952 ("Use after free")
Fixes: 55d8ec3539 ("lightnvm: pblk: support packed metadata")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-12-22 14:45:35 -07:00
..
Kconfig lightnvm: remove dependencies on BLK_DEV_NVME and PCI 2018-10-09 08:25:05 -06:00
Makefile lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
core.c lightnvm: dynamic DMA pool entry size 2018-12-11 12:22:35 -07:00
pblk-cache.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-core.c lightnvm: pblk: support packed metadata 2018-12-11 12:22:35 -07:00
pblk-gc.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-init.c lightnvm: pblk: support packed metadata 2018-12-11 12:22:35 -07:00
pblk-map.c lightnvm: pblk: support packed metadata 2018-12-11 12:22:35 -07:00
pblk-rb.c lightnvm: pblk: support packed metadata 2018-12-11 12:22:35 -07:00
pblk-read.c lightnvm: pblk: support packed metadata 2018-12-11 12:22:35 -07:00
pblk-recovery.c lightnvm: pblk: fix use-after-free bug 2018-12-22 14:45:35 -07:00
pblk-rl.c lightnvm: pblk: set conservative threshold for user writes 2018-12-11 12:22:33 -07:00
pblk-sysfs.c lightnvm: pblk: support packed metadata 2018-12-11 12:22:35 -07:00
pblk-trace.h lightnvm: pblk: add tracing for chunk resets 2018-10-09 08:25:07 -06:00
pblk-write.c lightnvm: pblk: support packed metadata 2018-12-11 12:22:35 -07:00
pblk.h lightnvm: pblk: do not overwrite ppa list with meta list 2018-12-11 12:22:35 -07:00