summaryrefslogtreecommitdiffstats
path: root/net/caif
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-12-21 16:53:57 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-20 11:50:09 +0100
commit9efdc0081ccae62c44a929e21d32bacc5f2e113f (patch)
tree14c1aa30f3ce2575e419fdff968d509616874a73 /net/caif
parent24f3fec911a0770be2171084c4c44779a5c7cdf9 (diff)
downloadlinux-stable-9efdc0081ccae62c44a929e21d32bacc5f2e113f.tar.gz
linux-stable-9efdc0081ccae62c44a929e21d32bacc5f2e113f.tar.bz2
linux-stable-9efdc0081ccae62c44a929e21d32bacc5f2e113f.zip
ida: Fix crash in ida_free when the bitmap is empty
[ Upstream commit af73483f4e8b6f5c68c9aa63257bdd929a9c194a ] The IDA usually detects double-frees, but that detection failed to consider the case when there are no nearby IDs allocated and so we have a NULL bitmap rather than simply having a clear bit. Add some tests to the test-suite to be sure we don't inadvertently reintroduce this problem. Unfortunately they're quite noisy so include a message to disregard the warnings. Reported-by: Zhenghan Wang <wzhmmmmm@gmail.com> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/caif')
0 files changed, 0 insertions, 0 deletions