From: Andrey Ryabinin Date: Thu, 1 Feb 2018 18:00:52 +0000 (+0300) Subject: fs: dcache: Revert "manually unpoison dname after allocation to shut up kasan's reports" X-Git-Tag: v4.16-rc1~104^2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=babcbbc7c4e2fa7fa76417ece7c57083bee971f1;p=linux.git 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 Signed-off-by: Linus Torvalds --- diff --git a/fs/dcache.c b/fs/dcache.c index 7fd39f4c5a72..51438c8e8475 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -38,8 +38,6 @@ #include #include #include -#include - #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; }