[PATCH] vfs: use kstrdup() and check failing allocation