Update bcachefs sources to ffad51ba45 bcachefs: Fix a use after free

This commit is contained in:
Kent Overstreet 2022-02-27 16:35:20 -05:00
parent 03498f9464
commit fd1b84975b
2 changed files with 7 additions and 2 deletions

View File

@ -1 +1 @@
04036b491089aeb4bac5d796ae1716d019564f7a
ffad51ba45f8c0785bbb2e2903715d825a8eea9a

View File

@ -387,7 +387,12 @@ btree_key_can_insert_cached(struct btree_trans *trans,
*/
trace_trans_restart_key_cache_key_realloced(trans->fn, _RET_IP_,
path->btree_id, &path->pos);
return btree_trans_restart(trans);
/*
* Not using btree_trans_restart() because we can't unlock here, we have
* write locks held:
*/
trans->restarted = true;
return -EINTR;
}
static inline void do_btree_insert_one(struct btree_trans *trans,