diff options
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index d04be762b216..7d34f04ec7aa 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -38,6 +38,8 @@ | |||
38 | #include <linux/prefetch.h> | 38 | #include <linux/prefetch.h> |
39 | #include <linux/ratelimit.h> | 39 | #include <linux/ratelimit.h> |
40 | #include <linux/list_lru.h> | 40 | #include <linux/list_lru.h> |
41 | #include <linux/kasan.h> | ||
42 | |||
41 | #include "internal.h" | 43 | #include "internal.h" |
42 | #include "mount.h" | 44 | #include "mount.h" |
43 | 45 | ||
@@ -1429,6 +1431,9 @@ struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name) | |||
1429 | } | 1431 | } |
1430 | atomic_set(&p->u.count, 1); | 1432 | atomic_set(&p->u.count, 1); |
1431 | dname = p->name; | 1433 | dname = p->name; |
1434 | if (IS_ENABLED(CONFIG_DCACHE_WORD_ACCESS)) | ||
1435 | kasan_unpoison_shadow(dname, | ||
1436 | round_up(name->len + 1, sizeof(unsigned long))); | ||
1432 | } else { | 1437 | } else { |
1433 | dname = dentry->d_iname; | 1438 | dname = dentry->d_iname; |
1434 | } | 1439 | } |