Commit 94817db9 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Correctly validate k->u64s in btree node read path



validate_bset_keys() never properly validated k->u64s; it checked if it
was 0, but not if it was smaller than keys for the given packed format;
this fixes that small oversight.

This patch was backported, so it's adding quite a few error enums so
that they don't get renumbered and we don't have confusing gaps.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent b3eba6a4
Supports Markdown
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