]> git.itanic.dy.fi Git - linux-stable/commit
f2fs crypto: fix corrupted symlink in encrypted case
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 30 Mar 2016 20:13:16 +0000 (13:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:49:12 +0000 (14:49 -0700)
commit5ca2636ec33c4857eae6061f4b97e52d0688b1f3
tree498b0c36f89080a75fea9f5dcdbc7a365824f87c
parentb44d9268b28264da0b0777e3ec4d4d70bc91d09d
f2fs crypto: fix corrupted symlink in encrypted case

commit c90e09f7fb498f81cd4e8bb6460d3a26ccebeca3 upstream.

In the encrypted symlink case, we should check its corrupted symname after
decrypting it.
Otherwise, we can report -ENOENT incorrectly, if encrypted symname starts with
'\0'.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/namei.c