Kent Overstreet
962210b281
bcachefs: Fix a buffer overrun in bch2_fs_usage_read()
...
We were copying the size of a struct bch_fs_usage_online to a struct
bch_fs_usage, which is 8 bytes smaller.
This adds some new helpers so we can do this correctly, and get rid of
some magic +1s too.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-10-22 17:10:01 -04:00
..
2023-10-22 17:09:44 -04:00
2023-10-22 17:09:12 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:19 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:31 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:48 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:55 -04:00
2023-10-22 17:09:55 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:50 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:50 -04:00
2023-10-22 17:09:53 -04:00
2023-10-22 17:09:22 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:22 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:47 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:08:52 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:32 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:52 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:39 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:50 -04:00
2023-10-22 17:09:10 -04:00
2023-10-22 17:08:29 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:21 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:09:44 -04:00
2023-10-22 17:09:15 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:32 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:08:59 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:55 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:02 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:21 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:49 -04:00
2023-10-22 17:09:43 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:09:43 -04:00
2023-10-22 17:09:43 -04:00
2023-10-22 17:09:43 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:55 -04:00
2023-10-22 17:09:52 -04:00
2023-10-22 17:09:52 -04:00
2023-10-22 17:09:52 -04:00
2023-10-22 17:09:49 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:33 -04:00
2023-10-22 17:09:55 -04:00
2023-10-22 17:08:13 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:10 -04:00
2023-10-22 17:09:46 -04:00
2023-10-22 17:08:43 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:33 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:50 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:50 -04:00
2023-10-22 17:09:44 -04:00
2023-10-22 17:08:07 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:50 -04:00
2023-10-22 17:09:40 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:10:01 -04:00
2023-10-22 17:09:29 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:29 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:32 -04:00
2023-10-22 17:09:52 -04:00
2023-10-22 17:08:48 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:09:53 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:13 -04:00
2023-10-22 17:09:08 -04:00
2023-10-22 17:09:25 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:10:00 -04:00