filldir[64]: remove WARN_ON_ONCE() for bad directory entries
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 18 Oct 2019 22:41:16 +0000 (18:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 18:13:26 +0000 (19:13 +0100)
commit0643c3d694ad9f1e5cb0bc7a487bf9f86a5eaf75
tree9551b3b30a56c90bc7231fc9455bb4902f5fa606
parent40696eb2bce798c4764886fbc576426bd5c4cc3c
filldir[64]: remove WARN_ON_ONCE() for bad directory entries

commit b9959c7a347d6adbb558fba7e36e9fef3cba3b07 upstream.

This was always meant to be a temporary thing, just for testing and to
see if it actually ever triggered.

The only thing that reported it was syzbot doing disk image fuzzing, and
then that warning is expected.  So let's just remove it before -rc4,
because the extra sanity testing should probably go to -stable, but we
don't want the warning to do so.

Reported-by: syzbot+3031f712c7ad5dd4d926@syzkaller.appspotmail.com
Fixes: 8a23eb804ca4 ("Make filldir[64]() verify the directory entry filename is valid")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Siddharth Chandrasekaran <csiddharth@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/readdir.c