|
@@ -38,6 +38,8 @@
|
|
|
#include <linux/prefetch.h>
|
|
|
#include <linux/ratelimit.h>
|
|
|
#include <linux/list_lru.h>
|
|
|
+#include <linux/kasan.h>
|
|
|
+
|
|
|
#include "internal.h"
|
|
|
#include "mount.h"
|
|
|
|
|
@@ -1429,6 +1431,9 @@ struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
|
|
|
}
|
|
|
atomic_set(&p->u.count, 1);
|
|
|
dname = p->name;
|
|
|
+ if (IS_ENABLED(CONFIG_DCACHE_WORD_ACCESS))
|
|
|
+ kasan_unpoison_shadow(dname,
|
|
|
+ round_up(name->len + 1, sizeof(unsigned long)));
|
|
|
} else {
|
|
|
dname = dentry->d_iname;
|
|
|
}
|