OSDN Git Service

f2fs: check if file namelen exceeds max value
authorSheng Yong <shengyong1@huawei.com>
Mon, 7 Jan 2019 07:02:34 +0000 (15:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:46:56 +0000 (19:46 +0100)
commit4124927e36b7753efb6faf1a508e2bc6783343cf
tree7d92feac03678d57c25a3304eb895872c7ceb8d0
parent1137c1d4b1c19a6a567d82415c2d2c0ea8a8686d
f2fs: check if file namelen exceeds max value

commit 720db068634c91553a8e1d9a0fcd8c7050e06d2b upstream.

Dentry bitmap is not enough to detect incorrect dentries. So this patch
also checks the namelen value of a dentry.

Signed-off-by: Gong Chen <gongchen4@huawei.com>
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/dir.c