linux/fs/bcachefs
Dan Carpenter 4ba985b84d bcachefs: chardev: fix an integer overflow (32 bit only)
On 32 bit systems, "sizeof(*arg) + replica_entries_bytes" can have an
integer overflow leading to memory corruption.  Use size_add() to
prevent this.

Fixes: b44dd3797034 ("bcachefs: Redo filesystem usage ioctls")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-10-22 17:10:14 -04:00
..
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:06 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:09:53 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:07 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:09:32 -04:00
2023-10-22 17:10:09 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:07 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:06 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:06 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:05 -04:00
2023-10-22 17:10:07 -04:00
2023-10-22 17:10:03 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:08 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:08:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:09:44 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:07 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:09:32 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00