diff options
| author | Kent Overstreet <[email protected]> | 2025-03-20 18:17:53 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2025-03-24 13:50:36 +0000 |
| commit | 28aa859b6b422da5c982610d0add9128f813e9f2 (patch) | |
| tree | e06a9147b697b071f127a8e2ae11f53a473cd9d8 /fs/bcachefs/btree_trans_commit.c | |
| parent | bcachefs: Fix kmsan warnings in bch2_extent_crc_pack() (diff) | |
| download | kernel-28aa859b6b422da5c982610d0add9128f813e9f2.tar.gz kernel-28aa859b6b422da5c982610d0add9128f813e9f2.zip | |
bcachefs: kmsan asserts
Catching these early makes them a lot easier to track down.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
| -rw-r--r-- | fs/bcachefs/btree_trans_commit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_trans_commit.c b/fs/bcachefs/btree_trans_commit.c index d50dc31d0bea..7d7e52ddde02 100644 --- a/fs/bcachefs/btree_trans_commit.c +++ b/fs/bcachefs/btree_trans_commit.c @@ -164,6 +164,7 @@ bool bch2_btree_bset_insert_key(struct btree_trans *trans, EBUG_ON(bpos_gt(insert->k.p, b->data->max_key)); EBUG_ON(insert->k.u64s > bch2_btree_keys_u64s_remaining(b)); EBUG_ON(!b->c.level && !bpos_eq(insert->k.p, path->pos)); + kmsan_check_memory(insert, bkey_bytes(&insert->k)); k = bch2_btree_node_iter_peek_all(node_iter, b); if (k && bkey_cmp_left_packed(b, k, &insert->k.p)) |
