]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
udf: Check path length when reading symlink
authorJan Kara <jack@suse.cz>
Thu, 18 Dec 2014 21:37:50 +0000 (22:37 +0100)
committerJan Kara <jack@suse.cz>
Fri, 19 Dec 2014 13:12:08 +0000 (14:12 +0100)
commit0e5cc9a40ada6046e6bc3bdfcd0c0d7e4b706b14
tree6a9a8bef5942cb6b18ae977fd1be24c59cebe71c
parenta1d47b262952a45aae62bd49cfaf33dd76c11a2c
udf: Check path length when reading symlink

Symlink reading code does not check whether the resulting path fits into
the page provided by the generic code. This isn't as easy as just
checking the symlink size because of various encoding conversions we
perform on path. So we have to check whether there is still enough space
in the buffer on the fly.

CC: stable@vger.kernel.org
Reported-by: Carl Henrik Lunde <chlunde@ping.uio.no>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/dir.c
fs/udf/namei.c
fs/udf/symlink.c
fs/udf/udfdecl.h
fs/udf/unicode.c