Kent Overstreet 692aa7a54b bcachefs: Fix sb_field_downgrade validation
- bch2_sb_downgrade_validate() wasn't checking for a downgrade entry
  extending past the end of the superblock section

- for_each_downgrade_entry() is used in to_text() and needs to work on
  malformed input; it also was missing a check for a field extending
  past the end of the section

Reported-by: syzbot+e49ccab73449180bc9be@syzkaller.appspotmail.com
Fixes: 84f1638795da ("bcachefs: bch_sb_field_downgrade")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-05-09 16:23:36 -04:00
..
2024-05-08 17:29:23 -04:00
2024-03-13 21:22:26 -04:00
2024-05-08 17:29:21 -04:00
2024-01-21 06:01:45 -05:00
2024-03-13 18:39:12 -04:00
2024-01-01 11:46:52 -05:00
2024-05-08 17:29:24 -04:00
2024-01-21 13:27:10 -05:00
2024-01-21 13:27:11 -05:00
2024-01-21 13:27:11 -05:00
2024-04-08 22:56:37 -04:00
2024-03-13 18:39:12 -04:00
2024-01-21 13:27:10 -05:00
2024-05-08 17:29:22 -04:00
2024-05-08 17:29:17 -04:00
2024-01-21 13:27:10 -05:00
2024-01-21 13:27:11 -05:00
2024-05-08 17:29:19 -04:00
2024-01-01 11:47:40 -05:00
2024-01-21 13:27:10 -05:00
2024-05-08 17:29:19 -04:00
2024-05-08 17:29:22 -04:00
2024-04-06 13:50:26 -04:00
2024-01-21 13:27:10 -05:00