]> Git Repo - linux.git/commit - fs/f2fs/acl.c
f2fs: add additional sanity check in f2fs_acl_from_disk()
authorChengguang Xu <[email protected]>
Thu, 30 Aug 2018 13:33:31 +0000 (21:33 +0800)
committerJaegeuk Kim <[email protected]>
Wed, 5 Sep 2018 20:40:31 +0000 (13:40 -0700)
commit1618e6e297082def6350887e1c6c606749716fac
tree7e533c0fffd3b552aadae0cf02cbc7385a1cb503
parentb36fdc6853a38a6f8749897a33435635019e0647
f2fs: add additional sanity check in f2fs_acl_from_disk()

Add additinal sanity check for irregular case(e.g. corruption).
If size of extended attribution is smaller than size of acl header,
then return -EINVAL.

Signed-off-by: Chengguang Xu <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
fs/f2fs/acl.c
This page took 0.053383 seconds and 4 git commands to generate.