summaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorAndrey Ryabinin <aryabinin@virtuozzo.com>2018-02-01 21:00:52 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2018-02-01 12:20:21 -0800
commitbabcbbc7c4e2fa7fa76417ece7c57083bee971f1 (patch)
tree1bbb461321132f4b208951983d8e42e3b1bd233f /fs/dcache.c
parentbfe7aa6c39b12a6ab1e95f50271c53e47d6dd060 (diff)
downloadlinux-0-day-babcbbc7c4e2fa7fa76417ece7c57083bee971f1.tar.gz
linux-0-day-babcbbc7c4e2fa7fa76417ece7c57083bee971f1.tar.xz
fs: dcache: Revert "manually unpoison dname after allocation to shut up kasan's reports"
This reverts commit df4c0e36f1b1782b0611a77c52cc240e5c4752dd. It's no longer needed since dentry_string_cmp() now uses read_word_at_a_time() to avoid kasan's reports. Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r--fs/dcache.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 7fd39f4c5a726..51438c8e8475f 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -38,8 +38,6 @@
#include <linux/prefetch.h>
#include <linux/ratelimit.h>
#include <linux/list_lru.h>
-#include <linux/kasan.h>
-
#include "internal.h"
#include "mount.h"
@@ -1623,9 +1621,6 @@ 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;
}