diff options
author | Andrey Ryabinin | 2018-02-01 19:00:51 +0100 |
---|---|---|
committer | Linus Torvalds | 2018-02-01 21:20:21 +0100 |
commit | bfe7aa6c39b12a6ab1e95f50271c53e47d6dd060 (patch) | |
tree | 9ed9553b19b251b34f55da97aaf4c43fec7abb9c /kernel/sched/sched.h | |
parent | lib/strscpy: Shut up KASAN false-positives in strscpy() (diff) | |
download | kernel-qcow2-linux-bfe7aa6c39b12a6ab1e95f50271c53e47d6dd060.tar.gz kernel-qcow2-linux-bfe7aa6c39b12a6ab1e95f50271c53e47d6dd060.tar.xz kernel-qcow2-linux-bfe7aa6c39b12a6ab1e95f50271c53e47d6dd060.zip |
fs/dcache: Use read_word_at_a_time() in dentry_string_cmp()
dentry_string_cmp() performs the word-at-a-time reads from 'cs' and may
read slightly more than it was requested in kmallac(). Normally this
would make KASAN to report out-of-bounds access, but this was
workarounded by commit df4c0e36f1b1 ("fs: dcache: manually unpoison
dname after allocation to shut up kasan's reports").
This workaround is not perfect, since it allows out-of-bounds access to
dentry's name for all the code, not just in dentry_string_cmp().
So it would be better to use read_word_at_a_time() instead and revert
commit df4c0e36f1b1.
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sched/sched.h')
0 files changed, 0 insertions, 0 deletions