Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\readdir.c Create Date:2022-07-28 20:06:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:POSIX says that a dirent name cannot contain NULL or a '/'.* It's not 100% clear what we should really do in this case.* The filesystem is clearly corrupted, but returning a hard* error means that you now don't see any of the other names

Proto:static int verify_dirent_name(const char *name, int len)

Type:int

Parameter:

TypeParameterName
const char *name
intlen
112  If len <= 0 || len >= # chars in a path name including nul Then Return -EIO
114  If memchr(name, '/', len) Then Return -EIO
116  Return 0
Caller
NameDescribe
filldir
filldir64