summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-30 21:32:05 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-01 17:46:52 +0100
commitd9534cc9fc455214e857bc1d32f44d5a229dc602 (patch)
tree514daea0e0ee9860e888f8b14b2d0a71ab593175 /include
parentbcachefs: DARRAY_PREALLOCATED() (diff)
downloadlinux-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