Skip to content
Commit 692aa7a5 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix sb_field_downgrade validation



- bch2_sb_downgrade_validate() wasn't checking for a downgrade entry
  extending past the end of the superblock section

- for_each_downgrade_entry() is used in to_text() and needs to work on
  malformed input; it also was missing a check for a field extending
  past the end of the section

Reported-by: default avatar <syzbot+e49ccab73449180bc9be@syzkaller.appspotmail.com>
Fixes: 84f16387

 ("bcachefs: bch_sb_field_downgrade")
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a5c3e265
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment