1
0
Fork 0
alistair23-linux/tools/testing/radix-tree
Matthew Wilcox (Oracle) 2577720d35 ida: Free allocated bitmap in error path
[ Upstream commit a219b856a2 ]

If a bitmap needs to be allocated, and then by the time the thread
is scheduled to be run again all the indices which would satisfy the
allocation have been allocated then we would leak the allocation.  Almost
impossible to hit in practice, but a trivial fix.  Found by Coverity.

Fixes: f32f004cdd ("ida: Convert to XArray")
Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:57:47 +01:00
..
generated radix tree: Remove multiorder support 2018-10-21 10:46:48 -04:00
linux rcu: Don't return a value from rcu_assign_pointer() 2019-06-13 15:38:34 -07:00
.gitignore xarray: Add XArray load operation 2018-10-21 10:45:57 -04:00
Makefile xarray: Fix early termination of xas_for_each_marked 2020-04-17 10:50:18 +02:00
benchmark.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
bitmap.c xarray: Add XArray unconditional store operations 2018-10-21 10:45:57 -04:00
idr-test.c ida: Free allocated bitmap in error path 2020-10-29 09:57:47 +01:00
iteration_check.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
iteration_check_2.c xarray: Fix early termination of xas_for_each_marked 2020-04-17 10:50:18 +02:00
linux.c radix tree test suite: Fix build 2018-02-25 06:00:11 -05:00
main.c xarray: Fix early termination of xas_for_each_marked 2020-04-17 10:50:18 +02:00
multiorder.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
regression.h radix tree: Don't return retry entries from lookup 2018-12-06 08:26:16 -05:00
regression1.c radix tree test suite: Convert tag_tagged_items to XArray 2018-10-21 10:46:45 -04:00
regression2.c radix tree test suite: Convert tag_tagged_items to XArray 2018-10-21 10:46:45 -04:00
regression3.c page cache: Convert find_get_pages_contig to XArray 2018-10-21 10:46:34 -04:00
regression4.c radix tree: Don't return retry entries from lookup 2018-12-06 08:26:16 -05:00
tag_check.c radix tree test suite: Convert tag_tagged_items to XArray 2018-10-21 10:46:45 -04:00
test.c radix tree tests: Convert item_delete_rcu to XArray 2018-10-21 10:46:48 -04:00
test.h xarray: Fix early termination of xas_for_each_marked 2020-04-17 10:50:18 +02:00
xarray.c xarray: Add XArray load operation 2018-10-21 10:45:57 -04:00