]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 14:13:39 +0000 (16:13 +0200)
commitd849c6103b048dbd43667444fe95b7a89456b4e1
tree78918d7801dcd375cf0026482a996dabdbc44d47
parent54aabddcf0b7e0cf51cbf80c1b9ee03e2723f7d2
XArray: Fix xas_pause for large multi-index entries

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>
lib/test_xarray.c
lib/xarray.c