Skip to content
Snippets Groups Projects
Commit 2bb9600d authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Guard against unknown k.k->type in __bkey_invalid()


For forwards compatibility we have to allow unknown key types, and only
run the checks that make sense against them.

Fix a missing guard on k.k->type being known.

Reported-by: default avatar <syzbot+ae4dc916da3ce51f284f@syzkaller.appspotmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f3905522
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment