diff options
author | Wessel Dankers <wsl@fruit.je> | 2022-01-12 17:26:14 +0100 |
---|---|---|
committer | Wessel Dankers <wsl@fruit.je> | 2022-01-13 00:08:52 +0100 |
commit | 7b15324de1095f3e2e423e9c53da076d208b52d5 (patch) | |
tree | 7c4f96ea64a91e01a7e1a12631efd72feb10b76d /libbcachefs/error.c | |
parent | 2c0d0c4b7b2484eaadf377f4a45d6b84a0680dcb (diff) |
Fix heap corruption in bcachefs format
In bch2_format(): recompute mi after each sb modification:
its location in memory may have changed due to reallocation.
This fixes an issue where labels were not assigned (because
they were written to an undefined part of the heap instead of
the superblock).
Signed-off-by: Wessel Dankers <wsl@fruit.je>
Diffstat (limited to 'libbcachefs/error.c')
0 files changed, 0 insertions, 0 deletions