diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-30 21:32:05 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 17:46:52 +0100 |
commit | d9534cc9fc455214e857bc1d32f44d5a229dc602 (patch) | |
tree | 514daea0e0ee9860e888f8b14b2d0a71ab593175 /include | |
parent | bcachefs: DARRAY_PREALLOCATED() (diff) | |
download | linux-d9534cc9fc455214e857bc1d32f44d5a229dc602.tar.xz linux-d9534cc9fc455214e857bc1d32f44d5a229dc602.zip |
bcachefs: fix buffer overflow in nocow write path
BCH_REPLICAS_MAX isn't the actual maximum number of pointers in an
extent, it's the maximum number of dirty pointers.
We don't have a real restriction on the number of cached pointers, and
we don't want a fixed size array here anyways - so switch to
DARRAY_PREALLOCATED().
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Reported-and-tested-by: Daniel J Blueman <daniel@quora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions