Commit babcbbc7 authored by Andrey Ryabinin's avatar Andrey Ryabinin Committed by Linus Torvalds

fs: dcache: Revert "manually unpoison dname after allocation to shut up kasan's reports"

This reverts commit df4c0e36.

It's no longer needed since dentry_string_cmp() now uses
read_word_at_a_time() to avoid kasan's reports.
Signed-off-by: default avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bfe7aa6c
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
#include <linux/prefetch.h> #include <linux/prefetch.h>
#include <linux/ratelimit.h> #include <linux/ratelimit.h>
#include <linux/list_lru.h> #include <linux/list_lru.h>
#include <linux/kasan.h>
#include "internal.h" #include "internal.h"
#include "mount.h" #include "mount.h"
...@@ -1623,9 +1621,6 @@ struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name) ...@@ -1623,9 +1621,6 @@ struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
} }
atomic_set(&p->u.count, 1); atomic_set(&p->u.count, 1);
dname = p->name; dname = p->name;
if (IS_ENABLED(CONFIG_DCACHE_WORD_ACCESS))
kasan_unpoison_shadow(dname,
round_up(name->len + 1, sizeof(unsigned long)));
} else { } else {
dname = dentry->d_iname; dname = dentry->d_iname;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment