]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Fix unlink code wrt. double hash lookups
authorRichard Weinberger <richard@nod.at>
Wed, 17 May 2017 08:36:46 +0000 (10:36 +0200)
committerRichard Weinberger <richard@nod.at>
Fri, 14 Jul 2017 20:49:06 +0000 (22:49 +0200)
commit3e2b4faa4a14c8c7abe04d86f13086aa266e64ea
tree4537fe855e6ceb9f6290467d3c2e3f5d0481069b
parent482eeb60e27f324819ece3d61a633f35fb067d14
ubifs: Fix unlink code wrt. double hash lookups

When removing an encrypted file with a long name and without having
the key we have to be able to locate and remove the directory entry
via a double hash. This corner case was simply forgotten.

Fixes: 8a144a2f3740 ("ubifs: Add full hash lookup support")
Reported-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/journal.c
fs/ubifs/tnc.c
fs/ubifs/ubifs.h