summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-08-10 21:04:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-12 11:11:39 +0200
commitd942e855324a60107025c116245095632476613e (patch)
tree6fd1f3a59b4caad98f6ab0f983911f96ebc68b25 /arch
parent7ead730af11ee7da107f16fc77995613c58d292d (diff)
lib/generic-radix-tree.c: Fix rare race in __genradix_ptr_alloc()
[ Upstream commit b2f11c6f3e1fc60742673b8675c95b78447f3dae ] If we need to increase the tree depth, allocate a new node, and then race with another thread that increased the tree depth before us, we'll still have a preallocated node that might be used later. If we then use that node for a new non-root node, it'll still have a pointer to the old root instead of being zeroed - fix this by zeroing it in the cmpxchg failure path. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions