Skip to content
Commit 58caa786 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix UAFs of btree_insert_entry array



The btree paths array is now dynamically resizable - and as well the
btree_insert_entries array, as it needs to be the same size.

The merge path (and interior update path) allocates new btree paths,
thus can trigger a resize; thus we need to not retain direct pointers
after invoking merge; similarly when running btree node triggers.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 2b3e79fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment