Re: [PATCH] lightnvm: pblk: fix crash in pblk_end_partial_read due to multipage bvecs

From: Javier GonzÃlez
Date: Wed Apr 10 2019 - 08:22:43 EST


> On 8 Apr 2019, at 09.33, hans@xxxxxxxxxxxxx wrote:
>
> From: Hans Holmberg <hans.holmberg@xxxxxxxxxxxx>
>
> Ever since '07173c3ec276 ("block: enable multipage bvecs")' we
> need to handle bios with multipage bvecs in pblk.
>
> Currently, a multipage bvec results in a crash[1].
> Fix this by using bvec iterators in stead of direct bvec indexing.
>
> Also add a dcache flush, for the same reasons as in:
> '6e6e811d747b ("block: Add missing flush_dcache_page() call")'
>
> [1] https://github.com/OpenChannelSSD/linux/issues/61
>
> Reported-by: Klaus Jensen <klaus.jensen@xxxxxxxxxxxx>
> Signed-off-by: Hans Holmberg <hans.holmberg@xxxxxxxxxxxx>
> ---
>
> It ain't pretty, but let's fix the breakage while waiting for Igor's
> partial read cleanup to be ready.
>

I would prefer to have the real fix, but it is good to have this fixed for
5.2. Can we agree on a revert if Igor sends the patch within the 5.2
window?

Javier

Attachment: signature.asc
Description: Message signed with OpenPGP