diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2017-03-31 19:53:35 +0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-05-01 22:20:57 -0700 |
commit | f11b55d13563e9428c88c873f4f03a6bef11ec0a (patch) | |
tree | 52b323f26cd056b8e6bb6d0c8a2d173ea172d8ee /include | |
parent | 0e2eb7d12eaa8e391bf5615d4271bb87a649caaa (diff) | |
download | linux-stable-f11b55d13563e9428c88c873f4f03a6bef11ec0a.tar.gz linux-stable-f11b55d13563e9428c88c873f4f03a6bef11ec0a.tar.bz2 linux-stable-f11b55d13563e9428c88c873f4f03a6bef11ec0a.zip |
tcm_fileio: Prevent information leak for short reads
If we failed to read data from backing file (probably because some one
truncate file under us), we must zerofill cmd's data, otherwise it will
be returned as is. Most likely cmd's data are unitialized pages from
page cache. This result in information leak.
(Change BUG_ON into -EINVAL se_cmd failure - nab)
testcase: https://github.com/dmonakhov/xfstests/commit/e11a1b7b907ca67b1be51a1594025600767366d5
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions