Skip to content
Snippets Groups Projects
Commit 2d014248 authored by Sudhakar Kuppusamy's avatar Sudhakar Kuppusamy Committed by Julian Andres Klode
Browse files

fs/f2fs: Do not read past the end of nat journal entries


A corrupt f2fs file system could specify a nat journal entry count
that is beyond the maximum NAT_JOURNAL_ENTRIES.

Check if the specified nat journal entry count before accessing the
array, and throw an error if it is too large.

Signed-off-by: default avatarSudhakar Kuppusamy <sudhakar@linux.ibm.com>
Signed-off-by: default avatarDaniel Axtens <dja@axtens.net>
Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
parent 870b9475
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment