]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
fix unbalanced page refcounting in bio_map_user_iov
authorVitaly Mayatskikh <v.mayatskih@gmail.com>
Fri, 22 Sep 2017 05:18:39 +0000 (01:18 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:49:40 +0000 (09:49 -0500)
commitd907fb71da19a77672bcfbfe29455d9454e01756
treee3dbcb948b9c438d1efaf561f38722e68d973bed
parent1ba5e15cc8d4b7fc850c14939e8d48393c40ef13
fix unbalanced page refcounting in bio_map_user_iov

BugLink: http://bugs.launchpad.net/bugs/1724669
commit 95d78c28b5a85bacbc29b8dba7c04babb9b0d467 upstream.

bio_map_user_iov and bio_unmap_user do unbalanced pages refcounting if
IO vector has small consecutive buffers belonging to the same page.
bio_add_pc_page merges them into one, but the page reference is never
dropped.

Signed-off-by: Vitaly Mayatskikh <v.mayatskih@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
block/bio.c