]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
XArray: Fix xas_pause for large multi-index entries
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 31 Jan 2020 11:17:09 +0000 (06:17 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
commit781b7cb793124a8b13387ed89f10e2d90213265d
tree3c7ac6e671190c98623c0d994abec634c4b7a38a
parent5067192a09ec575b4a2c92f43e1f23299a086e5e
XArray: Fix xas_pause for large multi-index entries

BugLink: https://bugs.launchpad.net/bugs/1873481
commit c36d451ad386b34f452fc3c8621ff14b9eaa31a6 upstream.

Inspired by the recent Coverity report, I looked for other places where
the offset wasn't being converted to an unsigned long before being
shifted, and I found one in xas_pause() when the entry being paused is
of order >32.

Fixes: b803b42823d0 ("xarray: Add XArray iterators")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
lib/test_xarray.c
lib/xarray.c