]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Limit sparing table size
authorJan Kara <jack@suse.cz>
Fri, 25 Sep 2020 12:53:08 +0000 (14:53 +0200)
committerJan Kara <jack@suse.cz>
Tue, 29 Sep 2020 15:21:54 +0000 (17:21 +0200)
commitd1374f0fafcf43fd37d728840059aa2e1f927ad6
tree5711c4004045db65ec3e194c3c462b0d02daedff
parentd24c2c52cc544498d0364b9bbc499b1547a07a57
udf: Limit sparing table size

Although UDF standard allows it, we don't support sparing table larger
than a single block. Check it during mount so that we don't try to
access memory beyond end of buffer.

Reported-by: syzbot+9991561e714f597095da@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c