]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
f2fs: check if file namelen exceeds max value
authorSheng Yong <shengyong1@huawei.com>
Mon, 7 Jan 2019 07:02:34 +0000 (15:02 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 22 Jan 2019 23:31:26 +0000 (15:31 -0800)
commit720db068634c91553a8e1d9a0fcd8c7050e06d2b
tree49dcd7e73e0adb95f9aa0e4bb4b4671e49fb9f18
parentddf06b753a8573eb0323d91efeaffe397f7b673d
f2fs: check if file namelen exceeds max value

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>
fs/f2fs/dir.c