projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfe7aa6
)
fs: dcache: Revert "manually unpoison dname after allocation to shut up kasan's reports"
author
Andrey Ryabinin
<
[email protected]
>
Thu, 1 Feb 2018 18:00:52 +0000
(21:00 +0300)
committer
Linus Torvalds
<
[email protected]
>
Thu, 1 Feb 2018 20:20:21 +0000
(12:20 -0800)
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 <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/dcache.c
patch
|
blob
|
history
diff --git
a/fs/dcache.c
b/fs/dcache.c
index 7fd39f4c5a72613f4b1b08f3a5c2c6f8a22a78fd..51438c8e8475f7743a6297aed24ea0be5c899cd9 100644
(file)
--- 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;
}