Re: [PATCH 2/2] lightnvm: pblk: Ensure that bio is not freed on recovery

2018-12-07 Thread Javier Gonzalez
> On 7 Dec 2018, at 13.03, Matias Bjørling wrote: > > On 12/07/2018 10:12 AM, Javier Gonzalez wrote: >>> On 6 Dec 2018, at 16.45, Igor Konopko wrote: >>> >>> When we are using PBLK with 0 sized metadata during recovery >>> process we need to reference a last page of bio. Currently >>> KASAN

Re: [PATCH 2/2] lightnvm: pblk: Ensure that bio is not freed on recovery

2018-12-07 Thread Matias Bjørling
On 12/07/2018 10:12 AM, Javier Gonzalez wrote: On 6 Dec 2018, at 16.45, Igor Konopko wrote: When we are using PBLK with 0 sized metadata during recovery process we need to reference a last page of bio. Currently KASAN reports use-after-free in that case, since bio is freed on IO completion.

Re: [PATCH 2/2] lightnvm: pblk: Ensure that bio is not freed on recovery

2018-12-07 Thread Javier Gonzalez
> On 6 Dec 2018, at 16.45, Igor Konopko wrote: > > When we are using PBLK with 0 sized metadata during recovery > process we need to reference a last page of bio. Currently > KASAN reports use-after-free in that case, since bio is > freed on IO completion. > > This patch adds addtional bio

[PATCH 2/2] lightnvm: pblk: Ensure that bio is not freed on recovery

2018-12-06 Thread Igor Konopko
When we are using PBLK with 0 sized metadata during recovery process we need to reference a last page of bio. Currently KASAN reports use-after-free in that case, since bio is freed on IO completion. This patch adds addtional bio reference to ensure, that we can still use bio memory after IO