]> git.ipfire.org Git - thirdparty/linux.git/commit - lib/xarray.c
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)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 31 Jan 2020 20:09:49 +0000 (15:09 -0500)
commitc36d451ad386b34f452fc3c8621ff14b9eaa31a6
treea62a6a6a3af528e6cfc91f686d37d8148a620c9d
parentbd40b17ca49d7d110adf456e647701ce74de2241
XArray: Fix xas_pause for large multi-index entries

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