Re: [PATCH] btrfs: Promote debugging asserts to full-flegded checks in validate_super
From: David Sterba <hidden>
Date: 2021-06-01 17:08:25
From: David Sterba <hidden>
Date: 2021-06-01 17:08:25
On Mon, May 31, 2021 at 12:26:01PM +0300, Nikolay Borisov wrote:
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 Signed-off-by: Nikolay Borisov <redacted>
Added to misc-next, thanks.