diff options
author | Ryusuke Konishi <[email protected]> | 2023-05-13 19:24:28 +0900 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-06-12 11:31:49 -0700 |
commit | 2f012f2baca140c488e43d27a374029c1e59098d (patch) | |
tree | 2eab8505516b1ec1310c4bbd23f278cd2e05fb88 /scripts/gdb/linux/proc.py | |
parent | 8b817fded42d8fe3a0eb47b1149d907851a3c942 (diff) |
nilfs2: fix incomplete buffer cleanup in nilfs_btnode_abort_change_key()
A syzbot fault injection test reported that nilfs_btnode_create_block, a
helper function that allocates a new node block for b-trees, causes a
kernel BUG for disk images where the file system block size is smaller
than the page size.
This was due to unexpected flags on the newly allocated buffer head, and
it turned out to be because the buffer flags were not cleared by
nilfs_btnode_abort_change_key() after an error occurred during a b-tree
update operation and the buffer was later reused in that state.
Fix this issue by using nilfs_btnode_delete() to abandon the unused
preallocated buffer in nilfs_btnode_abort_change_key().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ryusuke Konishi <[email protected]>
Reported-by: [email protected]
Closes: https://lkml.kernel.org/r/[email protected]
Tested-by: Ryusuke Konishi <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions