]> 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)
commitc69bbff7301103bd1932153d25764798e1424b4b
tree4537fe855e6ceb9f6290467d3c2e3f5d0481069b
parentf6523ec844819517ef113f07d65498be069939ec
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: 4bc7d16419c2 ("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