lib/generic-radix-tree.c: Don't overflow in peek()
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 13 Feb 2021 01:11:25 +0000 (20:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:19:35 +0000 (17:19 +0000)
commitaa7f1827953100cdde0795289a80c6c077bfe437
treee1a79c4536537cf8b66589ea6779f562dc782d83
parentd5e09e385e8abfdbbd9af3e2c83e4e8ca854f2ef
lib/generic-radix-tree.c: Don't overflow in peek()

[ Upstream commit 9492261ff2460252cf2d8de89cdf854c7e2b28a0 ]

When we started spreading new inode numbers throughout most of the 64
bit inode space, that triggered some corner case bugs, in particular
some integer overflows related to the radix tree code. Oops.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/generic-radix-tree.h
lib/generic-radix-tree.c