diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-30 15:32:05 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:46:52 -0500 |
commit | d9534cc9fc455214e857bc1d32f44d5a229dc602 (patch) | |
tree | 514daea0e0ee9860e888f8b14b2d0a71ab593175 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 099dc5c29dff52c0c37abcaa6cc747a1ac8df5fe (diff) |
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 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions