kernel/fs/filesystems.c
.. .. @@ -16,6 +16,7 @@ 16 16 #include <linux/module.h> 17 17 #include <linux/slab.h> 18 18 #include <linux/uaccess.h> 19 +#include <linux/fs_parser.h>19 20 20 21 /* 21 22 * Handling of filesystem drivers list. .. .. @@ -73,6 +74,10 @@ 73 74 int res = 0; 74 75 struct file_system_type ** p; 75 76 77 + if (fs->parameters &&78 + !fs_validate_description(fs->name, fs->parameters))79 + return -EINVAL;80 +76 81 BUG_ON(strchr(fs->name, '.')); 77 82 if (fs->next) 78 83 return -EBUSY;