diff options
| author | Ryusuke Konishi <[email protected]> | 2024-07-25 05:20:07 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-26 21:33:10 +0000 |
| commit | 4811f7af6090e8f5a398fbdd766f903ef6c0d787 (patch) | |
| tree | 478c5830d16ca6933950a2f701abede62d88909e /rust/helpers.c | |
| parent | selftests/mm: skip test for non-LPA2 and non-LVA systems (diff) | |
| download | kernel-4811f7af6090e8f5a398fbdd766f903ef6c0d787.tar.gz kernel-4811f7af6090e8f5a398fbdd766f903ef6c0d787.zip | |
nilfs2: handle inconsistent state in nilfs_btnode_create_block()
Syzbot reported that a buffer state inconsistency was detected in
nilfs_btnode_create_block(), triggering a kernel bug.
It is not appropriate to treat this inconsistency as a bug; it can occur
if the argument block address (the buffer index of the newly created
block) is a virtual block number and has been reallocated due to
corruption of the bitmap used to manage its allocation state.
So, modify nilfs_btnode_create_block() and its callers to treat it as a
possible filesystem error, rather than triggering a kernel bug.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: a60be987d45d ("nilfs2: B-tree node cache")
Signed-off-by: Ryusuke Konishi <[email protected]>
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=89cc4f2324ed37988b60
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
