Signed-off-by: Timo Aaltonen <email address hidden>
b7c1012...
by
"Matthew Wilcox (Oracle)" <email address hidden>
ida: Fix crash in ida_free when the bitmap is empty
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 <email address hidden>
Signed-off-by: Matthew Wilcox (Oracle) <email address hidden>
Signed-off-by: Linus Torvalds <email address hidden>
(cherry picked from commit af73483f4e8b6f5c68c9aa63257bdd929a9c194a)
CVE-2023-6915
Signed-off-by: Bethany Jamison <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>