]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Fix a use after free
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 19 Apr 2021 21:17:34 +0000 (17:17 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:01 +0000 (17:09 -0400)
commit4d47b21c4dac0d27ad02add2c68be0afaa63ef98
tree06fe3ecd40a355725c39cc4886bcded5c818b15c
parent8ce600d44720a86c069fafefc92167ed85cc72c7
bcachefs: Fix a use after free

Turns out, we weren't waiting on in flight btree writes when freeing
existing btree nodes. This lead to stray btree writes overwriting newly
allocated buckets, but only started showing itself with some of the
recent allocator work and another patch to move submitting of btree
writes to worqueues.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_update_interior.c