diff options
author | Nikolay Borisov <nborisov@suse.com> | 2021-05-31 11:26:01 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-06-04 13:12:06 +0200 |
commit | aefd7f7065567a4666f42c0fc8cdb379d2e036bf (patch) | |
tree | 928eb370d723e46a571f7c7e5cba750a9be4e87f /kernel/watch_queue.c | |
parent | btrfs: return value from btrfs_mark_extent_written() in case of error (diff) | |
download | linux-aefd7f7065567a4666f42c0fc8cdb379d2e036bf.tar.xz linux-aefd7f7065567a4666f42c0fc8cdb379d2e036bf.zip |
btrfs: promote debugging asserts to full-fledged checks in validate_super
Syzbot managed to trigger this assert while performing its fuzzing.
Turns out it's better to have those asserts turned into full-fledged
checks so that in case buggy btrfs images are mounted the users gets
an error and mounting is stopped. Alternatively with CONFIG_BTRFS_ASSERT
disabled such image would have been erroneously allowed to be mounted.
Reported-by: syzbot+a6bf271c02e4fe66b4e4@syzkaller.appspotmail.com
CC: stable@vger.kernel.org # 5.4+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add uuids to the messages ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'kernel/watch_queue.c')
0 files changed, 0 insertions, 0 deletions