summaryrefslogtreecommitdiff
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2015-06-02 17:10:28 +0200
committerJiri Slaby <jslaby@suse.cz>2015-06-03 11:33:08 +0200
commit1a3b140801f7ad16c40c5f170a0b77b92149c269 (patch)
tree48deb8a6cef3478046b2d99d692e10a32ede0573 /fs/dcache.c
parentddafeade843ee16b8a7c9ef9ac8b3792a0b83048 (diff)
downloadlwn-1a3b140801f7ad16c40c5f170a0b77b92149c269.tar.gz
lwn-1a3b140801f7ad16c40c5f170a0b77b92149c269.zip
lib: Fix strnlen_user() to not touch memory after specified maximum
commit f18c34e483ff6b1d9866472221e4015b3a4698e4 upstream. If the specified maximum length of the string is a multiple of unsigned long, we would load one long behind the specified maximum. If that happens to be in a next page, we can hit a page fault although we were not expected to. Fix the off-by-one bug in the test whether we are at the end of the specified range. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'fs/dcache.c')
0 files changed, 0 insertions, 0 deletions