]> git.itanic.dy.fi Git - linux-stable/commit
dm btree: add a defensive bounds check to insert_at()
authorJoe Thornber <ejt@redhat.com>
Fri, 10 Dec 2021 13:44:13 +0000 (13:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 08:04:28 +0000 (09:04 +0100)
commit716e490c87e4421d5908f7818fc6b61536a17744
tree2f0a681851e302f81a6c4eb183459b7ecdfcefdb
parent35fd285773a9c3d895577e9591418611e98dce8e
dm btree: add a defensive bounds check to insert_at()

[ Upstream commit 85bca3c05b6cca31625437eedf2060e846c4bbad ]

Corrupt metadata could trigger an out of bounds write.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/persistent-data/dm-btree.c