diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-12-21 16:53:57 +0000 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-12-21 10:02:28 -0800 |
commit | af73483f4e8b6f5c68c9aa63257bdd929a9c194a (patch) | |
tree | 023e0fdabad1d25d35c0e09972c8d9e26f5133b7 /mm/fadvise.c | |
parent | a9e01ac8c5ff32669119c40dfdc9e80eb0b7d7aa (diff) | |
download | linux-af73483f4e8b6f5c68c9aa63257bdd929a9c194a.tar.gz linux-af73483f4e8b6f5c68c9aa63257bdd929a9c194a.tar.bz2 linux-af73483f4e8b6f5c68c9aa63257bdd929a9c194a.zip |
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 <wzhmmmmm@gmail.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/fadvise.c')
0 files changed, 0 insertions, 0 deletions