Brian Foster
251babb55d
bcachefs: fix NULL bch_dev deref when checking bucket_gens keys
...
fsck removes bucket_gens keys for devices that do not exist in the
volume (i.e., if the device was removed). In 'fsck -n' mode, the
associated fsck_err_on() wrapper returns false to skip the key
removal. This proceeds on to the rest of the function, which
eventually segfaults on a NULL bch_dev because the device does not
exist.
Update bch2_check_bucket_gens_key() to skip out of the rest of the
function when the associated device does not exist, regardless of
running fsck in check or repair mode.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-10-22 17:10:00 -04:00
..
2023-10-22 17:09:44 -04:00
2023-10-22 17:09:12 -04:00
2023-10-22 17:10:00 -04:00
2023-10-22 17:09:55 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:51 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:09:52 -04:00
2023-10-22 17:09:55 -04:00
2023-10-22 17:09:55 -04:00
2023-10-22 17:09:19 -04:00
2023-10-22 17:09:48 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:31 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:48 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:09:57 -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:09:55 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:59 -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:09:59 -04:00
2023-10-22 17:09:55 -04:00
2023-10-22 17:09:47 -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:09:57 -04:00
2023-10-22 17:09:32 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:59 -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:09:52 -04:00
2023-10-22 17:09:52 -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:09:59 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:09:57 -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:09:56 -04:00
2023-10-22 17:09:56 -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:00 -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:00 -04:00
2023-10-22 17:08:59 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:52 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:57 -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:09:54 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:53 -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:09:56 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:59 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:58 -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:09:52 -04:00
2023-10-22 17:09:52 -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:09:59 -04:00
2023-10-22 17:09:33 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:52 -04:00
2023-10-22 17:09:50 -04:00
2023-10-22 17:09:57 -04:00
2023-10-22 17:09:50 -04:00
2023-10-22 17:09:44 -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:09:58 -04:00
2023-10-22 17:09:58 -04:00
2023-10-22 17:09:55 -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:09:58 -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:09:59 -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:09:56 -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:09:52 -04:00
2023-10-22 17:09:52 -04:00