]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ubifs: Fix directory size calculation for symlinks
authorRichard Weinberger <richard@nod.at>
Mon, 11 Jun 2018 21:41:09 +0000 (23:41 +0200)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:46:11 +0000 (19:46 -0600)
commit8f3a0d28d1e8f16f74b0396010eb20524a421646
tree887b0704e93a9a68c17c087463885fb2c3823a5b
parentff124e2dd19ed0383b259da64264937538d92cf1
ubifs: Fix directory size calculation for symlinks

BugLink: https://bugs.launchpad.net/bugs/1835972
commit 00ee8b60102862f4daf0814d12a2ea2744fc0b9b upstream.

We have to account the name of the symlink and not the target length.

Fixes: ca7f85be8d6c ("ubifs: Add support for encrypted symlinks")
Cc: <stable@vger.kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/ubifs/dir.c