Commit 615fccad authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix a slab-out-of-bounds



In __bch2_alloc_to_v4_mut(), we overrun the buffer we allocate if the
alloc key had backpointers stored in it (which we no longer support).

Fix this with a max() call.

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