The maximum length of filename string in 'fs/exportfs/expfs.c' is limited to be 'NAME_MAX'. But I have a special filesystem driver with longer filename. When exporting it's namespace with NFS, 'exportfs_decode_fh()' can't holds the filename if its length is larger than 'NAME_MAX'. And 'dentry' in VFS layer doesn't contrain the length of filename within 'NAME_MAX'. I guess the correct method is firstly probe the length of filename with 'vfs_statfs()'. With this value to malloc a larger enough memory to cache the filename when decoding a FH. Pei-Feng liu (1): fs/exportfs: Decoding FH with a larger memory to cache the filename. fs/exportfs/expfs.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) -- 1.8.3.1